Lines Matching refs:getLocation
382 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II); in HandlePragmaDump()
390 Tok.getLocation()); in HandlePragmaWeak()
398 SourceLocation WeakNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
401 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
412 SourceLocation RedefNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
415 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
440 SourceLocation Loc = Tok.getLocation(); in HandlePragmaCaptured()
467 SourceLocation NameLoc = Tok.getLocation(); in HandlePragmaOpenCLExtension()
737 Toks[0].setLocation(Tok.getLocation()); in HandlePragmaMSInitSeg()
800 Actions.Context, Info->PragmaName.getLocation(), PragmaNameInfo); in HandlePragmaLoopHint()
808 Actions.Context, Info->Option.getLocation(), OptionInfo); in HandlePragmaLoopHint()
818 Hint.Range = Info->PragmaName.getLocation(); in HandlePragmaLoopHint()
845 Diag(Toks[0].getLocation(), diag::err_pragma_loop_missing_argument) in HandlePragmaLoopHint()
854 SourceLocation StateLoc = Toks[0].getLocation(); in HandlePragmaLoopHint()
864 Diag(Toks[0].getLocation(), diag::err_pragma_invalid_keyword) in HandlePragmaLoopHint()
870 Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragmaLoopHint()
883 Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragmaLoopHint()
892 Actions.CheckLoopHintExpr(R.get(), Toks[0].getLocation())) in HandlePragmaLoopHint()
899 Hint.Range = SourceRange(Info->PragmaName.getLocation(), in HandlePragmaLoopHint()
900 Info->Toks.back().getLocation()); in HandlePragmaLoopHint()
910 SourceLocation VisLoc = VisTok.getLocation(); in HandlePragma()
923 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma()
930 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
936 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) in HandlePragma()
941 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
945 SourceLocation EndLoc = Tok.getLocation(); in HandlePragma()
948 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
970 SourceLocation PackLoc = PackTok.getLocation(); in HandlePragma()
975 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "pack"; in HandlePragma()
1005 PP.Diag(Tok.getLocation(), diag::warn_pragma_invalid_action) << "pack"; in HandlePragma()
1026 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed); in HandlePragma()
1036 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed); in HandlePragma()
1049 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) << "pack"; in HandlePragma()
1053 SourceLocation RParenLoc = Tok.getLocation(); in HandlePragma()
1056 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << "pack"; in HandlePragma()
1086 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_struct); in HandlePragma()
1089 SourceLocation EndLoc = Tok.getLocation(); in HandlePragma()
1098 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_struct); in HandlePragma()
1103 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
1112 Toks[0].setLocation(MSStructTok.getLocation()); in HandlePragma()
1129 PP.Diag(Tok.getLocation(), diag::warn_pragma_options_expected_align); in ParseAlignPragma()
1136 PP.Diag(Tok.getLocation(), diag::warn_pragma_align_expected_equal) in ParseAlignPragma()
1143 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in ParseAlignPragma()
1163 PP.Diag(Tok.getLocation(), diag::warn_pragma_align_invalid_option) in ParseAlignPragma()
1168 SourceLocation EndLoc = Tok.getLocation(); in ParseAlignPragma()
1171 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in ParseAlignPragma()
1180 Toks[0].setLocation(FirstTok.getLocation()); in ParseAlignPragma()
1204 SourceLocation UnusedLoc = UnusedTok.getLocation(); in HandlePragma()
1210 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "unused"; in HandlePragma()
1230 PP.Diag(Tok.getLocation(), diag::warn_pragma_unused_expected_var); in HandlePragma()
1241 RParenLoc = Tok.getLocation(); in HandlePragma()
1246 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_punc) << "unused"; in HandlePragma()
1252 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << in HandlePragma()
1284 SourceLocation WeakLoc = WeakTok.getLocation(); in HandlePragma()
1289 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) << "weak"; in HandlePragma()
1302 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
1311 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << "weak"; in HandlePragma()
1322 pragmaUnusedTok.setAnnotationEndLoc(AliasName.getLocation()); in HandlePragma()
1343 SourceLocation RedefLoc = RedefToken.getLocation(); in HandlePragma()
1348 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) << in HandlePragma()
1357 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
1366 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << in HandlePragma()
1377 pragmaRedefTok.setAnnotationEndLoc(AliasName.getLocation()); in HandlePragma()
1396 Toks[0].setLocation(Tok.getLocation()); in HandlePragma()
1397 Toks[0].setAnnotationEndLoc(Tok.getLocation()); in HandlePragma()
1409 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) << in HandlePragma()
1414 SourceLocation NameLoc = Tok.getLocation(); in HandlePragma()
1418 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_colon) << ename; in HandlePragma()
1424 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_enable_disable); in HandlePragma()
1435 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_enable_disable); in HandlePragma()
1438 SourceLocation StateLoc = Tok.getLocation(); in HandlePragma()
1442 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) << in HandlePragma()
1469 FirstTok.getLocation())) { in HandlePragma()
1487 Tok.setLocation(FirstTok.getLocation()); in HandlePragma()
1493 SourceLocation EodLoc = Tok.getLocation(); in HandlePragma()
1516 SourceLocation PointersToMembersLoc = Tok.getLocation(); in HandlePragma()
1526 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
1542 PP.Diag(Tok.getLocation(), in HandlePragma()
1554 PP.Diag(Tok.getLocation(), diag::err_expected_punc) in HandlePragma()
1571 PP.Diag(Tok.getLocation(), in HandlePragma()
1580 PP.Diag(Tok.getLocation(), diag::err_expected_rparen_after) in HandlePragma()
1585 SourceLocation EndLoc = Tok.getLocation(); in HandlePragma()
1588 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
1614 SourceLocation VtorDispLoc = Tok.getLocation(); in HandlePragma()
1661 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_integer) in HandlePragma()
1666 PP.Diag(Tok.getLocation(), diag::warn_pragma_invalid_action) in HandlePragma()
1677 SourceLocation EndLoc = Tok.getLocation(); in HandlePragma()
1680 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
1706 AnnotTok.setLocation(Tok.getLocation()); in HandlePragma()
1707 AnnotTok.setAnnotationEndLoc(Tok.getLocation()); in HandlePragma()
1712 AnnotTok.setAnnotationEndLoc(Tok.getLocation()); in HandlePragma()
1740 SourceLocation DetectMismatchLoc = Tok.getLocation(); in HandlePragma()
1757 PP.Diag(Tok.getLocation(), diag::err_pragma_detect_mismatch_malformed); in HandlePragma()
1766 PP.Diag(Tok.getLocation(), diag::err_expected) << tok::r_paren; in HandlePragma()
1772 PP.Diag(Tok.getLocation(), diag::err_pragma_detect_mismatch_malformed); in HandlePragma()
1796 SourceLocation CommentLoc = Tok.getLocation(); in HandlePragma()
1821 PP.Diag(Tok.getLocation(), diag::err_pragma_comment_unknown_kind); in HandlePragma()
1828 PP.Diag(Tok.getLocation(), diag::warn_pragma_comment_ignored) in HandlePragma()
1849 PP.Diag(Tok.getLocation(), diag::err_pragma_comment_malformed); in HandlePragma()
1855 PP.Diag(Tok.getLocation(), diag::err_pragma_comment_malformed); in HandlePragma()
1874 PP.Diag(Tok.getLocation(), diag::err_pragma_missing_argument) in HandlePragma()
1879 PP.Diag(Tok.getLocation(), diag::err_pragma_optimize_invalid_argument) in HandlePragma()
1889 PP.Diag(Tok.getLocation(), diag::err_pragma_optimize_invalid_argument) in HandlePragma()
1896 PP.Diag(Tok.getLocation(), diag::err_pragma_optimize_extra_argument) in HandlePragma()
1901 Actions.ActOnPragmaOptimize(IsOn, FirstToken.getLocation()); in HandlePragma()
1927 PP.Diag(Tok.getLocation(), diag::err_expected) << tok::r_paren; in ParseLoopHintValue()
1936 EOFTok.setLocation(Tok.getLocation()); in ParseLoopHintValue()
2001 PP.Diag(Tok.getLocation(), diag::err_pragma_loop_invalid_option) in HandlePragma()
2020 PP.Diag(Tok.getLocation(), diag::err_pragma_loop_invalid_option) in HandlePragma()
2028 PP.Diag(Tok.getLocation(), diag::err_expected) << tok::l_paren; in HandlePragma()
2042 LoopHintTok.setLocation(PragmaName.getLocation()); in HandlePragma()
2043 LoopHintTok.setAnnotationEndLoc(PragmaName.getLocation()); in HandlePragma()
2049 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
2091 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
2110 PP.Diag(Info->Toks[0].getLocation(), in HandlePragma()
2114 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
2124 TokenArray[0].setLocation(PragmaName.getLocation()); in HandlePragma()
2125 TokenArray[0].setAnnotationEndLoc(PragmaName.getLocation()); in HandlePragma()