tbaeder added inline comments.
================ Comment at: clang/include/clang/Parse/Parser.h:863 bool MightBeCXXScopeToken() { - return Tok.is(tok::identifier) || Tok.is(tok::coloncolon) || - (Tok.is(tok::annot_template_id) && - NextToken().is(tok::coloncolon)) || - Tok.is(tok::kw_decltype) || Tok.is(tok::kw___super); + return (getLangOpts().CPlusPlus) && + (Tok.is(tok::identifier) || Tok.is(tok::coloncolon) || ---------------- Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D133248/new/ https://reviews.llvm.org/D133248 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits