Lines Matching refs:getLocation
374 Tok.getLocation()); in HandlePragmaWeak()
382 SourceLocation WeakNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
385 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
396 SourceLocation RedefNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
399 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
424 SourceLocation Loc = Tok.getLocation(); in HandlePragmaCaptured()
451 SourceLocation NameLoc = Tok.getLocation(); in HandlePragmaOpenCLExtension()
710 Toks[0].setLocation(Tok.getLocation()); in HandlePragmaMSInitSeg()
773 Actions.Context, Info->PragmaName.getLocation(), PragmaNameInfo); in HandlePragmaLoopHint()
781 Actions.Context, Info->Option.getLocation(), OptionInfo); in HandlePragmaLoopHint()
792 Hint.Range = Info->PragmaName.getLocation(); in HandlePragmaLoopHint()
814 Diag(Toks[0].getLocation(), diag::err_pragma_loop_missing_argument) in HandlePragmaLoopHint()
823 SourceLocation StateLoc = Toks[0].getLocation(); 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()
856 Actions.CheckLoopHintExpr(R.get(), Toks[0].getLocation())) in HandlePragmaLoopHint()
863 Hint.Range = SourceRange(Info->PragmaName.getLocation(), in HandlePragmaLoopHint()
864 Info->Toks[TokSize - 1].getLocation()); in HandlePragmaLoopHint()
874 SourceLocation VisLoc = VisTok.getLocation(); in HandlePragma()
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()
909 SourceLocation EndLoc = Tok.getLocation(); in HandlePragma()
912 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
935 SourceLocation PackLoc = PackTok.getLocation(); in HandlePragma()
940 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "pack"; in HandlePragma()
948 SourceLocation LParenLoc = Tok.getLocation(); 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()
1017 SourceLocation RParenLoc = Tok.getLocation(); 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()
1060 SourceLocation EndLoc = Tok.getLocation(); 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()
1085 Toks[0].setLocation(MSStructTok.getLocation()); 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()
1142 SourceLocation EndLoc = Tok.getLocation(); in ParseAlignPragma()
1145 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in ParseAlignPragma()
1156 Toks[0].setLocation(FirstTok.getLocation()); in ParseAlignPragma()
1181 SourceLocation UnusedLoc = UnusedTok.getLocation(); in HandlePragma()
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()
1218 RParenLoc = Tok.getLocation(); 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()
1262 SourceLocation WeakLoc = WeakTok.getLocation(); 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()
1301 pragmaUnusedTok.setAnnotationEndLoc(AliasName.getLocation()); in HandlePragma()
1325 SourceLocation RedefLoc = RedefToken.getLocation(); 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()
1360 pragmaRedefTok.setAnnotationEndLoc(AliasName.getLocation()); in HandlePragma()
1382 Toks[0].setLocation(Tok.getLocation()); in HandlePragma()
1383 Toks[0].setAnnotationEndLoc(Tok.getLocation()); in HandlePragma()
1396 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) << in HandlePragma()
1401 SourceLocation NameLoc = Tok.getLocation(); 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()
1425 SourceLocation StateLoc = Tok.getLocation(); in HandlePragma()
1429 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << in HandlePragma()
1459 FirstTok.getLocation())) { in HandlePragma()
1477 Tok.setLocation(FirstTok.getLocation()); in HandlePragma()
1483 SourceLocation EodLoc = Tok.getLocation(); in HandlePragma()
1506 SourceLocation PointersToMembersLoc = Tok.getLocation(); in HandlePragma()
1516 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
1532 PP.Diag(Tok.getLocation(), in HandlePragma()
1544 PP.Diag(Tok.getLocation(), diag::err_expected_punc) in HandlePragma()
1561 PP.Diag(Tok.getLocation(), in HandlePragma()
1570 PP.Diag(Tok.getLocation(), diag::err_expected_rparen_after) in HandlePragma()
1575 SourceLocation EndLoc = Tok.getLocation(); in HandlePragma()
1578 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
1604 SourceLocation VtorDispLoc = Tok.getLocation(); 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()
1667 SourceLocation EndLoc = Tok.getLocation(); in HandlePragma()
1670 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
1696 AnnotTok.setLocation(Tok.getLocation()); in HandlePragma()
1697 AnnotTok.setAnnotationEndLoc(Tok.getLocation()); in HandlePragma()
1702 AnnotTok.setAnnotationEndLoc(Tok.getLocation()); in HandlePragma()
1729 SourceLocation CommentLoc = Tok.getLocation(); 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()
1785 SourceLocation CommentLoc = Tok.getLocation(); 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()
1890 Actions.ActOnPragmaOptimize(IsOn, FirstToken.getLocation()); in HandlePragma()
1916 PP.Diag(Tok.getLocation(), diag::err_expected) << tok::r_paren; in ParseLoopHintValue()
1925 EOFTok.setLocation(Tok.getLocation()); 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()
2029 LoopHintTok.setLocation(PragmaName.getLocation()); in HandlePragma()
2030 LoopHintTok.setAnnotationEndLoc(PragmaName.getLocation()); 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()
2098 PP.Diag(Info->Toks[0].getLocation(), in HandlePragma()
2102 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
2112 TokenArray[0].setLocation(PragmaName.getLocation()); in HandlePragma()
2113 TokenArray[0].setAnnotationEndLoc(PragmaName.getLocation()); in HandlePragma()