Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang-format] Don't skip stringizing when determining brace kind (#7…
…3886) PR #69473 introduced skipping PP directives when determining the brace kind of an lbrace. However, it did so by skipping to the end of the line when encountering a hash character. This means it also skipped to the end of line when encountering a macro stringizing operator, which, unlike PP directives, don't have effect until the end of line. This led to cases where the rbrace could be completely skipped if it was on the same line as a stringizing operator. This patch skips hash characters if we're already in a PP directive, as you can't define a macro inside of a macro Fixes #72662
- Loading branch information