Searched refs:getSpelling (Results 1 - 25 of 48) sorted by relevance

12

/external/clang/lib/Frontend/Rewrite/
H A DRewriteTest.cpp38 *OS << PP.getSpelling(*I);
H A DRewriteMacros.cpp198 Expansion += ' ' + PP.getSpelling(PPTok);
/external/llvm/lib/Option/
H A DArg.cpp100 OS << getSpelling();
111 getIndex(), getSpelling(), getValue(0)));
116 Output.push_back(Args.MakeArgString(getSpelling()));
/external/clang/tools/libclang/
H A DCIndexDiagnostic.h68 virtual CXString getSpelling() const = 0;
129 CXString getSpelling() const override;
H A DCXLoadedDiagnostic.h38 CXString getSpelling() const override;
H A DCXStoredDiagnostic.cpp52 CXString CXStoredDiagnostic::getSpelling() const { function in class:CXStoredDiagnostic
H A DCIndexDiagnostic.cpp61 CXString getSpelling() const override {
393 return D->getSpelling();
/external/clang/lib/Lex/
H A DTokenConcatenation.cpp63 unsigned length = PP.getSpelling(Tok, TokPtr);
67 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11);
124 /// avoiding calls to getSpelling where possible.
139 PP.getSpelling(Tok, TokPtr);
142 return PP.getSpelling(Tok)[0];
H A DMacroArgs.cpp224 std::string TokStr = PP.getSpelling(Tok, &Invalid);
238 unsigned ActualTokLen = PP.getSpelling(Tok, BufPtr, &Invalid);
241 // If getSpelling returned a pointer to an already uniqued version of
H A DMacroInfo.cpp122 if (PP.getSpelling(A) != PP.getSpelling(B))
H A DPragma.cpp229 std::string StrVal = getSpelling(StrTok);
465 StringRef Filename = getSpelling(FilenameTok, FilenameBuffer, &Invalid);
495 Message += getSpelling(DependencyTok) + " ";
516 << getSpelling(PragmaTok);
524 << getSpelling(PragmaTok);
534 std::string StrVal = getSpelling(Tok);
540 << getSpelling(PragmaTok);
646 SourceFileName = getSpelling(SourceFilenameTok, FileNameBuffer);
677 ReplaceFileName = getSpelling(ReplaceFilenameTok, FileNameBuffer);
1094 Specifier = PP.getSpelling(To
[all...]
H A DPreprocessor.cpp213 << getSpelling(Tok) << "'";
434 /// getSpelling - This method is used to get the spelling of a token into a
437 StringRef Preprocessor::getSpelling(const Token &Tok, function in class:Preprocessor
452 unsigned Len = getSpelling(Tok, Ptr, Invalid);
554 StringRef CleanedStr = getSpelling(Identifier, IdentifierBuffer);
859 StringRef Spelling = getSpelling(Tok, IntegerBuffer, &NumberInvalid);
H A DPPDirectives.cpp148 std::string Spelling = getSpelling(MacroNameTok, &Invalid);
376 std::string DirectiveStr = getSpelling(Tok);
953 unsigned ActualLength = PP.getSpelling(DigitTok, DigitTokBegin, &Invalid);
1269 std::string Str = getSpelling(StrTok, &Invalid);
1416 unsigned ActualLen = getSpelling(CurTok, BufPtr);
1526 Filename = getSpelling(FilenameTok, FilenameBuffer);
/external/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp96 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts());
/external/clang/lib/Parse/
H A DParseOpenMP.cpp46 : getOpenMPDirectiveKind(P.getPreprocessor().getSpelling(Tok));
53 !P.getPreprocessor().getSpelling(Tok).compare("cancellation");
64 : getOpenMPDirectiveKind(P.getPreprocessor().getSpelling(Tok));
69 !P.getPreprocessor().getSpelling(Tok).compare("point")) ||
70 ((i == 1) && !P.getPreprocessor().getSpelling(Tok).compare("data"));
277 : getOpenMPClauseKind(PP.getSpelling(Tok));
627 Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok));
697 Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok));
866 Kind, Tok.is(tok::identifier) ? PP.getSpelling(Tok) : ""));
896 getOpenMPSimpleClauseType(Kind, PP.getSpelling(To
[all...]
/external/llvm/include/llvm/Option/
H A DArg.h71 StringRef getSpelling() const { return Spelling; } function in class:llvm::opt::Arg
/external/clang/include/clang/Lex/
H A DLexer.h238 /// getSpelling - This method is used to get the spelling of a token into a
248 static unsigned getSpelling(const Token &Tok, const char *&Buffer,
253 /// getSpelling() - Return the 'spelling' of the Tok token. The spelling of a
258 static std::string getSpelling(const Token &Tok,
263 /// getSpelling - This method is used to get the spelling of the
271 static StringRef getSpelling(SourceLocation loc,
H A DPreprocessor.h1331 StringRef getSpelling(SourceLocation loc, function in class:clang::Preprocessor
1334 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid);
1345 std::string getSpelling(const Token &Tok, bool *Invalid = nullptr) const { function in class:clang::Preprocessor
1346 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid);
1361 unsigned getSpelling(const Token &Tok, const char *&Buffer, function in class:clang::Preprocessor
1363 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid);
1370 StringRef getSpelling(const Token &Tok,
/external/clang/include/clang/AST/
H A DAttr.h91 const char *getSpelling() const;
H A DCommentLexer.h353 StringRef getSpelling(const Token &Tok,
/external/clang/lib/AST/
H A DCommentLexer.cpp16 llvm::errs() << " " << Length << " \"" << L.getSpelling(*this, SM) << "\"\n";
832 StringRef Lexer::getSpelling(const Token &Tok,
/external/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp71 OS << PP.getSpelling(T, SpellingBuffer);
590 std::string TokSpell = PP.getSpelling(PragmaTok);
655 unsigned Len = PP.getSpelling(Tok, TokPtr);
663 std::string S = PP.getSpelling(Tok);
/external/llvm/lib/LibDriver/
H A DLibDriver.cpp122 llvm::errs() << "ignoring unknown argument: " << Arg->getSpelling() << "\n";
/external/clang/lib/Rewrite/
H A DHTMLRewrite.cpp534 std::string Expansion = EscapeText(TmpPP.getSpelling(Tok));
562 Expansion += EscapeText(TmpPP.getSpelling(Tok));
/external/clang/unittests/Basic/
H A DSourceManagerTest.cpp115 ASSERT_EQ("M", PP.getSpelling(macroExpStartLoc, str));
116 ASSERT_EQ(")", PP.getSpelling(macroExpEndLoc, str));

Completed in 1068 milliseconds

12