llvm / llvm/llvm-project

[clang-tidy] detect unnecessary escaping in char/string literals

Open
#186,793 13 comments 0 reactions 0 assignees View on GitHub
check-request clang-tidy
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

```cpp
char c = '\"';
```

There is no need to escape the `"` here.

Contributor guide

Open the contributing guide

Research direction

Start by locating the clang-tidy check responsible for inspecting C++ character and string literals, then review its existing tests or test conventions. The work is done when unnecessary escaping such as \" inside a character literal is diagnosed consistently without flagging escapes that are required.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.