[clang-tools-extra] [clang-tidy] Detect string literals in macros in modernize-raw-string… (PR #133636)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 30 11:40:21 PDT 2025
================
@@ -105,7 +105,8 @@ char const *const StringizedMacroArgument = HAT(foo\\bar);
#define SUBST(lit_) lit_
----------------
carlosgalvezp wrote:
Good point, this doesn't work. It wants to create a replacement `"R\"(foo\\bar\\baz\\bazz\\foo\"cd\")\""` which is non sense.
Most likely macros should be handled in a `PPCallback` instead, thus it's better to drop this PR and implement this feature there instead.
https://github.com/llvm/llvm-project/pull/133636
More information about the cfe-commits
mailing list