Lines Matching refs:CommaLoc
1856 SourceLocation CommaLoc; in ParseDeclGroup() local
1857 while (TryConsumeToken(tok::comma, CommaLoc)) { in ParseDeclGroup()
1862 Diag(CommaLoc, diag::err_expected_semi_declaration) in ParseDeclGroup()
1863 << FixItHint::CreateReplacement(CommaLoc, ";"); in ParseDeclGroup()
1870 D.setCommaLoc(CommaLoc); in ParseDeclGroup()
3612 SourceLocation CommaLoc; in ParseStructDeclaration() local
3615 DeclaratorInfo.D.setCommaLoc(CommaLoc); in ParseStructDeclaration()
3646 if (!TryConsumeToken(tok::comma, CommaLoc)) in ParseStructDeclaration()
4236 SourceLocation CommaLoc; in ParseEnumBody() local
4237 if (Tok.isNot(tok::r_brace) && !TryConsumeToken(tok::comma, CommaLoc)) { in ParseEnumBody()
4244 if (TryConsumeToken(tok::comma, CommaLoc)) in ParseEnumBody()
4252 if (Tok.is(tok::r_brace) && CommaLoc.isValid()) { in ParseEnumBody()
4254 Diag(CommaLoc, getLangOpts().CPlusPlus ? in ParseEnumBody()
4257 << FixItHint::CreateRemoval(CommaLoc); in ParseEnumBody()
4259 Diag(CommaLoc, diag::warn_cxx98_compat_enumerator_list_comma) in ParseEnumBody()
4260 << FixItHint::CreateRemoval(CommaLoc); in ParseEnumBody()