Lines Matching refs:diag

420     PP.Diag(Tok, diag::err_expected) << tok::l_brace;  in HandlePragmaCaptured()
465 PP.Diag(NameLoc, diag::warn_pragma_unknown_extension) << ename; in HandlePragmaOpenCLExtension()
522 PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName; in HandlePragmaMSSection()
528 PP.Diag(PragmaLocation, diag::warn_pragma_expected_section_name) in HandlePragmaMSSection()
537 PP.Diag(PragmaLocation, diag::warn_pragma_expected_non_wide_string) in HandlePragmaMSSection()
554 PP.Diag(PragmaLocation, diag::warn_pragma_expected_action_or_r_paren) in HandlePragmaMSSection()
572 ? diag::warn_pragma_invalid_specific_action in HandlePragmaMSSection()
573 : diag::warn_pragma_unsupported_action) in HandlePragmaMSSection()
586 PP.Diag(PragmaLocation, diag::warn_pragma_expected_rparen) << PragmaName; in HandlePragmaMSSection()
591 PP.Diag(PragmaLocation, diag::warn_pragma_extra_tokens_at_eol) in HandlePragmaMSSection()
603 PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName; in HandlePragmaMSSegment()
617 diag::warn_pragma_expected_section_push_pop_or_name) in HandlePragmaMSSegment()
632 PP.Diag(PragmaLocation, diag::warn_pragma_expected_punc) in HandlePragmaMSSegment()
638 PP.Diag(PragmaLocation, diag::warn_pragma_expected_punc) << PragmaName; in HandlePragmaMSSegment()
648 diag::warn_pragma_expected_section_name : in HandlePragmaMSSegment()
649 diag::warn_pragma_expected_section_label_or_name : in HandlePragmaMSSegment()
650 diag::warn_pragma_expected_section_push_pop_or_name; in HandlePragmaMSSegment()
659 PP.Diag(PragmaLocation, diag::warn_pragma_expected_non_wide_string) in HandlePragmaMSSegment()
668 PP.Diag(PragmaLocation, diag::warn_pragma_expected_rparen) << PragmaName; in HandlePragmaMSSegment()
673 PP.Diag(PragmaLocation, diag::warn_pragma_extra_tokens_at_eol) in HandlePragmaMSSegment()
687 PP.Diag(PragmaLocation, diag::warn_pragma_init_seg_unsupported_target); in HandlePragmaMSInitSeg()
691 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg()
723 PP.Diag(PragmaLocation, diag::warn_pragma_expected_non_wide_string) in HandlePragmaMSInitSeg()
731 PP.Diag(PragmaLocation, diag::warn_pragma_expected_init_seg) << PragmaName; in HandlePragmaMSInitSeg()
735 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg()
737 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSInitSeg()
814 Diag(Toks[0].getLocation(), diag::err_pragma_loop_missing_argument) in HandlePragmaLoopHint()
828 Diag(Toks[0].getLocation(), diag::err_pragma_invalid_keyword) in HandlePragmaLoopHint()
833 Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragmaLoopHint()
847 Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragmaLoopHint()
887 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma()
894 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
900 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) in HandlePragma()
905 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
912 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
940 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "pack"; in HandlePragma()
971 PP.Diag(Tok.getLocation(), diag::warn_pragma_invalid_action) << "pack"; in HandlePragma()
991 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed); in HandlePragma()
1000 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed); in HandlePragma()
1013 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) << "pack"; in HandlePragma()
1020 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << "pack"; in HandlePragma()
1057 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_struct); in HandlePragma()
1069 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_struct); in HandlePragma()
1074 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
1103 PP.Diag(Tok.getLocation(), diag::warn_pragma_options_expected_align); in ParseAlignPragma()
1110 PP.Diag(Tok.getLocation(), diag::warn_pragma_align_expected_equal) in ParseAlignPragma()
1117 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in ParseAlignPragma()
1137 PP.Diag(Tok.getLocation(), diag::warn_pragma_align_invalid_option) in ParseAlignPragma()
1145 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in ParseAlignPragma()
1187 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "unused"; in HandlePragma()
1207 PP.Diag(Tok.getLocation(), diag::warn_pragma_unused_expected_var); in HandlePragma()
1223 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_punc) << "unused"; in HandlePragma()
1229 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << in HandlePragma()
1267 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) << "weak"; in HandlePragma()
1280 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
1289 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << "weak"; in HandlePragma()
1330 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) << in HandlePragma()
1339 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
1348 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << in HandlePragma()
1396 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) << in HandlePragma()
1405 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_colon) << ename; in HandlePragma()
1411 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_enable_disable); in HandlePragma()
1422 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_enable_disable); in HandlePragma()
1429 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << in HandlePragma()
1458 if (!PP.getDiagnostics().isIgnored(diag::warn_pragma_omp_ignored, in HandlePragma()
1460 PP.Diag(FirstTok, diag::warn_pragma_omp_ignored); in HandlePragma()
1461 PP.getDiagnostics().setSeverity(diag::warn_pragma_omp_ignored, in HandlePragma()
1462 diag::Severity::Ignored, SourceLocation()); in HandlePragma()
1509 PP.Diag(PointersToMembersLoc, diag::warn_pragma_expected_lparen) in HandlePragma()
1516 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
1533 diag::err_pragma_pointers_to_members_unknown_kind) in HandlePragma()
1544 PP.Diag(Tok.getLocation(), diag::err_expected_punc) in HandlePragma()
1562 diag::err_pragma_pointers_to_members_unknown_kind) in HandlePragma()
1570 PP.Diag(Tok.getLocation(), diag::err_expected_rparen_after) in HandlePragma()
1578 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
1607 PP.Diag(VtorDispLoc, diag::warn_pragma_expected_lparen) << "vtordisp"; in HandlePragma()
1619 PP.Diag(VtorDispLoc, diag::warn_pragma_expected_punc) << "vtordisp"; in HandlePragma()
1651 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_integer) in HandlePragma()
1656 PP.Diag(Tok.getLocation(), diag::warn_pragma_invalid_action) in HandlePragma()
1664 PP.Diag(VtorDispLoc, diag::warn_pragma_expected_rparen) << "vtordisp"; in HandlePragma()
1670 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
1732 PP.Diag(CommentLoc, diag::err_expected) << tok::l_paren; in HandlePragma()
1746 PP.Diag(Tok.getLocation(), diag::err_pragma_detect_mismatch_malformed); in HandlePragma()
1755 PP.Diag(Tok.getLocation(), diag::err_expected) << tok::r_paren; in HandlePragma()
1761 PP.Diag(Tok.getLocation(), diag::err_pragma_detect_mismatch_malformed); in HandlePragma()
1788 PP.Diag(CommentLoc, diag::err_pragma_comment_malformed); in HandlePragma()
1795 PP.Diag(CommentLoc, diag::err_pragma_comment_malformed); in HandlePragma()
1810 PP.Diag(Tok.getLocation(), diag::err_pragma_comment_unknown_kind); in HandlePragma()
1817 PP.Diag(Tok.getLocation(), diag::warn_pragma_comment_ignored) in HandlePragma()
1838 PP.Diag(Tok.getLocation(), diag::err_pragma_comment_malformed); in HandlePragma()
1844 PP.Diag(Tok.getLocation(), diag::err_pragma_comment_malformed); in HandlePragma()
1863 PP.Diag(Tok.getLocation(), diag::err_pragma_missing_argument) in HandlePragma()
1868 PP.Diag(Tok.getLocation(), diag::err_pragma_optimize_invalid_argument) in HandlePragma()
1878 PP.Diag(Tok.getLocation(), diag::err_pragma_optimize_invalid_argument) in HandlePragma()
1885 PP.Diag(Tok.getLocation(), diag::err_pragma_optimize_extra_argument) in HandlePragma()
1916 PP.Diag(Tok.getLocation(), diag::err_expected) << tok::r_paren; in ParseLoopHintValue()
1989 PP.Diag(Tok.getLocation(), diag::err_pragma_loop_invalid_option) in HandlePragma()
2007 PP.Diag(Tok.getLocation(), diag::err_pragma_loop_invalid_option) in HandlePragma()
2015 PP.Diag(Tok.getLocation(), diag::err_expected) << tok::l_paren; in HandlePragma()
2036 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
2079 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
2099 diag::warn_pragma_unroll_cuda_value_in_parens); in HandlePragma()
2102 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()