Lines Matching defs:ColonLoc
562 SourceLocation ColonLoc = ConsumeToken();
601 SubStmt = Actions.ActOnNullStmt(ColonLoc);
610 return Actions.ActOnLabelStmt(IdentTok.getLocation(), LD, ColonLoc,
646 SourceLocation ColonLoc;
650 ColonLoc = SourceLocation();
675 TryConsumeToken(tok::colon, ColonLoc);
693 TryConsumeToken(tok::colon, ColonLoc);
702 if (TryConsumeToken(tok::colon, ColonLoc)) {
703 } else if (TryConsumeToken(tok::semi, ColonLoc) ||
704 TryConsumeToken(tok::coloncolon, ColonLoc)) {
706 Diag(ColonLoc, diag::err_expected_after)
708 << FixItHint::CreateReplacement(ColonLoc, ":");
714 ColonLoc = ExpectedLoc;
719 RHS.get(), ColonLoc);
748 // not valid. If ColonLoc doesn't point to a valid text location, there was
750 if (ColonLoc.isValid()) {
751 SourceLocation AfterColonLoc = PP.getLocForEndOfToken(ColonLoc);
779 SourceLocation ColonLoc;
780 if (TryConsumeToken(tok::colon, ColonLoc)) {
781 } else if (TryConsumeToken(tok::semi, ColonLoc)) {
783 Diag(ColonLoc, diag::err_expected_after)
785 << FixItHint::CreateReplacement(ColonLoc, ":");
791 ColonLoc = ExpectedLoc;
801 SourceLocation AfterColonLoc = PP.getLocForEndOfToken(ColonLoc);
809 SubStmt = Actions.ActOnNullStmt(ColonLoc);
811 return Actions.ActOnDefaultStmt(DefaultLoc, ColonLoc,
1549 ForRangeInit.ColonLoc = ConsumeToken();
1578 Diag(ForRangeInit.ColonLoc, getLangOpts().CPlusPlus11 ?
1704 ForRangeInit.ColonLoc, ForRangeInit.RangeExpr.get(),