================
@@ -2821,8 +2821,10 @@ class AnnotatingParser {
       // If there is an identifier (or with a few exceptions a keyword) right
       // before the parentheses, this is unlikely to be a cast.
       if (LeftOfParens->Tok.getIdentifierInfo() &&
-          LeftOfParens->isNoneOf(Keywords.kw_in, tok::kw_return, tok::kw_case,
-                                 tok::kw_delete, tok::kw_throw)) {
+          (LeftOfParens->isNoneOf(Keywords.kw_in, tok::kw_return, tok::kw_case,
+                                  tok::kw_delete, tok::kw_throw) ||
+           (LeftOfParens->Previous &&
+            LeftOfParens->Previous->is(tok::period)))) {
----------------
owenca wrote:

```suggestion
          (LeftOfParens->isNoneOf(TT_ObjCForIn, tok::kw_return, tok::kw_case,
                                  tok::kw_delete, tok::kw_throw) {
```
Not sure if we still need the `||` part you added, though.

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

Reply via email to