Home
last modified time | relevance | path

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

12

/external/clang/lib/Parse/
DParseOpenMP.cpp46 : getOpenMPDirectiveKind(P.getPreprocessor().getSpelling(Tok)); in ParseOpenMPDirectiveKind()
53 !P.getPreprocessor().getSpelling(Tok).compare("cancellation"); in ParseOpenMPDirectiveKind()
64 : getOpenMPDirectiveKind(P.getPreprocessor().getSpelling(Tok)); in ParseOpenMPDirectiveKind()
69 !P.getPreprocessor().getSpelling(Tok).compare("point")) || in ParseOpenMPDirectiveKind()
70 ((i == 1) && !P.getPreprocessor().getSpelling(Tok).compare("data")); in ParseOpenMPDirectiveKind()
277 : getOpenMPClauseKind(PP.getSpelling(Tok)); in ParseOpenMPDeclarativeOrExecutableDirective()
627 Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok)); in ParseOpenMPSimpleClause()
697 Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok)); in ParseOpenMPSingleExprWithArgClause()
866 Kind, Tok.is(tok::identifier) ? PP.getSpelling(Tok) : "")); in ParseOpenMPVarListClause()
896 getOpenMPSimpleClauseType(Kind, PP.getSpelling(Tok))); in ParseOpenMPVarListClause()
[all …]
/external/llvm/lib/Option/
DArg.cpp100 OS << getSpelling(); in render()
111 getIndex(), getSpelling(), getValue(0))); in render()
116 Output.push_back(Args.MakeArgString(getSpelling())); in render()
/external/clang/lib/Lex/
DTokenConcatenation.cpp63 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix()
67 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11); in IsIdentifierStringPrefix()
139 PP.getSpelling(Tok, TokPtr); in GetFirstChar()
142 return PP.getSpelling(Tok)[0]; in GetFirstChar()
DPragma.cpp229 std::string StrVal = getSpelling(StrTok); in Handle_Pragma()
465 StringRef Filename = getSpelling(FilenameTok, FilenameBuffer, &Invalid); in HandlePragmaDependency()
495 Message += getSpelling(DependencyTok) + " "; in HandlePragmaDependency()
516 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
524 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
534 std::string StrVal = getSpelling(Tok); in ParsePragmaPushOrPopMacro()
540 << getSpelling(PragmaTok); in ParsePragmaPushOrPopMacro()
646 SourceFileName = getSpelling(SourceFilenameTok, FileNameBuffer); in HandlePragmaIncludeAlias()
677 ReplaceFileName = getSpelling(ReplaceFilenameTok, FileNameBuffer); in HandlePragmaIncludeAlias()
1094 Specifier = PP.getSpelling(Tok, SpecifierBuf); in HandlePragma()
DPreprocessor.cpp213 << getSpelling(Tok) << "'"; in DumpToken()
437 StringRef Preprocessor::getSpelling(const Token &Tok, in getSpelling() function in Preprocessor
452 unsigned Len = getSpelling(Tok, Ptr, Invalid); in getSpelling()
554 StringRef CleanedStr = getSpelling(Identifier, IdentifierBuffer); in LookUpIdentifierInfo()
859 StringRef Spelling = getSpelling(Tok, IntegerBuffer, &NumberInvalid); in parseSimpleIntegerLiteral()
DMacroInfo.cpp122 if (PP.getSpelling(A) != PP.getSpelling(B)) in isIdenticalTo()
DMacroArgs.cpp224 std::string TokStr = PP.getSpelling(Tok, &Invalid); in StringifyArgument()
238 unsigned ActualTokLen = PP.getSpelling(Tok, BufPtr, &Invalid); in StringifyArgument()
DPPDirectives.cpp148 std::string Spelling = getSpelling(MacroNameTok, &Invalid); in CheckMacroName()
376 std::string DirectiveStr = getSpelling(Tok); in SkipExcludedConditionalBlock()
953 unsigned ActualLength = PP.getSpelling(DigitTok, DigitTokBegin, &Invalid); in GetLineValue()
1269 std::string Str = getSpelling(StrTok, &Invalid); in HandleIdentSCCSDirective()
1416 unsigned ActualLen = getSpelling(CurTok, BufPtr); in ConcatenateIncludeName()
1526 Filename = getSpelling(FilenameTok, FilenameBuffer); in HandleIncludeDirective()
DTokenLexer.cpp552 unsigned LHSLen = PP.getSpelling(Tok, BufPtr, &Invalid); in PasteTokens()
559 unsigned RHSLen = PP.getSpelling(RHS, BufPtr, &Invalid); in PasteTokens()
/external/clang/tools/libclang/
DCIndexDiagnostic.h68 virtual CXString getSpelling() const = 0;
129 CXString getSpelling() const override;
DCXLoadedDiagnostic.h38 CXString getSpelling() const override;
DCXStoredDiagnostic.cpp52 CXString CXStoredDiagnostic::getSpelling() const { in getSpelling() function in CXStoredDiagnostic
DCIndexDiagnostic.cpp61 CXString getSpelling() const override { in getSpelling() function in __anoned1aa42d0111::CXDiagnosticCustomNoteImpl
393 return D->getSpelling(); in clang_getDiagnosticSpelling()
/external/clang/include/clang/Lex/
DLexer.h248 static unsigned getSpelling(const Token &Tok, const char *&Buffer,
258 static std::string getSpelling(const Token &Tok,
271 static StringRef getSpelling(SourceLocation loc,
DPreprocessor.h1331 StringRef getSpelling(SourceLocation loc,
1334 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid);
1345 std::string getSpelling(const Token &Tok, bool *Invalid = nullptr) const {
1346 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid);
1361 unsigned getSpelling(const Token &Tok, const char *&Buffer,
1363 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid);
1370 StringRef getSpelling(const Token &Tok,
/external/clang/lib/Frontend/Rewrite/
DRewriteTest.cpp38 *OS << PP.getSpelling(*I); in DoRewriteTest()
DRewriteMacros.cpp198 Expansion += ' ' + PP.getSpelling(PPTok); in RewriteMacrosInInput()
DInclusionRewriter.cpp358 StringRef TmpName = PP.getSpelling(Tok, TmpBuffer, &Invalid); in HandleHasInclude()
374 Filename = PP.getSpelling(Tok, FilenameBuffer, &Invalid); in HandleHasInclude()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp71 OS << PP.getSpelling(T, SpellingBuffer); in PrintMacroDefinition()
590 std::string TokSpell = PP.getSpelling(PragmaTok); in HandlePragma()
655 unsigned Len = PP.getSpelling(Tok, TokPtr); in PrintPreprocessedTokens()
663 std::string S = PP.getSpelling(Tok); in PrintPreprocessedTokens()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp96 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts()); in getMacroNameOrSpelling()
/external/llvm/include/llvm/Option/
DArg.h71 StringRef getSpelling() const { return Spelling; } in getSpelling() function
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp534 std::string Expansion = EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros()
562 Expansion += EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp115 ASSERT_EQ("M", PP.getSpelling(macroExpStartLoc, str)); in TEST_F()
116 ASSERT_EQ(")", PP.getSpelling(macroExpEndLoc, str)); in TEST_F()
/external/clang/include/clang/AST/
DAttr.h91 const char *getSpelling() const;
/external/llvm/lib/LibDriver/
DLibDriver.cpp122 llvm::errs() << "ignoring unknown argument: " << Arg->getSpelling() << "\n"; in libDriverMain()

12