================
@@ -3802,7 +3802,7 @@ static bool isFunctionDeclarationName(const LangOptions 
&LangOpts,
   const auto *Prev = Current.getPreviousNonComment();
   assert(Prev);
 
-  if (Prev->is(tok::coloncolon))
+  if (Prev->is(tok::coloncolon) && Prev->hasWhitespaceBefore())
----------------
owenca wrote:

> But `SomeAPI ::operator()();` has space before and still gets miss annotated.

Not necessarily. See e.g. 
https://github.com/llvm/llvm-project/blob/074308c64ba10a3346c65deda67501e7bfc58eaa/clang/unittests/Format/TokenAnnotatorTest.cpp#L1114

https://github.com/llvm/llvm-project/pull/161944
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to