================
@@ -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)))) {
----------------
HazardyKnusperkeks wrote:
Didn't knew about that. Did drop the additional checks.
https://github.com/llvm/llvm-project/pull/206810
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits