[clang-tools-extra] [clang-tidy] Detect string literals in macros in modernize-raw-string… (PR #133636)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 30 08:21:35 PDT 2025


================
@@ -105,7 +105,8 @@ char const *const StringizedMacroArgument = HAT(foo\\bar);
 
 #define SUBST(lit_) lit_
----------------
HerrCai0907 wrote:

what about concat string in macro?
e.g.
```
#define SUBST(a,b) a#b
char const *const MacroArgument = SUBST("foo\\bar","cd");
```

https://github.com/llvm/llvm-project/pull/133636


More information about the cfe-commits mailing list