Home
last modified time | relevance | path

Searched refs:getSpellingLoc (Results 1 – 25 of 92) sorted by relevance

1234

/external/clang/lib/Basic/
DSourceLocation.cpp60 SM.getSpellingLoc(*this).print(OS, SM); in print()
91 FullSourceLoc FullSourceLoc::getSpellingLoc() const { in getSpellingLoc() function in FullSourceLoc
93 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); in getSpellingLoc()
/external/llvm-project/clang/lib/Basic/
DSourceLocation.cpp76 SM.getSpellingLoc(*this).print(OS, SM); in print()
123 PrintedLoc = PrintDifference(OS, SM, SM.getSpellingLoc(Loc), PrintedLoc); in PrintDifference()
161 FullSourceLoc FullSourceLoc::getSpellingLoc() const { in getSpellingLoc() function in FullSourceLoc
163 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); in getSpellingLoc()
/external/clang/lib/Lex/
DTokenConcatenation.cpp55 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in IsIdentifierStringPrefix()
134 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in GetFirstChar()
164 SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation()); in AvoidConcat()
165 SourceLocation SpellLoc = SM.getSpellingLoc(Tok.getLocation()); in AvoidConcat()
/external/llvm-project/clang/lib/Lex/
DTokenConcatenation.cpp54 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in IsIdentifierStringPrefix()
137 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in GetFirstChar()
172 SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation()); in AvoidConcat()
173 SourceLocation SpellLoc = SM.getSpellingLoc(Tok.getLocation()); in AvoidConcat()
/external/llvm-project/clang-tools-extra/clang-change-namespace/
DChangeNamespace.cpp164 Start = SM.getSpellingLoc(Start); in createReplacement()
165 End = SM.getSpellingLoc(End); in createReplacement()
171 SM, CharSourceRange::getTokenRange(SM.getSpellingLoc(Start), in createReplacement()
172 SM.getSpellingLoc(End)), in createReplacement()
193 Loc = SM.getSpellingLoc(Loc); in createInsertion()
273 SourceLocation DeclLoc = SM.getSpellingLoc(D->getBeginLoc()); in isDeclVisibleAtLocation()
274 Loc = SM.getSpellingLoc(Loc); in isDeclVisibleAtLocation()
701 MoveNs.InsertionOffset = SM.getFileOffset(SM.getSpellingLoc(InsertionLoc)); in moveOldNamespace()
738 CharSourceRange::getTokenRange(SM.getSpellingLoc(Start), in moveClassForwardDeclaration()
739 SM.getSpellingLoc(End)), in moveClassForwardDeclaration()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientAlgorithmCheck.cpp133 CallRange.setBegin(SM.getSpellingLoc(CallRange.getBegin())); in check()
134 CallRange.setEnd(SM.getSpellingLoc(CallRange.getEnd())); in check()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DLookup.cpp146 UseLoc = SM.getSpellingLoc(UseLoc); in disambiguateSpellingInScope()
165 SM.getSpellingLoc(Res->getLocation()), UseLoc)) in disambiguateSpellingInScope()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DNoInternalDependenciesCheck.cpp38 Result.SourceManager->getSpellingLoc(InternalDependency->getBeginLoc()); in check()
DAbseilMatcher.h35 SourceLocation Loc = SourceManager.getSpellingLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER()
DDurationDivisionCheck.cpp50 result.SourceManager->getSpellingLoc(OpCall->getEndLoc()), 0, in check()
/external/llvm-project/clang-tools-extra/clangd/
DFindSymbols.cpp174 SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc())); in declToSym()
175 SourceLocation EndLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getEndLoc())); in declToSym()
199 NameLoc = SM.getSpellingLoc(NameLoc); in declToSym()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DDeprecatedIosBaseAliasesCheck.cpp55 IoStateLoc = SM.getSpellingLoc(IoStateLoc); in check()
DRedundantVoidArgCheck.cpp242 {SM->getSpellingLoc(TL.getBeginLoc()), in processLambdaExpr()
243 SM->getSpellingLoc(TL.getEndLoc())}, in processLambdaExpr()
DUseNullptrCheck.cpp335 ArgLoc = Expansion.getSpellingLoc().getLocWithOffset(LocInfo.second); in getMacroAndArgLocations()
394 Loc = Expansion.getSpellingLoc().getLocWithOffset(LocInfo.second); in expandsFrom()
DReplaceAutoPtrCheck.cpp137 AutoPtrLoc = SM.getSpellingLoc(AutoPtrLoc); in check()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DFileExtensionsUtils.cpp31 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in isSpellingLocInHeaderFile()
/external/llvm-project/clang-tools-extra/clang-tidy/android/
DComparisonInTempFailureRetryCheck.cpp72 if (!Lexer::getRawToken(SM.getSpellingLoc(Invocation), Tok, SM, Opts, in check()
/external/clang/unittests/Lex/
DLexerTest.cpp328 SourceLocation fileLsqrLoc = SourceMgr.getSpellingLoc(macroLsqrLoc); in TEST_F()
329 SourceLocation fileIdLoc = SourceMgr.getSpellingLoc(macroIdLoc); in TEST_F()
330 SourceLocation fileRsqrLoc = SourceMgr.getSpellingLoc(macroRsqrLoc); in TEST_F()
/external/llvm-project/clang/include/clang/Basic/
DJsonSupport.h127 printSourceLocationAsJson(Out, SM.getSpellingLoc(Loc), SM, true);
DSourceManager.h365 SourceLocation getSpellingLoc() const { in getSpellingLoc() function
1195 SourceLocation getSpellingLoc(SourceLocation Loc) const { in getSpellingLoc() function
1494 if (isWrittenInScratchSpace(getSpellingLoc(loc))) { in isInSystemMacro()
1497 } while (isWrittenInScratchSpace(getSpellingLoc(loc))); in isInSystemMacro()
1501 return isInSystemHeader(getSpellingLoc(loc)); in isInSystemMacro()
/external/clang/lib/Tooling/Core/
DReplacement.cpp122 SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin()); in getRangeSize()
123 SourceLocation SpellingEnd = Sources.getSpellingLoc(Range.getEnd()); in getRangeSize()
136 setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()), in setFromSourceRange()
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp401 Begin = SM->getSpellingLoc(Begin); in mapDiagnosticRanges()
402 End = SM->getSpellingLoc(End); in mapDiagnosticRanges()
428 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in emitSingleMacroExpansion()
/external/llvm-project/clang/lib/Frontend/
DDiagnosticRenderer.cpp409 Begin = SM->getSpellingLoc(Begin); in mapDiagnosticRanges()
410 End = SM->getSpellingLoc(End); in mapDiagnosticRanges()
433 FullSourceLoc SpellingLoc = Loc.getSpellingLoc(); in emitSingleMacroExpansion()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DExplicitConstructorCheck.cpp44 FileID File = Sources.getFileID(Sources.getSpellingLoc(StartLoc)); in FindToken()
/external/llvm-project/clang/lib/Tooling/Core/
DReplacement.cpp137 SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin()); in getRangeSize()
138 SourceLocation SpellingEnd = Sources.getSpellingLoc(Range.getEnd()); in getRangeSize()
151 setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()), in setFromSourceRange()

1234