Home | History | Annotate | Download | only in Parse

Lines Matching refs:diag

97       Diag(Tok, diag::err_expected) << tok::identifier;
103 Diag(attrTok, diag::err_unexpected_namespace_attributes_alias);
105 Diag(InlineLoc, diag::err_inline_namespace_alias)
114 Diag(ExtraNamespaceLoc[0], diag::err_nested_namespaces_with_double_colon)
119 Diag(Tok, diag::err_expected) << tok::l_brace;
121 Diag(Tok, diag::err_expected_either) << tok::identifier << tok::l_brace;
130 Diag(ExtraNamespaceLoc[0], diag::err_nested_namespaces_with_double_colon)
133 Diag(T.getOpenLocation(), diag::err_namespace_nonnamespace_scope);
145 Diag(ExtraNamespaceLoc[0], diag::err_nested_namespaces_with_double_colon)
159 Diag(ExtraNamespaceLoc[0], diag::err_nested_namespaces_with_double_colon)
169 Diag(InlineLoc, getLangOpts().CPlusPlus11 ?
170 diag::warn_cxx98_compat_inline_namespace : diag::ext_inline_namespace);
257 Diag(Tok, diag::err_expected_namespace_name);
269 if (ExpectAndConsume(tok::semi, diag::err_expected_semi_after_namespace_name))
386 Diag(UsingLoc, diag::err_templated_using_directive)
436 Diag(Tok, diag::err_expected_namespace_name);
457 GNUAttr ? diag::err_expected_semi_after_attribute_list
458 : diag::err_expected_semi_after_namespace_name))
549 Diag(MisplacedAttrs.Range.getBegin(), diag::err_attributes_not_allowed)
559 Diag(Tok.getLocation(), getLangOpts().CPlusPlus11 ?
560 diag::warn_cxx98_compat_alias_declaration :
561 diag::ext_alias_declaration);
579 Diag(Range.getBegin(), diag::err_alias_declaration_specialization)
587 Diag(Name.StartLocation, diag::err_alias_declaration_not_identifier);
592 Diag(TypenameLoc, diag::err_alias_declaration_not_identifier)
596 Diag(SS.getBeginLoc(), diag::err_alias_declaration_not_identifier)
615 if (ExpectAndConsume(tok::semi, diag::err_expected_after,
626 Diag(UsingLoc, diag::err_templated_using_declaration)
638 Diag(Name.getSourceRange().getBegin(), diag::err_typename_identifiers_only)
673 Diag(Tok, diag::ext_c11_static_assert);
675 Diag(Tok, diag::warn_cxx98_compat_static_assert);
681 Diag(Tok, diag::err_expected) << tok::l_paren;
694 Diag(Tok, getLangOpts().CPlusPlus1z
695 ? diag::warn_cxx1y_compat_static_assert_no_message
696 : diag::ext_static_assert_no_message)
707 Diag(Tok, diag::err_expected_string_literal)
723 ExpectAndConsumeSemi(diag::err_expected_semi_after_static_assert);
754 Diag(Tok, diag::warn_cxx98_compat_decltype);
759 if (T.expectAndConsume(diag::err_expected_lparen_after,
771 Diag(Tok.getLocation(),
773 ? diag::warn_cxx11_compat_decltype_auto_type_specifier
774 : diag::ext_decltype_auto_type_specifier);
832 Diag(StartLoc, DiagID) << PrevSpec;
863 if (T.expectAndConsume(diag::err_expected_lparen_after,
884 Diag(StartLoc, DiagID) << PrevSpec;
910 Diag(Tok, diag::err_expected_class_name_not_template)
926 Diag(SS.getBeginLoc(), diag::err_unexpected_scope_on_base_decltype)
958 Diag(Tok, diag::err_expected_class_name);
972 Diag(IdLoc, diag::err_unknown_template_name)
1016 Diag(IdLoc, diag::err_expected_class_name);
1249 Diag(Tok, diag::err_expected) << tok::identifier;
1276 Diag(NameLoc, diag::err_explicit_spec_non_template)
1316 Diag(TemplateId->LAngleLoc, diag::err_template_spec_syntax_non_template)
1364 Diag(Tok.getLocation(), diag::err_friend_decl_defines_type)
1413 ExpectAndConsume(tok::semi, diag::err_expected_after,
1431 Diag(AttrRange.getBegin(), diag::err_attributes_not_allowed)
1455 Diag(StartLoc, diag::err_anon_type_definition)
1534 Diag(DS.getFriendSpecLoc(), diag::err_friend_explicit_instantiation);
1539 Diag(TemplateId->TemplateNameLoc,
1540 diag::err_explicit_instantiation_with_definition)
1597 Diag(Tok, diag::err_template_defn_explicit_instantiation)
1660 Diag(StartLoc, DiagID) << PrevSpec;
1675 ExpectAndConsume(tok::semi, diag::err_expected_after,
1759 Diag(VirtualLoc, diag::err_dup_virtual)
1891 Diag(Tok.getLocation(), diag::err_duplicate_virt_specifier)
1897 Diag(Tok.getLocation(), diag::err_override_control_interface)
1900 Diag(Tok.getLocation(), diag::ext_ms_sealed_keyword);
1902 Diag(Tok.getLocation(),
1904 ? diag::warn_cxx98_compat_override_control_keyword
1905 : diag::ext_override_control_keyword)
2009 Diag(Tok, diag::err_at_defs_cxx);
2011 Diag(Tok, diag::err_at_in_class);
2049 if (ExpectAndConsume(tok::semi, diag::err_expected_after,
2110 Diag(UsingLoc, diag::err_using_namespace_in_class);
2235 Diag(DeclaratorInfo.getIdentifierLoc(), diag::err_func_def_no_params);
2246 Diag(DeclaratorInfo.getIdentifierLoc(),
2247 diag::err_function_declared_typedef);
2283 Diag(Tok, diag::err_bitfield_member_init);
2309 Diag((*I).getBegin(), diag::err_attributes_not_allowed) << *I;
2336 Diag(Tok, getLangOpts().CPlusPlus11
2337 ? diag::warn_cxx98_compat_nonstatic_member_init
2338 : diag::ext_nonstatic_member_init);
2346 Diag(Tok, diag::err_incomplete_array_member_init);
2401 Diag(CommaLoc, diag::err_expected_semi_declaration)
2423 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list)) {
2475 Diag(ConsumeToken(), diag::err_default_delete_in_multiple_declaration)
2478 Diag(ConsumeToken(), diag::err_deleted_non_function);
2483 Diag(Tok, diag::err_default_delete_in_multiple_declaration)
2486 Diag(ConsumeToken(), diag::err_default_special_members);
2523 Diag(RecordLoc, diag::err_invalid_member_in_interface)
2568 Diag(FinalLoc, diag::err_override_control_interface)
2571 Diag(FinalLoc, getLangOpts().CPlusPlus11
2572 ? diag::warn_cxx98_compat_override_control_keyword
2573 : diag::ext_override_control_keyword)
2576 Diag(FinalLoc, diag::ext_ms_sealed_keyword);
2589 Diag(Tok, diag::err_expected_lbrace_after_base_specifiers);
2682 Diag(EndLoc, diag::err_expected)
2686 Diag(EndLoc, diag::err_expected)
2693 Diag(ASLoc, diag::err_access_specifier_interface)
2761 Diag(D->getLocation(),
2762 diag::err_missing_end_of_definition) << D;
2763 Diag(Tok.getLocation(),
2764 diag::note_missing_end_of_definition_before) << D;
2829 Diag(Loc, diag::err_ctor_init_missing_comma)
2833 Diag(Tok.getLocation(), diag::err_expected_either) << tok::l_brace
2874 Diag(Tok, diag::err_expected_member_or_base_name);
2895 Diag(Tok, diag::warn_cxx98_compat_generalized_initializer_lists);
2931 return Diag(Tok, diag::err_expected_either) << tok::l_paren << tok::l_brace;
2933 return Diag(Tok, diag::err_expected) << tok::l_paren;
2966 Diag(Tok, diag::warn_cxx98_compat_noexcept_decl);
3000 Diag(Tok.getLocation(), diag::err_dynamic_and_noexcept_specification);
3005 Diag(Tok.getLocation(), diag::err_dynamic_and_noexcept_specification);
3015 P.Diag(Range.getBegin(), diag::warn_exception_spec_deprecated) << Range;
3016 P.Diag(Range.getBegin(), diag::note_exception_spec_deprecated)
3041 Diag(Tok, diag::err_expected_lparen_after) << "throw";
3051 Diag(EllipsisLoc, diag::ext_ellipsis_exception_spec);
3268 Diag(LParenLoc, diag::err_attribute_requires_arguments) << AttrName;
3274 Diag(LParenLoc, diag::err_cxx11_attribute_forbids_arguments)
3310 Diag(Tok.getLocation(), diag::warn_cxx98_compat_alignas);
3318 Diag(Tok.getLocation(), diag::warn_cxx98_compat_attribute);
3345 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
3356 Diag(AttrLoc, diag::err_cxx11_attribute_repeated)
3371 Diag(Tok, diag::err_cxx11_attribute_forbids_ellipsis)
3409 Diag(StartLoc, diag::err_attributes_not_allowed)
3468 Diag(Tok, diag::err_expected) << tok::l_brace;
3478 Diag(Result.KeywordLoc, diag::warn_microsoft_dependent_exists)
3509 Diag(Tok, diag::err_expected) << tok::colon;