[clang] [clang-format] Option to ignore PP directives (PR #70338)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 14 11:29:17 PST 2023


================
@@ -24206,10 +24206,11 @@ TEST_F(FormatTest, IgnorePPDefinitions) {
   Style.IndentPPDirectives = FormatStyle::PPDIS_None;
   verifyNoChange("#if A\n"
                  "#define A  a\n"
-                 "#endif",
+                 "#endif\n",
----------------
HazardyKnusperkeks wrote:

We normally don't have a trailing line break in the tests. Why did you add it?

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


More information about the cfe-commits mailing list