[clang] [clang-format] Don't case-fix numeric literals in macro invocations (PR #212328)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 21 00:19:29 PDT 2026


owenca wrote:

clang-format has always used the raw lexer, which lexes both `1616header.h` and `1616header` as `numeric_constant`. We can easily skip C/C++ preprocessor directives, but the user should use `// clang-format off` for other cases.

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


More information about the cfe-commits mailing list