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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 12:40:18 PDT 2023


================
@@ -24153,6 +24153,23 @@ TEST_F(FormatTest, WhitespaceSensitiveMacros) {
   verifyNoChange("FOO(String-ized&Messy+But: :Still=Intentional);", Style);
 }
 
+TEST_F(FormatTest, IgnorePPDefinitions) {
----------------
HazardyKnusperkeks wrote:

Add some tests:
* With formatted code above and below.
* Breaking the column limit.
* Multiline definitions (with different positions for the `\`).

We need to see how you think it should be formatted.

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


More information about the cfe-commits mailing list