Home
last modified time | relevance | path

Searched refs:isHeaderFile (Results 1 – 14 of 14) sorted by relevance

/llvm-project/clang-tools-extra/clangd/unittests/
H A DSourceCodeTests.cpp779 TEST(SourceCodeTests, isHeaderFile) { in TEST() argument
781 EXPECT_TRUE(isHeaderFile("foo.h")); in TEST()
782 EXPECT_TRUE(isHeaderFile("foo.hh")); in TEST()
783 EXPECT_TRUE(isHeaderFile("foo.hpp")); in TEST()
785 EXPECT_FALSE(isHeaderFile("foo.cpp")); in TEST()
786 EXPECT_FALSE(isHeaderFile("foo.c++")); in TEST()
787 EXPECT_FALSE(isHeaderFile("foo.cxx")); in TEST()
788 EXPECT_FALSE(isHeaderFile("foo.cc")); in TEST()
789 EXPECT_FALSE(isHeaderFile("foo.c")); in TEST()
790 EXPECT_FALSE(isHeaderFile("foo.mm")); in TEST()
[all …]
/llvm-project/clang/lib/InstallAPI/
H A DHeaderFile.cpp39 bool isHeaderFile(StringRef Path) { in isHeaderFile() function
59 if (isHeaderFile(Path)) in enumerateFiles()
H A DDirectoryScanner.cpp114 if (!isHeaderFile(HeaderPath)) in scanHeaders()
/llvm-project/clang/include/clang/InstallAPI/
H A DHeaderFile.h156 bool isHeaderFile(StringRef Path);
/llvm-project/clang-tools-extra/clangd/
H A DHeaderSourceSwitch.cpp95 bool IsHeader = isHeaderFile(OriginalFile, AST.getLangOpts()); in getCorrespondingHeaderOrSource()
H A DSourceCode.h327 bool isHeaderFile(llvm::StringRef FileName,
H A DAST.cpp371 if (!isHeaderFile(FileName, LangOpts)) in preferredIncludeDirective()
H A DSourceCode.cpp1220 bool isHeaderFile(llvm::StringRef FileName, in isHeaderFile() function
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DAddUsing.cpp259 if (isHeaderFile(SM.getFileEntryRefForID(SM.getMainFileID())->getName(), in prepare()
H A DDefineInline.cpp364 if (!isHeaderFile(FileName, FD->getASTContext().getLangOpts())) in addInlineIfInHeader()
H A DDefineOutline.cpp431 SameFile = !isHeaderFile(Sel.AST->tuPath(), Sel.AST->getLangOpts()); in apply()
510 SameFile && isHeaderFile(Sel.AST->tuPath(), Sel.AST->getLangOpts())); in getInsertionPoint()
/llvm-project/clang-tools-extra/clangd/index/
H A DBackground.cpp179 if (isHeaderFile(Path)) in boostRelated()
H A DSymbolCollector.cpp644 !isHeaderFile(SM.getFileEntryRefForID(SM.getMainFileID())->getName(), in handleDeclOccurrence()
775 !isHeaderFile(SM.getFileEntryRefForID(SM.getMainFileID())->getName(), in handleMacroOccurrence()
/llvm-project/clang-tools-extra/clangd/refactor/
H A DRename.cpp246 bool MainFileIsHeader = isHeaderFile(MainFilePath, ASTCtx.getLangOpts()); in renameable()