Issue |
133618
|
Summary |
[clang-tidy][false-negative] `modernize-raw-string-literal` does not check function-like macro parameters
|
Labels |
clang-tidy,
false-negative
|
Assignees |
|
Reporter |
tearfur
|
String literals that are passed in as parameters of a function-like macros are not caught by `modernize-raw-string-literal`. Checked the documentation for `modernize-raw-string-literal` and AFAICT there is no `IgnoreMacros` option or anything in that nature.
https://godbolt.org/z/edvqhdff4
```
<source>:11:18: warning: escaped string literal can be written as a raw string literal [modernize-raw-string-literal]
11 | std::cout << "\\\\127.0.0.1\\ADMIN$\\System32"sv << '\n';
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| R"(\\127.0.0.1\ADMIN$\System32)"sv
1 warning generated.
```
Current trunk: 9747bb182f430bb1bd3525b7f42e88df626e28e5
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs