Searched refs:PP (Results 1 - 25 of 154) sorted by relevance

1234567

/external/llvm/lib/ExecutionEngine/
H A DRTDyldMemoryManager.cpp153 #define ARM_MATH_IMPORTS(PP) \
154 PP(__aeabi_d2f) \
155 PP(__aeabi_d2iz) \
156 PP(__aeabi_d2lz) \
157 PP(__aeabi_d2uiz) \
158 PP(__aeabi_d2ulz) \
159 PP(__aeabi_dadd) \
160 PP(__aeabi_dcmpeq) \
161 PP(__aeabi_dcmpge) \
162 PP(__aeabi_dcmpg
[all...]
/external/clang/include/clang/Rewrite/Frontend/
H A DRewriters.h24 void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS);
27 void DoRewriteTest(Preprocessor &PP, raw_ostream *OS);
30 void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
/external/clang/lib/Parse/
H A DParsePragma.cpp27 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
33 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
39 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
45 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
51 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
57 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
63 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
69 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
75 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
82 void HandlePragma(Preprocessor &PP, PragmaIntroducerKin
639 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &VisTok) argument
698 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PackTok) argument
814 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &MSStructTok) argument
858 ParseAlignPragma(Preprocessor &PP, Token &FirstTok, bool IsOptions) argument
925 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &AlignTok) argument
931 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &OptionsTok) argument
938 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &UnusedTok) argument
1020 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &WeakTok) argument
1081 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &RedefToken) argument
1127 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1148 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1211 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &FirstTok) argument
1226 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &FirstTok) argument
1259 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1355 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1440 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1475 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1531 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1598 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &FirstToken) argument
1671 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
[all...]
/external/clang/lib/Lex/
H A DPreprocessorLexer.cpp23 : PP(pp), FID(fid), InitialNumSLocEntries(0),
44 PP->Lex(FilenameTok);
51 PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename);
57 return PP->getSourceManager().getFileEntryForID(getFileID());
H A DMacroArgs.cpp27 bool VarargsElided, Preprocessor &PP) {
35 for (MacroArgs **Entry = &PP.MacroArgCache; *Entry;
73 void MacroArgs::destroy(Preprocessor &PP) { argument
82 ArgCache = PP.MacroArgCache;
83 PP.MacroArgCache = this;
132 Preprocessor &PP) const {
137 if (II->hasMacroDefinition() && PP.getMacroInfo(II)->isEnabled())
149 Preprocessor &PP) {
159 SaveAndRestore<bool> PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true);
168 PP
25 create(const MacroInfo *MI, ArrayRef<Token> UnexpArgTokens, bool VarargsElided, Preprocessor &PP) argument
148 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP) argument
195 StringifyArgument(const Token *ArgToks, Preprocessor &PP, bool Charify, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument
297 getStringifiedArgument(unsigned ArgNo, Preprocessor &PP, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument
[all...]
H A DPragma.cpp42 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, argument
79 void PragmaNamespace::HandlePragma(Preprocessor &PP, argument
84 PP.LexUnexpandedToken(Tok);
92 PP.Diag(Tok, diag::warn_pragma_ignored);
97 Handler->HandlePragma(PP, Introducer, Tok);
129 Preprocessor &PP; member in class:__anon17949::LexingFor_PragmaRAII
136 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, argument
138 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion),
142 PP
900 HandleCaptured(Preprocessor &PP) argument
[all...]
H A DPPExpressions.cpp59 Preprocessor &PP);
83 bool ValueLive, Preprocessor &PP) {
88 PP.LexUnexpandedNonComment(PeekTok);
95 PP.LexUnexpandedNonComment(PeekTok);
99 if (PP.getCodeCompletionHandler())
100 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false);
101 PP.setCodeCompletionReached();
102 PP.LexUnexpandedNonComment(PeekTok);
106 if (PP.CheckMacroName(PeekTok, 0))
117 Macro = PP
82 EvaluateDefined(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument
169 EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument
457 EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, Token &PeekTok, bool ValueLive, Preprocessor &PP) argument
[all...]
H A DTokenConcatenation.cpp49 const LangOptions &LangOpts = PP.getLangOpts();
54 SourceManager &SM = PP.getSourceManager();
63 unsigned length = PP.getSpelling(Tok, TokPtr);
67 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11);
70 TokenConcatenation::TokenConcatenation(Preprocessor &pp) : PP(pp) {
90 if (PP.getLangOpts().CPlusPlus11) {
121 static char GetFirstChar(Preprocessor &PP, const Token &Tok) { argument
129 SourceManager &SM = PP.getSourceManager();
135 PP.getSpelling(Tok, TokPtr);
138 return PP
[all...]
H A DTokenLexer.cpp47 SourceManager &SM = PP.getSourceManager();
121 if (ActualArgs) ActualArgs->destroy(PP);
126 unsigned MacroArgNo, Preprocessor &PP) {
134 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat)
142 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode
152 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma);
199 Res = ActualArgs->getStringifiedArgument(ArgNo, PP,
205 PP, true,
257 Macro, ArgNo, PP))
124 MaybeRemoveCommaBeforeVaArgs( SmallVectorImpl<Token> &ResultToks, bool HasPasteOperator, MacroInfo *Macro, unsigned MacroArgNo, Preprocessor &PP) argument
[all...]
H A DLiteralSupport.cpp507 Preprocessor &PP)
508 : PP(PP), ThisTokBegin(TokSpelling.begin()), ThisTokEnd(TokSpelling.end()) {
538 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin),
560 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Exponent - ThisTokBegin),
608 if (PP.getLangOpts().MicrosoftExt) {
659 if (PP.getLangOpts().CPlusPlus1y && *s == 'i')
676 if (isValidUDSuffix(PP
505 NumericLiteralParser(StringRef TokSpelling, SourceLocation TokLoc, Preprocessor &PP) argument
946 assert(C < radix && �); CharVal = C; OldVal = Val; Val *= RadixVal; OverflowOccurred |= Val.udiv(RadixVal) != OldVal; Val += CharVal; OverflowOccurred |= Val.ult(CharVal); } return OverflowOccurred; } llvm::APFloat::opStatus NumericLiteralParser::GetFloatValue(llvm::APFloat &Result) { using llvm::APFloat; unsigned n = std::min(SuffixBegin - ThisTokBegin, ThisTokEnd - ThisTokBegin); llvm::SmallString<16> Buffer; StringRef Str(ThisTokBegin, n); if (Str.find(�) != StringRef::npos) { Buffer.reserve(n); std::remove_copy_if(Str.begin(), Str.end(), std::back_inserter(Buffer), &isDigitSeparator); Str = Buffer; } return Result.convertFromString(Str, APFloat::rmNearestTiesToEven); } CharLiteralParser::CharLiteralParser(const char *begin, const char *end, SourceLocation Loc, Preprocessor &PP, tok::TokenKind kind) { HadError = false; Kind = kind; const char *TokBegin = begin; if (Kind != tok::char_constant) { ++begin; } assert(begin[0] == � && �); ++begin; if (end[-1] != �) { const char *UDSuffixEnd = end; do { --end; } while (end[-1] != �); expandUCNs(UDSuffixBuf, StringRef(end, UDSuffixEnd - end)); UDSuffixOffset = end - TokBegin; } assert(end != begin && �); --end; assert(PP.getTargetInfo().getCharWidth() == 8 && �); assert(PP.getTargetInfo().getIntWidth() <= 64 && (PP.getTargetInfo().getIntWidth() & 7) == 0 && �); assert(PP.getTargetInfo().getWCharWidth() <= 64 && �); SmallVector<uint32_t, 4> codepoint_buffer; codepoint_buffer.resize(end - begin); uint32_t *buffer_begin = &codepoint_buffer.front(); uint32_t *buffer_end = buffer_begin + codepoint_buffer.size(); uint32_t largest_character_for_kind; if (tok::wide_char_constant == Kind) { largest_character_for_kind = 0xFFFFFFFFu >> (32-PP.getTargetInfo().getWCharWidth()); } else if (tok::utf16_char_constant == Kind) { largest_character_for_kind = 0xFFFF; } else if (tok::utf32_char_constant == Kind) { largest_character_for_kind = 0x10FFFF; } else { largest_character_for_kind = 0x7Fu; } while (begin != end) { if (begin[0] != �) { char const *start = begin; do { ++begin; } while (begin != end && *begin != �); char const *tmp_in_start = start; uint32_t *tmp_out_start = buffer_begin; ConversionResult res = ConvertUTF8toUTF32(reinterpret_cast<UTF8 const **>(&start), reinterpret_cast<UTF8 const *>(begin), &buffer_begin, buffer_end, strictConversion); if (res != conversionOK) { bool NoErrorOnBadEncoding = isAscii(); unsigned Msg = diag::err_bad_character_encoding; if (NoErrorOnBadEncoding) Msg = diag::warn_bad_character_encoding; PP.Diag(Loc, Msg); if (NoErrorOnBadEncoding) { start = tmp_in_start; buffer_begin = tmp_out_start; for (; start != begin; ++start, ++buffer_begin) *buffer_begin = static_cast<uint8_t>(*start); } else { HadError = true; } } else { for (; tmp_out_start < buffer_begin; ++tmp_out_start) { if (*tmp_out_start > largest_character_for_kind) { HadError = true; PP.Diag(Loc, diag::err_character_too_large); } } } continue; } if (begin[1] == � || begin[1] == �) { unsigned short UcnLen = 0; if (!ProcessUCNEscape(TokBegin, begin, end, *buffer_begin, UcnLen, FullSourceLoc(Loc, PP.getSourceManager()), &PP.getDiagnostics(), PP.getLangOpts(), true)) { HadError = true; } else if (*buffer_begin > largest_character_for_kind) argument
[all...]
/external/clang/lib/Rewrite/Frontend/
H A DRewriteTest.cpp19 void clang::DoRewriteTest(Preprocessor &PP, raw_ostream* OS) { argument
20 SourceManager &SM = PP.getSourceManager();
21 const LangOptions &LangOpts = PP.getLangOpts();
38 *OS << PP.getSpelling(*I);
H A DRewriteMacros.cpp62 static void LexRawTokensFromMainFile(Preprocessor &PP,
64 SourceManager &SM = PP.getSourceManager();
69 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts());
82 PP.LookUpIdentifierInfo(RawTok);
90 void clang::RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS) {
91 SourceManager &SM = PP.getSourceManager();
94 Rewrite.setSourceMgr(SM, PP.getLangOpts());
98 LexRawTokensFromMainFile(PP, RawTokens);
104 PP.EnterMainSourceFile();
106 PP
[all...]
H A DHTMLPrint.cpp36 Preprocessor &PP; member in class:__anon17970::HTMLPrinter
42 : Out(OS), PP(pp), SyntaxHighlight(_SyntaxHighlight),
51 Preprocessor &PP,
54 return new HTMLPrinter(OS, PP, SyntaxHighlight, HighlightMacros);
62 if (PP.getDiagnostics().hasErrorOccurred())
84 if (SyntaxHighlight) html::SyntaxHighlight(R, FID, PP);
85 if (HighlightMacros) html::HighlightMacros(R, FID, PP);
50 CreateHTMLPrinter(raw_ostream *OS, Preprocessor &PP, bool SyntaxHighlight, bool HighlightMacros) argument
/external/clang/lib/Serialization/
H A DGeneratePCH.cpp27 PCHGenerator::PCHGenerator(const Preprocessor &PP, argument
32 : PP(PP), OutputFile(OutputFile), Module(Module),
44 if (PP.getModuleLoader().HadFatalFailure)
47 bool hasErrors = PP.getDiagnostics().hasErrorOccurred();
/external/clang/include/clang/Lex/
H A DTokenConcatenation.h32 Preprocessor &PP; member in class:clang::TokenConcatenation
59 TokenConcatenation(Preprocessor &PP);
H A DMacroArgs.h65 bool VarargsElided, Preprocessor &PP);
69 void destroy(Preprocessor &PP);
73 bool ArgNeedsPreexpansion(const Token *ArgTok, Preprocessor &PP) const;
88 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP);
92 const Token &getStringifiedArgument(unsigned ArgNo, Preprocessor &PP,
114 Preprocessor &PP, bool Charify,
H A DPreprocessorLexer.h30 Preprocessor *PP; // Preprocessor object controlling lexing. member in class:clang::PreprocessorLexer
61 /// Note that in raw mode that the PP pointer may be null.
79 : PP(nullptr), InitialNumSLocEntries(0),
151 Preprocessor *getPP() const { return PP; }
154 assert(PP &&
H A DTokenLexer.h39 /// PP - The current preprocessor object we are expanding for.
41 Preprocessor &PP; member in class:clang::TokenLexer
111 : Macro(nullptr), ActualArgs(nullptr), PP(pp), OwnsTokens(false) {
127 : Macro(nullptr), ActualArgs(nullptr), PP(pp), OwnsTokens(false) {
198 Preprocessor &PP);
/external/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp31 CommentHandlerVisitor() : base(), PP(nullptr), Verified(false) {}
37 virtual bool HandleComment(Preprocessor &PP, SourceRange Loc) { argument
38 assert(&PP == this->PP && "Preprocessor changed!");
41 SourceManager &SM = PP.getSourceManager();
64 Preprocessor *PP; member in class:clang::CommentHandlerVisitor
77 V->PP = &CI.getPreprocessor();
78 V->PP->addCommentHandler(V);
85 V->PP->removeCommentHandler(V);
93 Preprocessor *PP; member in class:clang::CommentVerifier
96 CommentVerifier(const CommentList &Comments, Preprocessor *PP) argument
[all...]
/external/clang/lib/AST/
H A DASTTypeTraits.cpp66 const PrintingPolicy &PP) const {
68 TA->print(PP, OS);
70 NNS->print(OS, PP);
72 NNSL->getNestedNameSpecifier()->print(OS, PP);
74 QT->print(OS, PP);
76 TL->getType().print(OS, PP);
78 D->print(OS, PP);
80 S->printPretty(OS, nullptr, PP);
82 QualType(T, 0).print(OS, PP);
/external/clang/test/PCH/
H A Dobjc_exprs.h20 @interface PP
24 static inline id getPseudoObject(PP *p) {
/external/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp36 Preprocessor &PP, raw_ostream &OS) {
72 OS << PP.getSpelling(*I, SpellingBuffer);
82 Preprocessor &PP; member in class:__anon17927::PrintPPOutputPPCallbacks
102 : PP(pp), SM(PP.getSourceManager()),
103 ConcatInfo(PP), OS(os), DisableLineMarkers(lineMarkers),
114 UseLineDirective = PP.getLangOpts().MicrosoftExt;
359 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS);
568 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
579 std::string TokSpell = PP
35 PrintMacroDefinition(const IdentifierInfo &II, const MacroInfo &MI, Preprocessor &PP, raw_ostream &OS) argument
595 PrintPreprocessedTokens(Preprocessor &PP, Token &Tok, PrintPPOutputPPCallbacks *Callbacks, raw_ostream &OS) argument
674 DoPrintMacros(Preprocessor &PP, raw_ostream *OS) argument
706 DoPrintPreprocessedInput(Preprocessor &PP, raw_ostream *OS, const PreprocessorOutputOptions &Opts) argument
[all...]
H A DHeaderIncludeGen.cpp30 HeaderIncludesCallback(const Preprocessor *PP, bool ShowAllHeaders_, argument
33 : SM(PP->getSourceManager()), OutputFile(OutputFile_),
49 void clang::AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders, argument
62 PP.getDiagnostics().Report(
73 PP.addPPCallbacks(new HeaderIncludesCallback(&PP, ShowAllHeaders,
/external/clang/unittests/Lex/
H A DPPCallbacksTest.cpp174 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader,
177 PP.Initialize(*Target);
179 PP.addPPCallbacks(Callbacks); // Takes ownership.
182 PP.EnterMainSourceFile();
186 PP.Lex(Tok);
207 Preprocessor PP(new PreprocessorOptions(), Diags, OpenCLLangOpts, SourceMgr,
210 PP.Initialize(*Target);
216 PP.getIdentifierTable(), PP.getSelectorTable(),
217 PP
[all...]
/external/clang/lib/Analysis/
H A DReachableCode.cpp127 Preprocessor &PP,
139 SourceManager &SM = PP.getSourceManager();
141 StringRef MacroName = PP.getImmediateMacroName(TopL);
150 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP);
160 Preprocessor &PP,
173 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal,
188 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP);
198 return WrappedInParens || isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO);
203 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP);
212 return isConfigurationValue(B->getLHS(), PP, SilenceableCondVa
126 isExpandedFromConfigurationMacro(const Stmt *S, Preprocessor &PP, bool IgnoreYES_NO = false) argument
159 isConfigurationValue(const Stmt *S, Preprocessor &PP, SourceRange *SilenceableCondVal = nullptr, bool IncludeIntegers = true, bool WrappedInParens = false) argument
230 isConfigurationValue(const ValueDecl *D, Preprocessor &PP) argument
252 shouldTreatSuccessorsAsReachable(const CFGBlock *B, Preprocessor &PP) argument
267 scanFromBlock(const CFGBlock *Start, llvm::BitVector &Reachable, Preprocessor *PP, bool IncludeSometimesUnreachableEdges) argument
333 scanMaybeReachableFromBlock(const CFGBlock *Start, Preprocessor &PP, llvm::BitVector &Reachable) argument
348 Preprocessor &PP; member in class:__anon17781::DeadCodeScan
356 DeadCodeScan(llvm::BitVector &reachable, Preprocessor &PP) argument
637 FindUnreachableCode(AnalysisDeclContext &AC, Preprocessor &PP, Callback &CB) argument
[all...]

Completed in 386 milliseconds

1234567