Lines Matching refs:getLocation
109 Diag(Tok.getLocation(), diag::err_expected_template); in ParseTemplateDeclarationOrSpecialization()
171 Diag(Tok.getLocation(), diag::err_templated_invalid_declaration) in ParseSingleDeclarationAfterTemplate()
319 Diag(Tok.getLocation(), diag::err_expected_less_after) << "template"; in ParseTemplateParameters()
335 RAngleLoc = Tok.getLocation(); in ParseTemplateParameters()
336 Tok.setLocation(Tok.getLocation().getLocWithOffset(1)); in ParseTemplateParameters()
338 Diag(Tok.getLocation(), diag::err_expected) << tok::greater; in ParseTemplateParameters()
376 Diag(Tok.getLocation(), diag::err_expected_comma_greater); in ParseTemplateParameterList()
513 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier; in ParseTypeParameter()
572 Diag(Tok.getLocation(), in ParseTemplateTemplateParameter()
577 ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
582 Diag(Tok.getLocation(), diag::err_class_on_template_template_param) in ParseTemplateTemplateParameter()
583 << (Replace ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
584 : FixItHint::CreateInsertion(Tok.getLocation(), "class ")); in ParseTemplateTemplateParameter()
586 Diag(Tok.getLocation(), diag::err_class_on_template_template_param); in ParseTemplateTemplateParameter()
611 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier; in ParseTemplateTemplateParameter()
635 Diag(Tok.getLocation(), in ParseTemplateTemplateParameter()
666 Diag(Tok.getLocation(), diag::err_expected_template_parameter); in ParseNonTypeTemplateParameter()
741 Diag(Tok.getLocation(), diag::err_expected) << tok::greater; in ParseGreaterThanInTemplateList()
747 RAngleLoc = Tok.getLocation(); in ParseGreaterThanInTemplateList()
776 RAngleLoc = Tok.getLocation(); in ParseGreaterThanInTemplateList()
801 Hint2 = FixItHint::CreateInsertion(Next.getLocation(), " "); in ParseGreaterThanInTemplateList()
809 Diag(Tok.getLocation(), DiagId) << Hint1 << Hint2; in ParseGreaterThanInTemplateList()
1092 Name.setIdentifier(Tok.getIdentifierInfo(), Tok.getLocation()); in ParseTemplateTemplateArgument()
1113 Name.setIdentifier(Tok.getIdentifierInfo(), Tok.getLocation()); in ParseTemplateTemplateArgument()
1156 SourceLocation Loc = Tok.getLocation(); in ParseTemplateArgument()
1183 SourceLocation Loc = Tok.getLocation(); in ParseTemplateArgument()