Home
last modified time | relevance | path

Searched refs:getFileLoc (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseNullptrCheck.cpp145 if (SM.getFileLoc(S->getBeginLoc()) != CastLoc) in VisitStmt()
243 SourceLocation FileLocStart = SM.getFileLoc(StartLoc), in VisitStmt()
244 FileLocEnd = SM.getFileLoc(EndLoc); in VisitStmt()
266 StartLoc = SM.getFileLoc(StartLoc); in VisitStmt()
267 EndLoc = SM.getFileLoc(EndLoc); in VisitStmt()
306 MacroArgUsageVisitor ArgUsageVisitor(SM.getFileLoc(CastLoc), SM); in allArgUsesValid()
/llvm-project-15.0.7/clang/lib/Index/
H A DFileIndexRecord.cpp61 SourceLocation Loc = SM.getFileLoc(D->getLocation()); in print()
71 SourceLocation Loc = SM.getFileLoc(MI->getDefinitionLoc()); in print()
H A DIndexingContext.cpp117 FileID FID = SM.getFileID(SM.getFileLoc(Loc)); in importedModule()
369 FileID FID = SM.getFileID(SM.getFileLoc(Loc)); in handleDeclOccurrence()
497 FileID FID = SM.getFileID(SM.getFileLoc(Loc)); in shouldIndexMacroOccurrence()
/llvm-project-15.0.7/clang-tools-extra/include-cleaner/unittests/
H A DWalkASTTest.cpp45 if (SM.getFileLoc(Loc) != ReferencingLoc) in testWalk()
47 auto NDLoc = SM.getDecomposedLoc(SM.getFileLoc(ND.getLocation())); in testWalk()
/llvm-project-15.0.7/clang/tools/c-index-test/
H A Dcore_main.cpp110 Loc = SM.getFileLoc(Loc); in handleDeclOccurrence()
148 Loc = SM.getFileLoc(Loc); in handleModuleOccurrence()
171 Loc = SM.getFileLoc(Loc); in handleMacroOccurrence()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceLocation.cpp174 FullSourceLoc FullSourceLoc::getFileLoc() const { in getFileLoc() function in FullSourceLoc
176 return FullSourceLoc(SrcMgr->getFileLoc(*this), *SrcMgr); in getFileLoc()
H A DNoSanitizeList.cpp58 containsFile(Mask, SM.getFilename(SM.getFileLoc(Loc)), Category); in containsLocation()
H A DXRayLists.cpp75 return this->shouldImbueFunctionsInFile(SM.getFilename(SM.getFileLoc(Loc)), in shouldImbueLocation()
H A DProfileList.cpp102 return isFileExcluded(SM.getFilename(SM.getFileLoc(Loc)), Kind); in isLocationExcluded()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPLexerChange.cpp132 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); in EnterSourceFileWithLexer()
140 Callbacks->FileChanged(CurLexer->getFileLoc(), PPCallbacks::EnterFile, in EnterSourceFileWithLexer()
543 if (CurLexer->getFileLoc() == CodeCompletionFileLoc) in HandleEndOfFile()
549 Diag(CurLexer->getFileLoc(), diag::err_pp_through_header_not_seen) in HandleEndOfFile()
H A DPreprocessingRecord.cpp88 return SM.isInFileID(SM.getFileLoc(Loc), FID); in isPreprocessedEntityIfInFileID()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXSourceLocation.cpp322 SourceLocation SpellLoc = SM.getFileLoc(Loc); in clang_getSpellingLocation()
358 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation()
H A DCXIndexDataConsumer.cpp165 Loc = getASTContext().getSourceManager().getFileLoc(Loc); in handleDeclOccurrence()
949 SourceLocation FileLoc = SM.getFileLoc(Loc); in isNotFromSourceFile()
1029 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SM.getFileLoc(Loc)); in markEntityOccurrenceInFile()
1122 Loc = SM.getFileLoc(Loc); in translateLoc()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceLocation.h117 static SourceLocation getFileLoc(UIntTy ID) {
391 FullSourceLoc getFileLoc() const;
H A DSourceManager.h1125 return SourceLocation::getFileLoc(Entry->getOffset()); in getLocForStartOfFile()
1133 return SourceLocation::getFileLoc(Entry->getOffset() + in getLocForEndOfFile()
1173 SourceLocation getFileLoc(SourceLocation Loc) const { in getFileLoc() function
1233 return Entry->isFile() ? SourceLocation::getFileLoc(GlobalOffset) in getComposedLoc()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/
H A DCloexecCheck.cpp66 Lexer::getLocForEndOfToken(SM.getFileLoc(FlagArg->getEndLoc()), 0, SM, in insertMacroFlag()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DCompiler.cpp29 auto Loc = SourceMgr.getFileLoc(Info.getLocation()); in log()
H A DFindSymbols.cpp225 SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc())); in declToSym()
226 SourceLocation EndLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getEndLoc())); in declToSym()
H A DXRefs.cpp943 L = SM.getFileLoc(L); in handleDeclOccurrence()
1219 Loc = TB.sourceManager().getFileLoc(Loc); in toHighlight()
1584 SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc())); in declToHierarchyItem()
1585 SourceLocation EndLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getEndLoc())); in declToHierarchyItem()
H A DDiagnostics.cpp101 auto Loc = M.getFileLoc(D.getLocation()); in diagnosticRange()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DRemoveUsingNamespace.cpp169 Loc = SM.getFileLoc(Ref.NameLoc); in apply()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DLexer.h199 SourceLocation getFileLoc() const { return FileLoc; } in getFileLoc() function
/llvm-project-15.0.7/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp118 Loc = Loc.getFileLoc(); in emitDiagnostic()
/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp180 auto FileLoc = SM.getFileLoc(Loc); in isLocationInKnownFile()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp607 auto FileLoc = SM.getFileLoc(Loc); in handleDeclOccurrence()

12