[clang] [clang][analyzer] Add plist macro formatting (PR #156046)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 25 09:05:31 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)
----------------
ankurkraj wrote:
That seems like a good idea but I have a doubt,
in files like `clang/test/Analysis/plist-macros-with-expansion.cpp` , there are ~ 80 macro expansions check , there are checks for different scenarios. Will the above check suffice the intentions of the tests, in all such cases ?
( for example there are expansion checkers for `macroArgContainsCommaLParenRParenTest`, `macroArgContainsCommaInStringTest`,`CALL_FUNCTION_WITH_TWO_PARAMS`, `CALL_FUNCTION_WITH_ONE_PARAM_THROUGH_MACRO`
https://github.com/llvm/llvm-project/pull/156046
More information about the cfe-commits
mailing list