Home
last modified time | relevance | path

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

12

/external/clang/lib/Lex/
DTokenConcatenation.cpp63 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix()
67 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus0x); in IsIdentifierStringPrefix()
135 PP.getSpelling(Tok, TokPtr); in GetFirstChar()
138 return PP.getSpelling(Tok)[0]; in GetFirstChar()
DMacroInfo.cpp130 if (PP.getSpelling(A) != PP.getSpelling(B)) in isIdenticalTo()
DPragma.cpp221 std::string StrVal = getSpelling(StrTok); in Handle_Pragma()
430 StringRef Filename = getSpelling(FilenameTok, FilenameBuffer, &Invalid); in HandlePragmaDependency()
459 Message += getSpelling(DependencyTok) + " "; in HandlePragmaDependency()
651 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
659 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
669 std::string StrVal = getSpelling(Tok); in ParsePragmaPushOrPopMacro()
675 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
788 SourceFileName = getSpelling(SourceFilenameTok, FileNameBuffer); in HandlePragmaIncludeAlias()
819 ReplaceFileName = getSpelling(ReplaceFilenameTok, FileNameBuffer); in HandlePragmaIncludeAlias()
DPreprocessor.cpp185 << getSpelling(Tok) << "'"; in DumpToken()
359 StringRef Preprocessor::getSpelling(const Token &Tok, in getSpelling() function in Preprocessor
374 unsigned Len = getSpelling(Tok, Ptr, Invalid); in getSpelling()
476 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.cpp123 std::string Spelling = getSpelling(MacroNameTok, &Invalid); in ReadMacroName()
297 std::string DirectiveStr = getSpelling(Tok); in SkipExcludedConditionalBlock()
782 unsigned ActualLength = PP.getSpelling(DigitTok, DigitTokBegin, &Invalid); in GetLineValue()
1092 std::string Str = getSpelling(StrTok, &Invalid); in HandleIdentSCCSDirective()
1248 unsigned ActualLen = getSpelling(CurTok, BufPtr); in ConcatenateIncludeName()
1297 Filename = getSpelling(FilenameTok, FilenameBuffer); in HandleIncludeDirective()
DTokenLexer.cpp480 unsigned LHSLen = PP.getSpelling(Tok, BufPtr, &Invalid); in PasteTokens()
487 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.cpp1186 Lexer::getSpelling(StringToks[i], ThisTokBuf, SM, Features, in init()
1409 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features, in getOffsetOfStringByte()
/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 __anon22ab40a70111::CXDiagnosticCustomNoteImpl
379 return D->getSpelling(); in clang_getDiagnosticSpelling()
/external/clang/include/clang/Lex/
DPreprocessor.h839 StringRef getSpelling(SourceLocation loc,
842 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid);
852 std::string getSpelling(const Token &Tok, bool *Invalid = 0) const {
853 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid);
866 unsigned getSpelling(const Token &Tok, const char *&Buffer,
868 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid);
874 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/Frontend/
DRewriteTest.cpp38 *OS << PP.getSpelling(*I); in DoRewriteTest()
DRewriteMacros.cpp198 Expansion += ' ' + PP.getSpelling(PPTok); in RewriteMacrosInInput()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp72 OS << PP.getSpelling(*I, SpellingBuffer); in PrintMacroDefinition()
486 std::string TokSpell = PP.getSpelling(PragmaTok); in HandlePragma()
528 unsigned Len = PP.getSpelling(Tok, TokPtr); in PrintPreprocessedTokens()
536 std::string S = PP.getSpelling(Tok); in PrintPreprocessedTokens()
/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/Rewrite/Core/
DHTMLRewrite.cpp535 std::string Expansion = EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros()
563 Expansion += EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros()
/external/clang/lib/Sema/
DSemaStmtAsm.cpp347 static StringRef getSpelling(Sema &SemaRef, Token AsmTok) { in getSpelling() function
352 Asm = SemaRef.PP.getSpelling(AsmTok, TokenBuf, &StringInvalid); in getSpelling()
449 Asm += getSpelling(SemaRef, AsmToks[i]); in buildMSAsmString()
/external/clang/lib/AST/
DCommentLexer.cpp13 llvm::errs() << " " << Length << " \"" << L.getSpelling(*this, SM) << "\"\n"; in dump()
815 StringRef Lexer::getSpelling(const Token &Tok, in getSpelling() function in clang::comments::Lexer
/external/clang/include/clang/AST/
DCommentLexer.h354 StringRef getSpelling(const Token &Tok,
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp99 StringRef Spell = Lexer::getSpelling( in handleAttr()

12