[clang] [clang-format] Don't skip stringizing when determining brace kind (PR #73886)
Emilia Kond via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 29 18:46:38 PST 2023
================
@@ -1851,6 +1851,22 @@ TEST_F(TokenAnnotatorTest, UnderstandsTrailingReturnArrow) {
EXPECT_TOKEN(Tokens[13], tok::arrow, TT_Unknown);
}
+TEST_F(TokenAnnotatorTest, UnderstandHashInMacro) {
+ auto Tokens = annotate("#define Foo(Bar) \\\n"
+ " { \\\n"
+ " #Bar \\\n"
+ " }\n");
----------------
rymiel wrote:
Sorry, no, it was a leftover from other testing, thank you for catching it
https://github.com/llvm/llvm-project/pull/73886
More information about the cfe-commits
mailing list