[llvm-branch-commits] [clang] 3333dd8 - Update clang/lib/Format/TokenAnnotator.cpp

Cullen Rhodes via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 20 03:04:42 PDT 2025


Author: owenca
Date: 2025-10-20T10:04:32Z
New Revision: 3333dd88a4931e9efc766a045c2fe02043a10fe7

URL: https://github.com/llvm/llvm-project/commit/3333dd88a4931e9efc766a045c2fe02043a10fe7
DIFF: https://github.com/llvm/llvm-project/commit/3333dd88a4931e9efc766a045c2fe02043a10fe7.diff

LOG: Update clang/lib/Format/TokenAnnotator.cpp

Added: 
    

Modified: 
    clang/lib/Format/TokenAnnotator.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index 96b11d023295a..57b2872566a47 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -3775,7 +3775,7 @@ static bool isFunctionDeclarationName(const LangOptions &LangOpts,
   if (Current.is(TT_FunctionDeclarationName))
     return true;
 
-  if (Current.isNoneOf(tok::identifier, tok::kw_operator))
+  if (!Current.isOneOf(tok::identifier, tok::kw_operator))
     return false;
 
   const auto *Prev = Current.getPreviousNonComment();


        


More information about the llvm-branch-commits mailing list