[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:48 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");
----------------
owenca wrote:

Do we need the newline?

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


More information about the cfe-commits mailing list