================
@@ -3783,10 +3823,20 @@ void TokenAnnotator::annotate(AnnotatedLine &Line) {
 static bool isFunctionDeclarationName(const LangOptions &LangOpts,
                                       const FormatToken &Current,
                                       const AnnotatedLine &Line,
+                                      const FormatStyle &Style,
                                       FormatToken *&ClosingParen) {
   if (Current.is(TT_FunctionDeclarationName))
     return true;
 
+  if (Current.is(TT_FunctionLikeOrFreestandingMacro) &&
+      std::find_if(
+          Style.KeywordedFunctionLikeMacros.begin(),
+          Style.KeywordedFunctionLikeMacros.end(),
+          [&Current](const FormatStyle::KeywordedFunctionLikeMacro &Decl) {
+            return Current.TokenText == Decl.Name;
+          }) != Style.KeywordedFunctionLikeMacros.end()) {
+    return true;
+  }
----------------
zeule wrote:

It is not necessary; undone. Thank you!

https://github.com/llvm/llvm-project/pull/131605
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to