[clang] [clang][analyzer] Add plist macro formatting (PR #156046)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 24 07:31:47 PST 2025


================
@@ -351,6 +351,11 @@ ANALYZER_OPTION(bool, ShouldDisplayMacroExpansions, "expand-macros",
                 "expanded and included in the plist output.",
                 false)
 
+ANALYZER_OPTION(bool, ShouldFormatMacrosPlist, "format-macros-plist",
+                "Whether the macros being displayed in the plist "
+                "files are clang-formatted .",
+                false)
----------------
NagyDonat wrote:

This seems to be a helpful and harmless option, so I don't see a reason why we shouldn't enable it by default. @steakhal @ anybody else WDYT about this? Can you imagine anything that would be broken by the pretty-printing of macros? 

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


More information about the cfe-commits mailing list