[clang] [clang-format] Option to ignore macro definitions (PR #70338)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 22 12:32:38 PST 2023


================
@@ -2443,6 +2443,10 @@ struct FormatStyle {
   /// \version 13
   std::vector<std::string> IfMacros;
 
+  /// Ignore formatting in preprocessor definitions.
+  /// \version 18
+  bool IgnorePPDefinitions;
----------------
owenca wrote:

Please rename it to `SkipMacroDefinition` or similar.

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


More information about the cfe-commits mailing list