================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to