[clang] [clang-format] Don't skip stringizing when determining brace kind (PR #73886)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 29 18:00:08 PST 2023
================
@@ -496,7 +496,7 @@ void UnwrappedLineParser::calculateBraceTypes(bool ExpectClassBody) {
do {
NextTok = Tokens->getNextToken();
} while (NextTok->is(tok::comment));
- while (NextTok->is(tok::hash)) {
+ while (NextTok->is(tok::hash) && !Line->InPPDirective) {
----------------
owenca wrote:
```suggestion
while (NextTok->is(tok::hash) && !Line->InMacroBody) {
```
To be precise?
https://github.com/llvm/llvm-project/pull/73886
More information about the cfe-commits
mailing list