| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseNullptrCheck.cpp | 145 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 D | FileIndexRecord.cpp | 61 SourceLocation Loc = SM.getFileLoc(D->getLocation()); in print() 71 SourceLocation Loc = SM.getFileLoc(MI->getDefinitionLoc()); in print()
|
| H A D | IndexingContext.cpp | 117 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 D | WalkASTTest.cpp | 45 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 D | core_main.cpp | 110 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 D | SourceLocation.cpp | 174 FullSourceLoc FullSourceLoc::getFileLoc() const { in getFileLoc() function in FullSourceLoc 176 return FullSourceLoc(SrcMgr->getFileLoc(*this), *SrcMgr); in getFileLoc()
|
| H A D | NoSanitizeList.cpp | 58 containsFile(Mask, SM.getFilename(SM.getFileLoc(Loc)), Category); in containsLocation()
|
| H A D | XRayLists.cpp | 75 return this->shouldImbueFunctionsInFile(SM.getFilename(SM.getFileLoc(Loc)), in shouldImbueLocation()
|
| H A D | ProfileList.cpp | 102 return isFileExcluded(SM.getFilename(SM.getFileLoc(Loc)), Kind); in isLocationExcluded()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | PPLexerChange.cpp | 132 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 D | PreprocessingRecord.cpp | 88 return SM.isInFileID(SM.getFileLoc(Loc), FID); in isPreprocessedEntityIfInFileID()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXSourceLocation.cpp | 322 SourceLocation SpellLoc = SM.getFileLoc(Loc); in clang_getSpellingLocation() 358 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation()
|
| H A D | CXIndexDataConsumer.cpp | 165 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 D | SourceLocation.h | 117 static SourceLocation getFileLoc(UIntTy ID) { 391 FullSourceLoc getFileLoc() const;
|
| H A D | SourceManager.h | 1125 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 D | CloexecCheck.cpp | 66 Lexer::getLocForEndOfToken(SM.getFileLoc(FlagArg->getEndLoc()), 0, SM, in insertMacroFlag()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Compiler.cpp | 29 auto Loc = SourceMgr.getFileLoc(Info.getLocation()); in log()
|
| H A D | FindSymbols.cpp | 225 SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc())); in declToSym() 226 SourceLocation EndLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getEndLoc())); in declToSym()
|
| H A D | XRefs.cpp | 943 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 D | Diagnostics.cpp | 101 auto Loc = M.getFileLoc(D.getLocation()); in diagnosticRange()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | RemoveUsingNamespace.cpp | 169 Loc = SM.getFileLoc(Ref.NameLoc); in apply()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | Lexer.h | 199 SourceLocation getFileLoc() const { return FileLoc; } in getFileLoc() function
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 118 Loc = Loc.getFileLoc(); in emitDiagnostic()
|
| /llvm-project-15.0.7/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIConsumer.cpp | 180 auto FileLoc = SM.getFileLoc(Loc); in isLocationInKnownFile()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | SymbolCollector.cpp | 607 auto FileLoc = SM.getFileLoc(Loc); in handleDeclOccurrence()
|