|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/Parse/Parser.h 1069 DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID);
References
tools/clang/include/clang/Parse/RAIIObjectsForParser.h 433 P.Diag(SemiLoc, diag::err_unexpected_semi)
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp 67 Diag(KWLoc, getLangOpts().CPlusPlus11
77 Diag(KWLoc, getLangOpts().CPlusPlus11
90 Diag(KWLoc, diag::err_default_delete_in_multiple_declaration)
356 Diag(Tok.getLocation(), diag::err_default_arg_unparsed)
435 Diag(Tok.getLocation(), diag::err_except_spec_unparsed);
642 Diag(EndLoc, diag::err_expected_semi_decl_list);
763 return Diag(Tok.getLocation(), diag::err_expected) << tok::l_brace;
791 return Diag(Tok.getLocation(), diag::err_expected_lparen_after)
796 Diag(Tok.getLocation(), diag::err_expected) << tok::r_paren;
797 Diag(OpenLoc, diag::note_matching) << tok::l_paren;
852 return Diag(Tok.getLocation(), diag::err_expected) << tok::l_brace;
857 return Diag(Tok.getLocation(), diag::err_expected_either)
860 return Diag(Tok.getLocation(), diag::err_expected) << tok::l_paren;
905 Diag(OpenLoc, diag::note_matching) << kind;
939 return Diag(Tok.getLocation(), diag::err_expected_either) << tok::l_brace
tools/clang/lib/Parse/ParseDecl.cpp 557 Diag(AttrNameLoc, diag::err_ms_property_no_getter_or_putter);
561 Diag(Tok.getLocation(), diag::err_ms_property_unknown_accessor);
575 Diag(KindLoc, diag::err_ms_property_has_set_accessor)
582 Diag(KindLoc, diag::err_ms_property_missing_accessor_kind);
589 Diag(KindLoc, diag::err_ms_property_unknown_accessor);
603 Diag(Tok.getLocation(), diag::err_ms_property_expected_equal)
610 Diag(Tok.getLocation(), diag::err_ms_property_expected_accessor_name);
618 Diag(KindLoc, diag::err_ms_property_duplicate_accessor) << KindStr;
633 Diag(Tok.getLocation(), diag::err_ms_property_expected_comma_or_rparen);
653 Diag(OpenParenLoc, diag::err_attribute_requires_arguments) << AttrName;
718 Diag(Tok.getLocation(), diag::err_expected_lparen_after)
764 Diag(StartLoc, diag::warn_microsoft_qualifiers_ignored) << Range;
831 Diag(AttrNameLoc, diag::ext_nullability)
1061 Diag(KeywordLoc, diag::err_availability_redundant)
1070 Diag(KeywordLoc, diag::err_availability_redundant)
1081 Diag(KeywordLoc, diag::err_availability_redundant)
1113 Diag(MessageStringLiteral->getSourceRange().getBegin(),
1159 Diag(KeywordLoc, diag::err_availability_redundant)
1169 Diag(KeywordLoc, diag::err_availability_unknown_change)
1189 Diag(UnavailableLoc, diag::warn_availability_and_unavailable)
1296 Diag(KeywordLoc, diag::err_external_source_symbol_duplicate_clause)
1305 Diag(KeywordLoc, diag::err_external_source_symbol_duplicate_clause)
1639 Diag(Tok.getLocation(), diag::err_l_square_l_square_not_attribute);
1649 Diag(BeginLoc, diag::err_attributes_not_allowed)
1670 Diag(Loc, diag::err_attributes_not_allowed)
1679 Diag(CorrectLocation, diag::err_attributes_misplaced)
1683 Diag(Range.getBegin(), diag::err_attributes_not_allowed) << Range;
1692 Diag(AL.getLoc(), diag::warn_unknown_attribute_ignored) << AL;
1694 Diag(AL.getLoc(), DiagID) << AL;
2038 Diag(Loc, diag::err_c11_noreturn_misplaced)
2143 Diag(CommaLoc, diag::err_expected_semi_declaration)
2317 Diag(D.getIdentifierLoc(),
2343 Diag(ConsumeToken(), diag::err_default_delete_in_multiple_declaration)
2346 Diag(ConsumeToken(), diag::err_deleted_non_function);
2349 Diag(ConsumeToken(), diag::err_default_delete_in_multiple_declaration)
2352 Diag(ConsumeToken(), diag::err_default_special_members)
2370 Diag(EqualLoc, diag::err_single_decl_assign_in_for_range)
2499 Diag(DS.getStorageClassSpecLoc(),diag::err_typename_invalid_storageclass);
2501 Diag(DS.getThreadStorageClassSpecLoc(),
2509 Diag(DS.getInlineSpecLoc(), diag::err_typename_invalid_functionspec);
2511 Diag(DS.getVirtualSpecLoc(), diag::err_typename_invalid_functionspec);
2513 Diag(DS.getExplicitSpecLoc(), diag::err_typename_invalid_functionspec);
2519 Diag(DS.getConstexprSpecLoc(), diag::err_typename_invalid_constexpr)
2654 Diag(Loc, diag::err_use_of_tag_name_without_tag)
2661 Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
2708 Diag(Loc, diag::err_constructor_bad_name)
2966 Diag(PP.getLocForEndOfToken(DS.getRepAsDecl()->getEndLoc()),
3310 Diag(Loc, diag::err_ms_attributes_not_enabled);
3625 Diag(Tok.getLocation(), diag::warn_cxx2a_compat_explicit_bool);
3980 Diag(StartLoc, DiagID) << PrevSpec;
4002 Diag(Loc, DiagID) << PrevSpec
4006 Diag(Loc, DiagID) << getLangOpts().OpenCLCPlusPlus
4010 Diag(Loc, DiagID) << PrevSpec;
4177 Diag(Tok.getLocation(), diag::err_pragma_misplaced_in_decl)
4448 Diag(StartLoc, diag::warn_cxx98_compat_enum_fixed_underlying_type);
4450 Diag(StartLoc, diag::ext_cxx11_enum_fixed_underlying_type);
4452 Diag(StartLoc, diag::ext_ms_c_enum_fixed_underlying_type);
4454 Diag(StartLoc, diag::ext_clang_c_enum_fixed_underlying_type);
4474 Diag(Tok.getLocation(), diag::err_friend_decl_defines_type)
4516 Diag(StartLoc, diag::err_explicit_instantiation_enum);
4569 Diag(StartLoc, DiagID) << PrevSpec;
4593 Diag(StartLoc, DiagID) << PrevSpec;
4624 Diag(StartLoc, DiagID) << PrevSpec;
4659 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
4674 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17
4705 Diag(Loc, diag::err_enumerator_list_missing_comma)
4715 Diag(Tok.getLocation(), diag::err_expected_either) << tok::r_brace
4718 Diag(Tok.getLocation(), diag::err_expected_end_of_enumerator);
4730 Diag(CommaLoc, getLangOpts().CPlusPlus ?
4735 Diag(CommaLoc, diag::warn_cxx98_compat_enumerator_list_comma)
5626 Diag(Loc, getLangOpts().CPlusPlus11 ?
5639 Diag(DS.getConstSpecLoc(),
5642 Diag(DS.getVolatileSpecLoc(),
5646 Diag(DS.getAtomicSpecLoc(),
5658 Diag(InnerChunk.Loc, diag::err_illegal_decl_reference_to_reference)
5661 Diag(InnerChunk.Loc, diag::err_illegal_decl_reference_to_reference)
5860 Diag(PP.getLocForEndOfToken(D.getCXXScopeSpec().getEndLoc()),
5897 Diag(Tok.getLocation(), diag::err_unexpected_unqualified_id)
5944 Diag(PP.getLocForEndOfToken(D.getEllipsisLoc()),
5957 Diag(getMissingDeclaratorIdLoc(D, Tok.getLocation()),
5967 Diag(getMissingDeclaratorIdLoc(D, Tok.getLocation()),
5977 Diag(PP.getLocForEndOfToken(Loc), diag::err_expected_unqualified_id)
5980 Diag(getMissingDeclaratorIdLoc(D, Tok.getLocation()),
5985 Diag(getMissingDeclaratorIdLoc(D, Tok.getLocation()),
6060 Diag(EndLoc, diag::err_expected)
6091 Diag(Tok.getLocation(), diag::ext_decomp_decl_empty);
6621 Diag(DSStart, diag::err_missing_param);
6698 Diag(EllipsisLoc, diag::err_missing_comma_before_ellipsis)
6705 Diag(EllipsisLoc, diag::warn_misplaced_ellipsis_vararg)
6708 Diag(ParmEllipsis,
6711 Diag(ParmDeclarator.getIdentifierLoc(),
6717 Diag(EllipsisLoc, diag::note_misplaced_ellipsis_vararg_add_comma)
6803 Diag(StaticLoc, diag::err_unspecified_vla_size_with_static);
6825 Diag(StaticLoc, diag::err_unspecified_size_with_static);
6922 Diag(EndLoc, diag::err_brackets_go_after_unqualified_id)
6930 Diag(EndLoc, diag::err_brackets_go_after_unqualified_id)
6980 Diag(StartLoc, DiagID) << PrevSpec;
7003 Diag(StartLoc, DiagID) << PrevSpec;
7038 Diag(StartLoc, DiagID) << PrevSpec;
tools/clang/lib/Parse/ParseDeclCXX.cpp 79 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17
113 Diag(attrLoc, diag::err_unexpected_nested_namespace_attribute);
129 Diag(attrLoc, diag::err_unexpected_namespace_attributes_alias);
131 Diag(InlineLoc, diag::err_inline_namespace_alias)
149 Diag(T.getOpenLocation(), diag::err_namespace_nonnamespace_scope);
157 Diag(InlineLoc, diag::err_inline_nested_namespace_definition);
159 Diag(ExtraNSs[0].NamespaceLoc,
162 Diag(FirstNestedInlineLoc,
165 Diag(ExtraNSs[0].NamespaceLoc,
168 Diag(FirstNestedInlineLoc, diag::ext_inline_nested_namespace_definition);
176 Diag(ExtraNSs[0].NamespaceLoc, diag::ext_nested_namespace_definition)
193 Diag(ExtraNSs[0].NamespaceLoc, diag::ext_nested_namespace_definition)
203 Diag(FirstNestedInlineLoc, diag::ext_inline_nested_namespace_definition);
208 Diag(InlineLoc, getLangOpts().CPlusPlus11 ?
441 Diag(ExportLoc, diag::err_export_empty)
480 Diag(TemplateLoc, diag::err_unexpected_template_after_using)
489 Diag(UsingLoc, diag::err_templated_using_directive_declaration)
594 Diag(Tok.getLocation(), diag::err_super_in_using_declaration);
645 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17 ?
695 Diag(MisplacedAttrs.Range.getBegin(), diag::err_attributes_not_allowed)
719 Diag(UsingLoc, diag::err_templated_using_directive_declaration)
740 Diag(D.Name.getSourceRange().getBegin(),
763 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17 ?
786 Diag(Tok.getLocation(), getLangOpts().CPlusPlus11 ?
806 Diag(Range.getBegin(), diag::err_alias_declaration_specialization)
814 Diag(D.Name.StartLocation, diag::err_alias_declaration_not_identifier);
819 Diag(D.TypenameLoc, diag::err_alias_declaration_not_identifier)
824 Diag(D.SS.getBeginLoc(), diag::err_alias_declaration_not_identifier)
827 Diag(D.EllipsisLoc, diag::err_alias_declaration_pack_expansion)
968 Diag(Tok.getLocation(),
1033 Diag(StartLoc, DiagID) << PrevSpec;
1085 Diag(StartLoc, DiagID) << PrevSpec;
1128 Diag(SS.getBeginLoc(), diag::err_unexpected_scope_on_base_decltype)
1175 Diag(IdLoc, diag::err_unknown_template_name)
1219 Diag(IdLoc, diag::err_expected_class_name);
1569 Diag(NameLoc, diag::err_explicit_spec_non_template)
1644 Diag(TemplateId->LAngleLoc, diag::err_template_spec_syntax_non_template)
1693 Diag(Tok.getLocation(), diag::err_friend_decl_defines_type)
1760 Diag(AttrRange.getBegin(), diag::err_attributes_not_allowed)
1784 Diag(StartLoc, diag::err_anon_type_definition)
1856 Diag(DS.getFriendSpecLoc(), diag::err_friend_explicit_instantiation);
1861 Diag(TemplateId->TemplateNameLoc,
1997 Diag(StartLoc, DiagID) << PrevSpec;
2100 Diag(VirtualLoc, diag::err_dup_virtual)
2253 Diag(Tok.getLocation(), diag::err_friend_decl_spec)
2265 Diag(Tok.getLocation(), diag::err_duplicate_virt_specifier)
2271 Diag(Tok.getLocation(), diag::err_override_control_interface)
2274 Diag(Tok.getLocation(), diag::ext_ms_sealed_keyword);
2276 Diag(Tok.getLocation(), diag::ext_warn_gnu_final);
2278 Diag(Tok.getLocation(),
2350 Diag(AL.getLoc(), diag::warn_gcc_attribute_location);
2395 Diag(SpecLoc, diag::err_declspec_after_virtspec)
2412 Diag(RefQualifierLoc, diag::err_declspec_after_virtspec)
2581 Diag(TemplateLoc, diag::err_unexpected_template_after_using)
2586 Diag(UsingLoc, diag::err_using_namespace_in_class);
2720 Diag(DeclaratorInfo.getIdentifierLoc(), diag::err_func_def_no_params);
2731 Diag(DeclaratorInfo.getIdentifierLoc(),
2804 Diag((*I).getBegin(), diag::err_attributes_not_allowed) << *I;
2903 Diag(CommaLoc, diag::err_expected_semi_declaration)
2973 Diag(ConsumeToken(), diag::err_default_delete_in_multiple_declaration)
2976 Diag(ConsumeToken(), diag::err_deleted_non_function);
2984 Diag(ConsumeToken(), diag::err_default_special_members)
3033 Diag(PP.getLocForEndOfToken(PrevTokLocation),
3116 Diag(EndLoc, diag::err_expected)
3120 Diag(EndLoc, diag::err_expected)
3127 Diag(ASLoc, diag::err_access_specifier_interface) << (AS == AS_protected);
3144 Diag(Tok.getLocation(), diag::err_pragma_misplaced_in_decl)
3189 Diag(RecordLoc, diag::err_invalid_member_in_interface)
3229 Diag(FinalLoc, diag::err_override_control_interface)
3232 Diag(FinalLoc, getLangOpts().CPlusPlus11
3237 Diag(FinalLoc, diag::ext_ms_sealed_keyword);
3239 Diag(FinalLoc, diag::ext_warn_gnu_final);
3292 Diag(BraceLoc, diag::err_expected_lbrace_after_base_specifiers);
3386 Diag(D->getLocation(),
3388 Diag(Tok.getLocation(),
3457 Diag(Loc, diag::err_ctor_init_missing_comma)
3462 Diag(Tok.getLocation(), diag::err_expected_either) << tok::l_brace
3689 Diag(Tok.getLocation(), diag::err_dynamic_and_noexcept_specification);
3694 Diag(Tok.getLocation(), diag::err_dynamic_and_noexcept_specification);
3704 P.Diag(Range.getBegin(),
3709 P.Diag(Range.getBegin(), diag::note_exception_spec_deprecated)
3744 Diag(EllipsisLoc, diag::ext_ellipsis_exception_spec);
4004 Diag(LParenLoc, diag::err_attribute_requires_arguments) << AttrName;
4010 Diag(LParenLoc, diag::err_cxx11_attribute_forbids_arguments)
4046 Diag(Tok.getLocation(), diag::warn_cxx98_compat_alignas);
4054 Diag(Tok.getLocation(), diag::warn_cxx98_compat_attribute);
4062 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17
4069 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
4073 Diag(Tok.getLocation(), diag::err_expected) << tok::colon;
4098 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
4106 Diag(ScopeLoc, diag::err_using_attribute_ns_conflict)
4119 Diag(AttrLoc, diag::err_cxx11_attribute_repeated)
4173 Diag(StartLoc, diag::err_attributes_not_allowed)
4341 Diag(Result.KeywordLoc, diag::warn_microsoft_dependent_exists)
tools/clang/lib/Parse/ParseExpr.cpp 340 Diag(BraceLoc, diag::err_init_list_bin_op)
474 Diag(ColonLoc, diag::err_init_list_bin_op)
1221 Diag(AmpAmpLoc, diag::ext_gnu_address_of_label);
1401 Diag(CCLoc, diag::err_expected_expression);
1496 Diag(PostfixExpr->getExprLoc(),
1653 Diag(OpenLoc, diag::note_matching) << tok::lesslessless;
1759 Diag(OpLoc, diag::err_function_is_not_record)
1916 Diag(LParenLoc, diag::err_expected_parentheses_around_typename)
2014 Diag(LParenLoc, diag::err_paren_sizeof_parameter_pack)
2410 Diag(BridgeKeywordLoc, diag::warn_arc_bridge_cast_nonarc)
2423 Result = ExprError(Diag(OpenLoc, diag::err_stmtexpr_file_scope));
2466 Diag(BridgeKeywordLoc, diag::err_arc_bridge_retain)
2602 Diag(Tok.getLocation(), diag::err_illegal_super_cast)
2696 Diag(LParenLoc, diag::ext_c99_compound_literal);
2781 Diag(DefaultLoc, diag::note_previous_default_assoc);
2853 return Diag(Tok.getLocation(), diag::err_expected_fold_operator);
2856 Diag(Tok.getLocation(), diag::err_fold_operator_mismatch)
2868 Diag(EllipsisLoc, getLangOpts().CPlusPlus17
3124 P.Diag(Spec.getBeginLoc(), diag::err_availability_query_repeated_star);
3138 P.Diag(Spec.getBeginLoc(), diag::err_availability_query_repeated_platform)
3146 P.Diag(InsertWildcardLoc, diag::err_availability_query_wildcard_required)
3186 Diag(PlatformIdentifier->Loc,
tools/clang/lib/Parse/ParseExprCXX.cpp 60 P.Diag(DigraphToken.getLocation(), diag::err_missing_whitespace_digraph)
191 Diag(ConsumeToken(), diag::err_expected) << tok::identifier;
204 Diag(Tok.getLocation(), diag::err_expected_coloncolon_after_super);
297 Diag(TemplateName.getSourceRange().getBegin(),
414 Diag(PP.getLocForEndOfToken(ConsumeToken()), diag::err_expected)
521 Diag(Tok.getLocation(), DiagID)
883 Diag(Tok.getLocation(), diag::err_expected_comma_or_rsquare);
919 Diag(Tok.getLocation(), diag::err_expected_star_this_capture);
948 Diag(Tok.getLocation(), diag::err_this_captured_by_reference);
952 Diag(Tok.getLocation(), diag::err_expected_capture);
1093 auto &&D = Diag(DiagLoc, DiagID);
1155 P.Diag(P.getCurToken().getLocation(),
1165 P.Diag(P.getCurToken().getLocation(),
1174 P.Diag(P.getCurToken().getLocation(),
1191 P.Diag(ConstexprLoc, !P.getLangOpts().CPlusPlus17
1206 P.Diag(ConstevalLoc, diag::warn_cxx20_compat_consteval);
1211 P.Diag(ConstevalLoc, DiagID) << PrevSpec;
1220 Diag(LambdaBeginLoc, diag::warn_cxx98_compat_lambda);
1252 Diag(A.getLoc(), diag::warn_cuda_attr_lambda_position)
1274 Diag(RAngleLoc,
1525 return ExprError(Diag(LAngleBracketLoc, diag::note_matching) << tok::less);
1927 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17
1944 Diag(SemiLoc, diag::warn_empty_init_statement)
2031 Diag(Tok.getLocation(),
2042 Diag(DeclOut->getLocation(),
2046 Diag(DeclOut->getLocation(), diag::err_expected_init_in_condition);
2297 Diag(Id.StartLocation, diag::err_missing_dependent_template_keyword)
2337 Diag(NameLoc, diag::err_destructor_template_id)
2538 Diag(Tok.getLocation(), diag::warn_cxx98_compat_literal_operator);
2578 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
2598 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement(
2690 Diag(TemplateLoc, diag::err_unexpected_template_in_unqualified_id)
2759 Diag(TemplateId->TemplateNameLoc,
2788 Diag(TemplateLoc, diag::err_unexpected_template_in_unqualified_id)
2870 Diag(TildeLoc, diag::err_destructor_tilde_scope);
2875 Diag(TildeLoc, diag::err_destructor_tilde_scope)
3053 Diag(Tok.getLocation(),
3190 Diag(Start, diag::err_lambda_after_delete)
3198 Diag(Start, diag::err_lambda_after_delete)
3318 Diag(EndLoc, diag::err_type_trait_arity)
3324 Diag(EndLoc, diag::err_type_trait_arity)
3570 Diag(Tok.getLocation(), diag::err_expected) << tok::comma;
tools/clang/lib/Parse/ParseInit.cpp 111 P.Diag(Loc, diag::ext_gnu_missing_equal_designator);
113 P.Diag(Loc, diag::err_expected_equal_designator);
175 Diag(NameLoc, diag::ext_gnu_old_style_field_designator)
197 Diag(Tok.getLocation(), diag::err_expected_field_designator);
437 Diag(LBraceLoc, diag::ext_gnu_empty_initializer);
536 Diag(Result.KeywordLoc, diag::warn_microsoft_dependent_exists)
tools/clang/lib/Parse/ParseObjc.cpp 84 Diag(AtLoc, diag::err_atimport);
88 Diag(AtLoc, diag::err_unexpected_at);
177 Diag(AtLoc, diag::err_objc_missing_end)
180 Diag(Decl->getBeginLoc(), diag::note_objc_container_start) << (int)ock;
528 Diag(lAngleLoc, diag::note_matching) << "'<'";
696 Diag(AtLoc, diag::err_objc_illegal_interface_qual);
703 Diag(AtLoc, diag::err_objc_missing_end)
705 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start)
714 Diag(AtLoc, diag::err_objc_directive_only_in_protocol);
731 Diag(AtLoc, diag::err_objc_property_requires_field_name)
736 Diag(AtLoc, diag::err_objc_property_bitfield)
787 Diag(CDecl->getBeginLoc(), diag::note_objc_container_start)
804 P.Diag(nullabilityLoc, diag::warn_nullability_duplicate)
810 P.Diag(nullabilityLoc, diag::err_nullability_conflicting)
958 Diag(AttrName, diag::err_objc_expected_property_attr) << II;
1459 Diag(ArgInfo.NameLoc, diag::warn_missing_selector_name) << ArgInfo.Name;
1460 Diag(ArgInfo.NameLoc, diag::note_missing_selector_name) << ArgInfo.Name;
1461 Diag(ColonLoc, diag::note_force_empty_selector_name) << ArgInfo.Name;
1575 Diag(lAngleLoc, diag::warn_objc_protocol_qualifier_missing_id)
2128 Diag(diagLoc, diag::err_objc_parameterized_implementation)
2131 Diag(lAngleLoc, diag::err_unexpected_protocol_qualifier)
2233 Diag(atEnd.getBegin(), diag::err_expected_objc_container);
2243 P.Diag(Dcl->getBeginLoc(), diag::note_objc_container_start)
2383 Diag(AttrName, diag::err_objc_expected_property_attr) << II;
2567 Diag(AtCatchFinallyLoc, diag::err_expected_lparen_after)
2605 Diag(atLoc, diag::err_missing_catch_finally);
2835 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
2861 return ExprError(Diag(AtLoc, diag::err_unexpected_at) <<
2865 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
3259 Diag(commaLoc, diag::note_extra_comma_message_arg) <<
tools/clang/lib/Parse/ParseOpenMP.cpp 215 P.Diag(Tok.getLocation(), diag::err_omp_expected_reduction_identifier);
259 Diag(Tok.getLocation(), diag::err_expected_type);
292 Diag(Tok.getLocation(), diag::err_expected_type);
311 Diag(Tok.getLocation(), diag::err_expected_expression);
347 Diag(Tok.getLocation(), diag::err_expected) << "'initializer'";
508 Diag(Tok.getLocation(), diag::err_omp_mapper_illegal_identifier);
611 Diag(Tok.getLocation(), diag::err_omp_mapper_expected_declarator);
831 P.Diag(Tok.getLocation(), diag::warn_omp_declare_variant_cs_name_expected)
845 P.Diag(Tok.getLocation(), diag::err_omp_declare_variant_ctx_mutiple_use)
847 P.Diag(Res.first->getValue(), diag::note_omp_declare_variant_ctx_used_here)
873 P.Diag(Tok.getLocation(), diag::err_omp_declare_variant_item_expected)
897 P.Diag(Tok.getLocation(), diag::warn_omp_declare_variant_cs_name_expected)
920 Diag(Tok.getLocation(), diag::err_omp_declare_variant_no_ctx_selector)
930 Diag(Tok.getLocation(), diag::err_omp_declare_variant_ctx_set_mutiple_use)
932 Diag(Res.first->getValue(),
939 Diag(Tok.getLocation(), diag::err_omp_declare_variant_equal_expected)
1021 Diag(Tok.getLocation(), diag::err_omp_declare_variant_wrong_clause)
1147 Diag(DevTypeData.getValue().Loc,
1206 Diag(DTLoc, diag::note_matching) << "'#pragma omp declare target'";
1420 Diag(Loc, diag::err_omp_decl_in_declare_simd_variant)
1831 Diag(Loc, diag::err_omp_immediate_directive)
1921 Diag(PrevTok.getLocation(), diag::err_expected)
2472 Diag(Tok.getLocation(), diag::err_omp_mapper_illegal_identifier);
tools/clang/lib/Parse/ParsePragma.cpp 1080 Diag(Toks[0].getLocation(), diag::err_pragma_loop_missing_argument)
1102 Diag(Toks[0].getLocation(), diag::err_pragma_pipeline_invalid_keyword);
1104 Diag(Toks[0].getLocation(), diag::err_pragma_invalid_keyword)
1111 Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol)
1125 Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol)
1186 PRef.Diag(SubRuleLoc,
1200 PRef.Diag(SubRuleLoc, diag::err_pragma_attribute_unknown_subject_sub_rule)
1246 Diag(RuleLoc, diag::err_pragma_attribute_duplicate_subject)
1301 Diag(RuleLoc, diag::err_pragma_attribute_duplicate_subject)
1349 auto Diagnostic = PRef.Diag(Loc, DiagID);
1499 Diag(Loc, diag::err_pragma_attribute_multiple_attributes);
1506 Diag(PragmaLoc, diag::err_pragma_attribute_unsupported_attribute)
tools/clang/lib/Parse/ParseStmt.cpp 733 Diag(DotDotDotLoc, diag::ext_gnu_case_range);
747 Diag(ColonLoc, diag::err_expected_after)
752 Diag(ExpectedLoc, diag::err_expected_after)
792 Diag(AfterColonLoc, diag::err_label_end_of_compound_statement)
828 Diag(ColonLoc, diag::err_expected_after)
833 Diag(ExpectedLoc, diag::err_expected_after)
847 Diag(AfterColonLoc, diag::err_label_end_of_compound_statement)
983 Diag(StartLoc, diag::warn_null_statement)
1321 Diag(InnerStatementTrailingElseLoc, diag::warn_dangling_else);
1538 Diag(DoLoc, diag::note_matching) << "'do'";
1697 Diag(Loc, diag::err_for_range_identifier)
1723 Diag(ForRangeInfo.ColonLoc, getLangOpts().CPlusPlus11 ?
1815 Diag(FirstPart.get() ? FirstPart.get()->getBeginLoc()
1823 Diag(EmptyInitStmtSemiLoc, diag::warn_empty_init_statement)
1867 Diag(CoawaitLoc, diag::err_for_co_await_not_range_for);
2029 Diag(R.get()->getBeginLoc(),
tools/clang/lib/Parse/ParseStmtAsm.cpp 196 TheParser.Diag(Loc, diag::err_inline_ms_asm_parsing) << D.getMessage();
533 Diag(LBraceLocs.back(), diag::note_matching) << tok::l_brace;
556 Diag(AsmLoc, diag::err_msasm_unsupported_arch) << TheTriple.getArchName();
561 Diag(AsmLoc, diag::err_msasm_unable_to_create_target) << Error;
704 Diag(Loc, diag::warn_asm_qualifier_ignored) << "const";
706 Diag(Loc, diag::warn_asm_qualifier_ignored) << "restrict";
709 Diag(Loc, diag::warn_asm_qualifier_ignored) << "_Atomic";
736 Diag(Loc, diag::err_gnu_inline_asm_disabled);
tools/clang/lib/Parse/ParseTemplate.cpp 111 Diag(Tok.getLocation(), diag::err_expected_template);
185 Diag(Tok.getLocation(), diag::err_templated_invalid_declaration)
276 Diag(DS.getStorageClassSpecLoc(), diag::err_function_declared_typedef)
292 Diag(DeclaratorInfo.getIdentifierLoc(),
351 Diag(Tok.getLocation(), diag::ext_concept_legacy_bool_keyword) <<
366 Diag(SS.getBeginLoc(),
381 Diag(Result.getBeginLoc(), diag::err_concept_definition_not_identifier);
392 Diag(Tok.getLocation(), diag::err_expected) << tok::equal;
426 Diag(Tok.getLocation(), diag::err_expected_less_after) << "template";
445 Diag(Tok.getLocation(), diag::err_expected) << tok::greater;
484 Diag(Tok.getLocation(), diag::err_expected_comma_greater);
584 Diag(Tok.getLocation(), diag::err_expected_template_parameter);
586 Diag(Tok.getLocation(), diag::note_meant_to_use_typename)
626 Diag(EllipsisLoc,
643 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
702 Diag(Tok.getLocation(),
711 Diag(Tok.getLocation(), diag::err_class_on_template_template_param)
715 Diag(Tok.getLocation(), diag::err_class_on_template_template_param);
724 Diag(EllipsisLoc,
740 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
763 Diag(Tok.getLocation(),
795 Diag(Tok.getLocation(), diag::err_expected_template_parameter);
837 Diag(EllipsisLoc, diag::err_misplaced_ellipsis_in_declaration)
877 Diag(Tok.getLocation(), diag::err_expected) << tok::greater;
963 Diag(TokLoc, DiagId) << Hint1 << Hint2;
tools/clang/lib/Parse/Parser.cpp 77 return Diag(Tok.getLocation(), DiagID);
92 Diag(Loc, DK);
96 Diag(Loc, DK)
120 DiagnosticBuilder DB = Diag(Loc, DiagID);
143 ? Diag(EndLoc, DiagID) << FixItHint::CreateInsertion(EndLoc, Spelling)
195 Diag(StartLoc, diag::warn_cxx98_compat_top_level_semi)
198 Diag(StartLoc, diag::ext_extra_semi_cxx11)
204 Diag(StartLoc, diag::ext_extra_semi)
210 Diag(StartLoc, diag::warn_extra_semi_after_mem_fn_def)
810 Diag(StartLoc, diag::err_gnu_inline_asm_disabled);
871 Diag(ConsumeToken(), diag::warn_static_inline_explicit_inst_ignored)
891 Diag(ConsumeToken(), diag::warn_static_inline_explicit_inst_ignored)
904 Diag(ExternLoc, getLangOpts().CPlusPlus11 ?
1073 Diag(AtLoc, DiagID) << PrevSpec;
1177 Diag(AL.getLoc(), diag::warn_attribute_on_function_definition) << AL;
1267 Diag(KWLoc, getLangOpts().CPlusPlus11
1274 Diag(KWLoc, getLangOpts().CPlusPlus11
1284 Diag(KWLoc, diag::err_default_delete_in_multiple_declaration)
1375 Diag(DSStart, diag::err_declaration_does_not_declare_param);
1383 Diag(DS.getStorageClassSpecLoc(),
1388 Diag(DS.getThreadStorageClassSpecLoc(),
1416 Diag(ParmDeclarator.getIdentifierLoc(), diag::err_no_matching_param)
1424 Diag(ParmDeclarator.getIdentifierLoc(),
1785 Diag(Tok.getLocation(), diag::warn_expected_qualified_after_typename);
1812 Diag(Tok.getLocation(), DiagID);
1819 Diag(Tok.getLocation(), diag::err_expected_qualified_after_typename);
2226 Diag(StartLoc, diag::err_global_module_introducer_not_at_start)
2231 Diag(StartLoc, diag::err_module_fragment_exported)
2241 Diag(StartLoc, diag::err_module_fragment_exported)
2263 Diag(ColonLoc, diag::err_unsupported_module_partition)
2323 Diag(ColonLoc, diag::err_unsupported_module_partition)
2479 P.Diag(LOpen, diag::note_matching) << Kind;