Home
last modified time | relevance | path

Searched refs:isInsideMainFile (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DDiagnostics.cpp176 if (clangd::isInsideMainFile(IncludeLocation, SM)) { in getMainFileRange()
217 bool isInsideMainFile(const clang::Diagnostic &D) { in isInsideMainFile() function
221 return clangd::isInsideMainFile(D.getLocation(), D.getSourceManager()); in isInsideMainFile()
640 bool InsideMainFile = isInsideMainFile(Info); in HandleDiagnostic()
681 if (!isInsideMainFile(FixIt.RemoveRange.getBegin(), SM)) in HandleDiagnostic()
DCollectMacros.h48 InMainFile = isInsideMainFile(Loc, SM); in FileChanged()
DSourceCode.h84 bool isInsideMainFile(SourceLocation Loc, const SourceManager &SM);
DQuality.cpp47 if (isInsideMainFile(Redecl->getLocation(), SourceMgr)) in hasDeclInMainFile()
57 if (isInsideMainFile(R.ShadowDecl->getLocation(), SourceMgr)) in hasUsingDeclInMainFile()
DParsedAST.cpp78 if (!isInsideMainFile(D->getLocation(), SM)) in HandleTopLevelDecl()
332 isInsideMainFile(Info.getLocation(), Info.getSourceManager()); in build()
DHeaders.cpp48 if (isInsideMainFile(HashLoc, SM)) { in InclusionDirective()
DIncludeFixer.cpp344 if (!isInsideMainFile(Typo.getLoc(), SemaPtr->SourceMgr)) in CorrectTypo()
DSourceCode.cpp417 bool isInsideMainFile(SourceLocation Loc, const SourceManager &SM) { in isInsideMainFile() function
DXRefs.cpp799 if (!CanonicalTargets.count(D) || !isInsideMainFile(Loc, SM)) in handleDeclOccurrence()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSourceCodeTests.cpp577 EXPECT_FALSE(isInsideMainFile(DeclLoc(HeaderDecl), SM)) << HeaderDecl; in TEST()
580 EXPECT_TRUE(isInsideMainFile(DeclLoc(MainDecl), SM)) << MainDecl; in TEST()
583 EXPECT_TRUE(isInsideMainFile(SM.getSpellingLoc(DeclLoc("Main4")), SM)); in TEST()
DSymbolCollectorTests.cpp124 bool MainFile = isInsideMainFile(ND.getBeginLoc(), SM); in shouldCollect()
/external/llvm-project/clang-tools-extra/clangd/refactor/
DRename.cpp224 isInsideMainFile(RenameDecl.getBeginLoc(), ASTCtx.getSourceManager()); in renameable()
441 if (!isInsideMainFile(RenameLoc, SM)) in renameWithinFile()
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp170 !isInsideMainFile(ND.getLocation(), SM); in isPreferredDeclaration()