Lines Matching refs:diag

145       if (DiagID == diag::err_expected)  in ExpectAndConsume()
147 else if (DiagID == diag::err_expected_after) in ExpectAndConsume()
167 if (DiagID == diag::err_expected) in ExpectAndConsume()
169 else if (DiagID == diag::err_expected_after) in ExpectAndConsume()
188 Diag(Tok, diag::err_extraneous_token_before_semi) in ExpectAndConsumeSemi()
217 Diag(StartLoc, diag::warn_cxx98_compat_top_level_semi) in ConsumeExtraSemi()
220 Diag(StartLoc, diag::ext_extra_semi_cxx11) in ConsumeExtraSemi()
226 Diag(StartLoc, diag::ext_extra_semi) in ConsumeExtraSemi()
232 Diag(StartLoc, diag::warn_extra_semi_after_mem_fn_def) in ConsumeExtraSemi()
514 PP.SetPoisonReason(Ident__exception_code,diag::err_seh___except_block); in Initialize()
515 PP.SetPoisonReason(Ident___exception_code,diag::err_seh___except_block); in Initialize()
516 PP.SetPoisonReason(Ident_GetExceptionCode,diag::err_seh___except_block); in Initialize()
517 PP.SetPoisonReason(Ident__exception_info,diag::err_seh___except_filter); in Initialize()
518 PP.SetPoisonReason(Ident___exception_info,diag::err_seh___except_filter); in Initialize()
519 PP.SetPoisonReason(Ident_GetExceptionInfo,diag::err_seh___except_filter); in Initialize()
520 PP.SetPoisonReason(Ident__abnormal_termination,diag::err_seh___finally_block); in Initialize()
521 PP.SetPoisonReason(Ident___abnormal_termination,diag::err_seh___finally_block); in Initialize()
522 PP.SetPoisonReason(Ident_AbnormalTermination,diag::err_seh___finally_block); in Initialize()
679 Diag(Tok, diag::err_extraneous_closing_brace); in ParseExternalDeclaration()
683 Diag(Tok, diag::err_expected_external_declaration); in ParseExternalDeclaration()
705 Diag(StartLoc, diag::err_gnu_inline_asm_disabled); in ParseExternalDeclaration()
708 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseExternalDeclaration()
721 Diag(Tok, diag::err_expected_external_declaration); in ParseExternalDeclaration()
750 Diag(ConsumeToken(), diag::warn_static_inline_explicit_inst_ignored) in ParseExternalDeclaration()
770 Diag(ConsumeToken(), diag::warn_static_inline_explicit_inst_ignored) in ParseExternalDeclaration()
784 diag::warn_cxx98_compat_extern_template : in ParseExternalDeclaration()
785 diag::ext_extern_template) << SourceRange(ExternLoc, TemplateLoc); in ParseExternalDeclaration()
897 Diag(Tok, diag::err_objc_unexpected_attr); in ParseDeclOrFunctionDefInternal()
994 Diag(Tok, diag::err_expected_fn_body); in ParseFunctionDefinition()
1011 Diag(DtorAttrs->getLoc(), diag::warn_attribute_on_function_definition) in ParseFunctionDefinition()
1097 ? diag::warn_cxx98_compat_defaulted_deleted_function in ParseFunctionDefinition()
1098 : diag::ext_defaulted_deleted_function) in ParseFunctionDefinition()
1104 ? diag::warn_cxx98_compat_defaulted_deleted_function in ParseFunctionDefinition()
1105 : diag::ext_defaulted_deleted_function) in ParseFunctionDefinition()
1113 Diag(KWLoc, diag::err_default_delete_in_multiple_declaration) in ParseFunctionDefinition()
1116 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseFunctionDefinition()
1197 Diag(DSStart, diag::err_declaration_does_not_declare_param); in ParseKNRParamDeclarations()
1206 diag::err_invalid_storage_class_in_func_decl); in ParseKNRParamDeclarations()
1211 diag::err_invalid_storage_class_in_func_decl); in ParseKNRParamDeclarations()
1238 Diag(ParmDeclarator.getIdentifierLoc(), diag::err_no_matching_param) in ParseKNRParamDeclarations()
1247 diag::err_param_redefinition) in ParseKNRParamDeclarations()
1272 if (!ExpectAndConsumeSemi(diag::err_expected_semi_declaration)) in ParseKNRParamDeclarations()
1294 Diag(Tok, diag::err_expected_string_literal) in ParseAsmStringLiteral()
1303 Diag(Tok, diag::err_asm_operand_wide_string_literal) in ParseAsmStringLiteral()
1326 Diag(Tok, diag::warn_file_asm_volatile) in ParseSimpleAsm()
1333 Diag(Tok, diag::err_expected_lparen_after) << "asm"; in ParseSimpleAsm()
1524 Diag(Tok, diag::ext_keyword_as_ident) in TryKeywordIdentFallback()
1576 Diag(Tok.getLocation(), diag::warn_expected_qualified_after_typename); in TryAnnotateTypeOrScopeToken()
1599 unsigned DiagID = diag::err_expected_qualified_after_typename; in TryAnnotateTypeOrScopeToken()
1603 DiagID = diag::warn_expected_qualified_after_typename; in TryAnnotateTypeOrScopeToken()
1609 Diag(Tok.getLocation(), diag::err_expected_qualified_after_typename); in TryAnnotateTypeOrScopeToken()
1623 Diag(Tok, diag::err_typename_refers_to_non_type_template) in TryAnnotateTypeOrScopeToken()
1639 Diag(Tok, diag::err_expected_type_name_after_typename) in TryAnnotateTypeOrScopeToken()
1821 Diag(Tok, diag::err_invalid_token_after_declarator_suggest_equal) in isTokenEqualOrEqualTypo()
1890 Diag(Tok, diag::err_expected_lparen_after) in ParseMicrosoftIfExistsCondition()
1947 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseMicrosoftIfExistsExternalDeclaration()
1993 Diag(Tok, diag::err_module_expected_ident); in ParseModuleImport()
2017 ExpectAndConsumeSemi(diag::err_module_expected_semi); in ParseModuleImport()
2056 P.Diag(P.Tok, diag::err_bracket_depth_exceeded) in diagnoseOverflow()
2058 P.Diag(P.Tok, diag::note_bracket_depth); in diagnoseOverflow()
2083 P.Diag(P.Tok, diag::err_missing_before_module_end) << Close; in diagnoseMissingClose()
2085 P.Diag(P.Tok, diag::err_expected) << Close; in diagnoseMissingClose()
2086 P.Diag(LOpen, diag::note_matching) << Kind; in diagnoseMissingClose()