Home
last modified time | relevance | path

Searched refs:getSpelling (Results 1 – 25 of 33) sorted by relevance

12

/external/clang/lib/Lex/
DTokenConcatenation.cpp62 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix()
66 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus0x); in IsIdentifierStringPrefix()
134 PP.getSpelling(Tok, TokPtr); in GetFirstChar()
137 return PP.getSpelling(Tok)[0]; in GetFirstChar()
DMacroInfo.cpp128 if (PP.getSpelling(A) != PP.getSpelling(B)) in isIdenticalTo()
DPragma.cpp218 std::string StrVal = getSpelling(StrTok); in Handle_Pragma()
427 StringRef Filename = getSpelling(FilenameTok, FilenameBuffer, &Invalid); in HandlePragmaDependency()
456 Message += getSpelling(DependencyTok) + " "; in HandlePragmaDependency()
641 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
649 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
659 std::string StrVal = getSpelling(Tok); in ParsePragmaPushOrPopMacro()
665 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
769 SourceFileName = getSpelling(SourceFilenameTok, FileNameBuffer); in HandlePragmaIncludeAlias()
800 ReplaceFileName = getSpelling(ReplaceFilenameTok, FileNameBuffer); in HandlePragmaIncludeAlias()
DPreprocessor.cpp184 << getSpelling(Tok) << "'"; in DumpToken()
344 StringRef Preprocessor::getSpelling(const Token &Tok, in getSpelling() function in Preprocessor
359 unsigned Len = getSpelling(Tok, Ptr, Invalid); in getSpelling()
461 StringRef CleanedStr = getSpelling(Identifier, IdentifierBuffer); in LookUpIdentifierInfo()
DMacroArgs.cpp228 std::string TokStr = PP.getSpelling(Tok, &Invalid); in StringifyArgument()
242 unsigned ActualTokLen = PP.getSpelling(Tok, BufPtr, &Invalid); in StringifyArgument()
DPPDirectives.cpp120 std::string Spelling = getSpelling(MacroNameTok, &Invalid); in ReadMacroName()
293 std::string DirectiveStr = getSpelling(Tok); in SkipExcludedConditionalBlock()
752 unsigned ActualLength = PP.getSpelling(DigitTok, DigitTokBegin, &Invalid); in GetLineValue()
1065 std::string Str = getSpelling(StrTok, &Invalid); in HandleIdentSCCSDirective()
1218 unsigned ActualLen = getSpelling(CurTok, BufPtr); in ConcatenateIncludeName()
1267 Filename = getSpelling(FilenameTok, FilenameBuffer); in HandleIncludeDirective()
DTokenLexer.cpp473 unsigned LHSLen = PP.getSpelling(Tok, BufPtr, &Invalid); in PasteTokens()
480 unsigned RHSLen = PP.getSpelling(RHS, BufPtr, &Invalid); in PasteTokens()
DPPExpressions.cpp202 StringRef Spelling = PP.getSpelling(PeekTok, IntegerBuffer, in EvaluateValue()
264 StringRef ThisTok = PP.getSpelling(PeekTok, CharBuffer, &CharInvalid); in EvaluateValue()
DLiteralSupport.cpp1124 Lexer::getSpelling(StringToks[i], ThisTokBuf, SM, Features, in init()
1363 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features, in getOffsetOfStringByte()
DLexer.cpp241 StringRef Lexer::getSpelling(SourceLocation loc, in getSpelling() function in Lexer
289 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr, in getSpelling() function in Lexer
330 unsigned Lexer::getSpelling(const Token &Tok, const char *&Buffer, in getSpelling() function in Lexer
2031 std::string Spelling = PP->getSpelling(Result, &Invalid); in SaveBCPLComment()
/external/clang/tools/libclang/
DCIndexDiagnostic.h69 virtual CXString getSpelling() const = 0;
130 virtual CXString getSpelling() const;
DCXLoadedDiagnostic.h38 virtual CXString getSpelling() const;
DCXStoredDiagnostic.cpp51 CXString CXStoredDiagnostic::getSpelling() const { in getSpelling() function in CXStoredDiagnostic
DCIndexDiagnostic.cpp64 CXString getSpelling() const { in getSpelling() function in __anon2e96c6e50111::CXDiagnosticCustomNoteImpl
369 return D->getSpelling(); in clang_getDiagnosticSpelling()
DCXLoadedDiagnostic.cpp104 CXString CXLoadedDiagnostic::getSpelling() const { in getSpelling() function in CXLoadedDiagnostic
/external/clang/include/clang/Lex/
DPreprocessor.h798 StringRef getSpelling(SourceLocation loc,
801 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid);
811 std::string getSpelling(const Token &Tok, bool *Invalid = 0) const {
812 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid);
825 unsigned getSpelling(const Token &Tok, const char *&Buffer,
827 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid);
833 StringRef getSpelling(const Token &Tok,
DLexer.h241 static unsigned getSpelling(const Token &Tok, const char *&Buffer,
251 static std::string getSpelling(const Token &Tok,
264 static StringRef getSpelling(SourceLocation loc,
/external/clang/lib/Rewrite/
DRewriteTest.cpp38 *OS << PP.getSpelling(*I); in DoRewriteTest()
DHTMLRewrite.cpp529 std::string Expansion = EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros()
557 Expansion += EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros()
DRewriteMacros.cpp198 Expansion += ' ' + PP.getSpelling(PPTok); in RewriteMacrosInInput()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp71 OS << PP.getSpelling(*I, SpellingBuffer); in PrintMacroDefinition()
482 std::string TokSpell = PP.getSpelling(PragmaTok); in HandlePragma()
520 unsigned Len = PP.getSpelling(Tok, TokPtr); in PrintPreprocessedTokens()
528 std::string S = PP.getSpelling(Tok); in PrintPreprocessedTokens()
DVerifyDiagnosticConsumer.cpp362 std::string Comment = PP.getSpelling(Tok); in FindExpectedDiags()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp81 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts()); in getMacroNameOrSpelling()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp101 ASSERT_EQ("M", PP.getSpelling(macroExpStartLoc, str)); in TEST_F()
102 ASSERT_EQ(")", PP.getSpelling(macroExpEndLoc, str)); in TEST_F()
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp98 StringRef Spell = Lexer::getSpelling( in handleAttr()

12