[clang] [clang-format] Add FunctionLikeMacros option (PR #148345)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 12 02:44:40 PDT 2025
================
@@ -2786,6 +2786,11 @@ struct FormatStyle {
/// \version 3.7
std::vector<std::string> ForEachMacros;
+ /// A vector of function-like macros whose invocations should be skipped by
+ /// ``RemoveParentheses``.
+ /// \version 21
+ std::vector<std::string> FunctionLikeMacros;
----------------
HazardyKnusperkeks wrote:
I'd choose a different name, because there are a lot of function like macros out there, which should still be handled by RemoveParentheses.
I think referring to directly to (remove)parentheses is better.
https://github.com/llvm/llvm-project/pull/148345
More information about the cfe-commits
mailing list