Lines Matching refs:CommaLoc
2527 SourceLocation CommaLoc; in ParseDeclGroup() local
2528 while (TryConsumeToken(tok::comma, CommaLoc)) { in ParseDeclGroup()
2533 Diag(CommaLoc, diag::err_expected_semi_declaration) in ParseDeclGroup()
2534 << FixItHint::CreateReplacement(CommaLoc, ";"); in ParseDeclGroup()
2545 Diag(CommaLoc, diag::err_multiple_template_declarators) in ParseDeclGroup()
2551 D.setCommaLoc(CommaLoc); in ParseDeclGroup()
4940 SourceLocation CommaLoc; in ParseStructDeclaration() local
4943 DeclaratorInfo.D.setCommaLoc(CommaLoc); in ParseStructDeclaration()
4986 if (!TryConsumeToken(tok::comma, CommaLoc)) in ParseStructDeclaration()
5702 SourceLocation CommaLoc; in ParseEnumBody() local
5703 if (Tok.isNot(tok::r_brace) && !TryConsumeToken(tok::comma, CommaLoc)) { in ParseEnumBody()
5710 if (TryConsumeToken(tok::comma, CommaLoc)) in ParseEnumBody()
5718 if (Tok.is(tok::r_brace) && CommaLoc.isValid()) { in ParseEnumBody()
5720 Diag(CommaLoc, getLangOpts().CPlusPlus ? in ParseEnumBody()
5723 << FixItHint::CreateRemoval(CommaLoc); in ParseEnumBody()
5725 Diag(CommaLoc, diag::warn_cxx98_compat_enumerator_list_comma) in ParseEnumBody()
5726 << FixItHint::CreateRemoval(CommaLoc); in ParseEnumBody()