[PATCH] D108742: Reclassify form-feed and vertical tab as vertical WS for the purposes of lexing.

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 26 09:56:42 PDT 2021


dexonsmith added a comment.

Thanks for looking at this — I'm just reviewing the test changes in the minimizer (assuming the code change is the right thing to do).



================
Comment at: clang/unittests/Lex/DependencyDirectivesSourceMinimizerTest.cpp:170-173
   ASSERT_FALSE(
-      minimizeSourceToDependencyDirectives("#define MACRO(a        \\\n"
+      minimizeSourceToDependencyDirectives("#define MACRO(a        \\\n\\\v\\\f"
                                            "              )",
                                            Out));
----------------
Please don't modify this assertion to test `\v` and `\f`. Instead add new assertions. I'm not sure if they belong in `DefineMultilineArgs`, or if `DefineSpacing` might be a better spot, or maybe a new test `DefineVerticalWhitespace`?


================
Comment at: clang/unittests/Lex/DependencyDirectivesSourceMinimizerTest.cpp:186
                                            Out));
-  EXPECT_STREQ("#define MACRO(a)\n", Out.data());
-
----------------
Please don't remove this test coverage.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108742/new/

https://reviews.llvm.org/D108742



More information about the cfe-commits mailing list