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

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 25 14:00:30 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)
----------------
steakhal wrote:

Good question. Let's be pragmatic.
What are the chances of having formatting changes of the expansions we are talking about?
If the uplifted test would make sense, I think we should just accept them like that.
If there is any controversial, we can discuss that and decide how to move forward.
I'm open for all kinds of solutions, including removing some tests. IMO the formatting for expansions would be great, and a long awaited feature that worths serious consideration.

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


More information about the cfe-commits mailing list