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

Emilia Kond via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 18:11:43 PDT 2023


================
@@ -4648,6 +4648,10 @@ struct FormatStyle {
   /// \version 11
   std::vector<std::string> WhitespaceSensitiveMacros;
 
+  /// Ignore formatting in preprocessor definitions.
+  /// \version 18
+  bool IgnorePPDefinitions;
----------------
rymiel wrote:

(this applies to not just here, but below on line 4818, and in Format.cpp, and in ConfigParseTest.cpp)

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


More information about the cfe-commits mailing list