Lines Matching refs:PP

39   bool HandleComment(Preprocessor &PP, SourceRange Comment) override {  in HandleComment()  argument
49 Ident__except = PP.getIdentifierInfo("__except"); in getSEHExceptKeyword()
55 : PP(pp), PreferredType(pp.isCodeCompletionEnabled()), Actions(actions), in Parser()
56 Diags(PP.getDiagnostics()), GreaterThanIsOperator(true), in Parser()
71 PP.addCommentHandler(CommentSemaHandler.get()); in Parser()
73 PP.setCodeCompletionHandler(*this); in Parser()
97 SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses()
145 SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation); in ExpectAndConsume()
176 << PP.getSpelling(Tok) in ExpectAndConsumeSemi()
247 PP.getSourceManager().getFileID(FirstTokLoc) != in checkCompoundToken()
248 PP.getSourceManager().getFileID(SecondTokLoc)) { in checkCompoundToken()
260 SourceLocation SpaceLoc = PP.getLocForEndOfToken(FirstTokLoc); in checkCompoundToken()
481 PP.removeCommentHandler(CommentSemaHandler.get()); in ~Parser()
483 PP.clearCodeCompletionHandler(); in ~Parser()
499 ObjCTypeQuals[objc_in] = &PP.getIdentifierTable().get("in"); in Initialize()
500 ObjCTypeQuals[objc_out] = &PP.getIdentifierTable().get("out"); in Initialize()
501 ObjCTypeQuals[objc_inout] = &PP.getIdentifierTable().get("inout"); in Initialize()
502 ObjCTypeQuals[objc_oneway] = &PP.getIdentifierTable().get("oneway"); in Initialize()
503 ObjCTypeQuals[objc_bycopy] = &PP.getIdentifierTable().get("bycopy"); in Initialize()
504 ObjCTypeQuals[objc_byref] = &PP.getIdentifierTable().get("byref"); in Initialize()
505 ObjCTypeQuals[objc_nonnull] = &PP.getIdentifierTable().get("nonnull"); in Initialize()
506 ObjCTypeQuals[objc_nullable] = &PP.getIdentifierTable().get("nullable"); in Initialize()
508 = &PP.getIdentifierTable().get("null_unspecified"); in Initialize()
520 Ident_super = &PP.getIdentifierTable().get("super"); in Initialize()
527 Ident_vector = &PP.getIdentifierTable().get("vector"); in Initialize()
528 Ident_bool = &PP.getIdentifierTable().get("bool"); in Initialize()
529 Ident_Bool = &PP.getIdentifierTable().get("_Bool"); in Initialize()
532 Ident_pixel = &PP.getIdentifierTable().get("pixel"); in Initialize()
553 Ident__exception_info = PP.getIdentifierInfo("_exception_info"); in Initialize()
554 Ident___exception_info = PP.getIdentifierInfo("__exception_info"); in Initialize()
555 Ident_GetExceptionInfo = PP.getIdentifierInfo("GetExceptionInformation"); in Initialize()
556 Ident__exception_code = PP.getIdentifierInfo("_exception_code"); in Initialize()
557 Ident___exception_code = PP.getIdentifierInfo("__exception_code"); in Initialize()
558 Ident_GetExceptionCode = PP.getIdentifierInfo("GetExceptionCode"); in Initialize()
559 Ident__abnormal_termination = PP.getIdentifierInfo("_abnormal_termination"); in Initialize()
560 Ident___abnormal_termination = PP.getIdentifierInfo("__abnormal_termination"); in Initialize()
561 Ident_AbnormalTermination = PP.getIdentifierInfo("AbnormalTermination"); in Initialize()
563 PP.SetPoisonReason(Ident__exception_code,diag::err_seh___except_block); in Initialize()
564 PP.SetPoisonReason(Ident___exception_code,diag::err_seh___except_block); in Initialize()
565 PP.SetPoisonReason(Ident_GetExceptionCode,diag::err_seh___except_block); in Initialize()
566 PP.SetPoisonReason(Ident__exception_info,diag::err_seh___except_filter); in Initialize()
567 PP.SetPoisonReason(Ident___exception_info,diag::err_seh___except_filter); in Initialize()
568 PP.SetPoisonReason(Ident_GetExceptionInfo,diag::err_seh___except_filter); in Initialize()
569 PP.SetPoisonReason(Ident__abnormal_termination,diag::err_seh___finally_block); in Initialize()
570 PP.SetPoisonReason(Ident___abnormal_termination,diag::err_seh___finally_block); in Initialize()
571 PP.SetPoisonReason(Ident_AbnormalTermination,diag::err_seh___finally_block); in Initialize()
575 Ident_import = PP.getIdentifierInfo("import"); in Initialize()
576 Ident_module = PP.getIdentifierInfo("module"); in Initialize()
634 if (PP.isIncrementalProcessingEnabled() && Tok.is(tok::eof)) in ParseTopLevelDecl()
719 if (PP.getMaxTokens() != 0 && PP.getTokenCount() > PP.getMaxTokens()) { in ParseTopLevelDecl()
720 PP.Diag(Tok.getLocation(), diag::warn_max_tokens_total) in ParseTopLevelDecl()
721 << PP.getTokenCount() << PP.getMaxTokens(); in ParseTopLevelDecl()
722 SourceLocation OverrideLoc = PP.getMaxTokensOverrideLoc(); in ParseTopLevelDecl()
724 PP.Diag(OverrideLoc, diag::note_max_tokens_total_override); in ParseTopLevelDecl()
817 if (PP.isCodeCompletionReached()) { in ParseExternalDeclaration()
957 } else if (PP.isIncrementalProcessingEnabled()) { in ParseExternalDeclaration()
1711 SourceRange RemovalRange(PP.getLocForEndOfToken(Loc), in ParseSimpleAsm()
1712 PP.getLocForEndOfToken(Tok.getLocation())); in ParseSimpleAsm()
1754 if (PP.isBacktrackEnabled()) in AnnotateScopeToken()
1755 PP.RevertCachedTokens(1); in AnnotateScopeToken()
1757 PP.EnterToken(Tok, /*IsReinject=*/true); in AnnotateScopeToken()
1766 PP.AnnotateCachedTokens(Tok); in AnnotateScopeToken()
1846 PP.TypoCorrectToken(Tok); in TryAnnotateName()
1889 PP.AnnotateCachedTokens(Tok); in TryAnnotateName()
1899 PP.AnnotateCachedTokens(Tok); in TryAnnotateName()
1912 PP.AnnotateCachedTokens(Tok); in TryAnnotateName()
1925 PP.AnnotateCachedTokens(Tok); in TryAnnotateName()
1970 << PP.getSpelling(Tok) in TryKeywordIdentFallback()
2018 PP.Lex(TypedefToken); in TryAnnotateTypeOrScopeToken()
2020 PP.EnterToken(Tok, /*IsReinject=*/true); in TryAnnotateTypeOrScopeToken()
2108 PP.AnnotateCachedTokens(Tok); in TryAnnotateTypeOrScopeToken()
2171 PP.AnnotateCachedTokens(Tok); in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
2607 if (PP.hadModuleLoaderFatalFailure()) { in ParseModuleImport()
2674 auto &SrcMgr = PP.getSourceManager(); in ParseModuleImport()