Home
last modified time | relevance | path

Searched refs:Includes (Results 1 – 25 of 81) sorted by relevance

1234

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DHeadersTests.cpp88 return Includes; in collectIncludes()
168 EXPECT_THAT(Includes.includeDepth(getID(MainFile, Includes)), in TEST_F()
187 EXPECT_THAT(Includes.includeDepth(getID(MainFile, Includes)), in TEST_F()
192 EXPECT_THAT(Includes.includeDepth(getID(BarHeader, Includes)), in TEST_F()
242 {getID(BarHeader, Includes), getID(FooHeader, Includes)}}, in TEST_F()
418 EXPECT_TRUE(Includes.isSelfContained(getID("recursive.h", Includes))); in TEST_F()
419 EXPECT_FALSE(Includes.isSelfContained(getID("nonguarded.h", Includes))); in TEST_F()
420 EXPECT_FALSE(Includes.isSelfContained(getID("pp_depend.h", Includes))); in TEST_F()
445 EXPECT_TRUE(Includes.hasIWYUExport(getID("export.h", Includes))); in TEST_F()
446 EXPECT_TRUE(Includes.hasIWYUExport(getID("begin_exports.h", Includes))); in TEST_F()
[all …]
H A DParsedASTTests.cpp375 static std::vector<Inclusion> Includes; in TEST() local
435 ASSERT_EQ(HashLocs.size(), Includes.size()); in TEST()
437 ASSERT_EQ(IncludeRanges.size(), Includes.size()); in TEST()
441 ASSERT_EQ(FileRanges.size(), Includes.size()); in TEST()
443 ASSERT_EQ(SkippedFiles.size(), Includes.size()); in TEST()
444 for (size_t I = 0; I < Includes.size(); ++I) { in TEST()
445 const auto &Inc = Includes[I]; in TEST()
523 auto MainID = Includes.getID(*MainFE); in TEST()
526 auto AuxID = Includes.getID(*AuxFE); in TEST()
567 auto MainID = Includes.getOrCreateID(*MainFE); in TEST()
[all …]
H A DSymbolCollectorTests.cpp1541 CanonicalIncludes Includes; in TEST_F() local
1544 Includes.addSystemHeadersMapping(Language); in TEST_F()
1545 CollectorOpts.Includes = &Includes; in TEST_F()
1569 CanonicalIncludes Includes; in TEST_F() local
1570 PragmaHandler = collectIWYUHeaderMaps(&Includes); in TEST_F()
1571 CollectorOpts.Includes = &Includes; in TEST_F()
1584 CanonicalIncludes Includes; in TEST_F() local
1586 CollectorOpts.Includes = &Includes; in TEST_F()
1609 CanonicalIncludes Includes; in TEST_F() local
1610 Includes.addMapping(*File, "<canonical>"); in TEST_F()
[all …]
H A DIncludeCleanerTests.cpp417 auto &Includes = AST.getIncludeStructure(); in TEST() local
420 findReferencedLocations(AST), Includes, AST.getCanonicalIncludes(), SM); in TEST()
431 auto ReferencedHeaders = translateToHeaderIDs(ReferencedFiles, Includes, SM); in TEST()
434 ReferencedHeaderNames.push_back(Includes.getRealPath(HID)); in TEST()
H A DPreambleTests.cpp81 IncludeStructure Includes; in collectPatchedIncludes() local
82 Includes.collect(*Clang); in collectPatchedIncludes()
88 return Includes; in collectPatchedIncludes()
160 EXPECT_THAT(Includes, ElementsAre(AllOf(Field(&Inclusion::Written, "<a.h>"), in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DIndexAction.cpp129 std::unique_ptr<CanonicalIncludes> Includes, in IndexAction() argument
138 Includes(std::move(Includes)), Opts(Opts), in IndexAction()
139 PragmaHandler(collectIWYUHeaderMaps(this->Includes.get())) { in IndexAction()
158 Includes->addSystemHeadersMapping(CI.getLangOpts()); in CreateASTConsumer()
204 std::unique_ptr<CanonicalIncludes> Includes; member in clang::clangd::__anon5be1d7680111::IndexAction
231 auto Includes = std::make_unique<CanonicalIncludes>(); in createStaticIndexingAction() local
232 Opts.Includes = Includes.get(); in createStaticIndexingAction()
234 std::make_shared<SymbolCollector>(std::move(Opts)), std::move(Includes), in createStaticIndexingAction()
H A DCanonicalIncludes.cpp707 collectIWYUHeaderMaps(CanonicalIncludes *Includes) { in collectIWYUHeaderMaps() argument
710 PragmaCommentHandler(CanonicalIncludes *Includes) : Includes(Includes) {} in collectIWYUHeaderMaps() argument
720 Includes->addMapping(FE->getLastRef(), in collectIWYUHeaderMaps()
728 CanonicalIncludes *const Includes; in collectIWYUHeaderMaps() member in clang::clangd::collectIWYUHeaderMaps::PragmaCommentHandler
730 return std::make_unique<PragmaCommentHandler>(Includes); in collectIWYUHeaderMaps()
H A DFileIndex.cpp49 const CanonicalIncludes &Includes, bool IsIndexMainAST, in indexSymbols() argument
53 CollectorOpts.Includes = &Includes; in indexSymbols()
231 const CanonicalIncludes &Includes) { in indexHeaderSymbols() argument
236 /*MainFileMacros=*/nullptr, Includes, in indexHeaderSymbols()
461 const CanonicalIncludes &Includes) { in updatePreamble() argument
464 indexHeaderSymbols(Version, AST, PP, Includes); in updatePreamble()
H A DFileIndex.h116 Preprocessor &PP, const CanonicalIncludes &Includes);
165 const CanonicalIncludes &Includes);
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DParsedAST.cpp142 : Includes(std::move(Includes)), Delegate(Delegate), SM(SM), PP(PP) { in ReplayPreamble()
173 for (const auto &Inc : Includes) { in replay()
229 const std::vector<Inclusion> Includes; member in clang::clangd::__anonaceec0d20111::ReplayPreamble
561 for (const auto &Inc : Preamble->Includes.MainFileIncludes) in build()
574 IncludeStructure Includes; in build() local
577 Includes = Preamble->Includes; in build()
578 Includes.MainFileIncludes = Patch->preambleIncludes(); in build()
586 Includes.collect(*Clang); in build()
671 std::move(Includes), std::move(CanonIncludes)); in build()
755 return Includes; in getIncludeStructure()
[all …]
H A DPreamble.cpp121 Includes.collect(CI); in BeforeExecute()
189 IncludeStructure Includes; member in clang::clangd::__anoncf7fbb130111::CppFilePreambleCallbacks
296 std::vector<Inclusion> Includes; member
345 IncludeStructure Includes; in scanPreamble() local
346 Includes.collect(*Clang); in scanPreamble()
354 SP.Includes = std::move(Includes.MainFileIncludes); in scanPreamble()
563 Result->Includes = CapturedInfo.takeIncludes(); in buildPreamble()
633 bool IncludesChanged = BaselineScan->Includes != ModifiedScan->Includes; in create()
666 for (const auto &Inc : BaselineScan->Includes) in create()
669 for (auto &Inc : ModifiedScan->Includes) { in create()
[all …]
H A DIncludeCleaner.cpp288 for (auto &Filter : Cfg.Diagnostics.Includes.IgnoreHeader) { in mayConsiderUnused()
305 const IncludeStructure &Includes) { in headerResponsible() argument
313 auto HID = Includes.getID(FE); in headerResponsible()
316 if (Includes.isSelfContained(*HID)) in headerResponsible()
384 const IncludeStructure &Includes, in findReferencedFiles() argument
389 [&SM, &Includes](FileID ID) { in findReferencedFiles()
390 return headerResponsible(ID, SM, Includes); in findReferencedFiles()
439 const IncludeStructure &Includes, in translateToHeaderIDs() argument
450 const auto File = Includes.getID(FE); in translateToHeaderIDs()
455 for (auto HID : Includes.StdlibHeaders.lookup(StdlibUsed)) in translateToHeaderIDs()
H A DIncludeCleaner.h81 const IncludeStructure &Includes,
89 const IncludeStructure &Includes, const SourceManager &SM);
H A DCodeComplete.cpp292 const IncludeInserter &Includes, in CodeCompletionBuilder()
386 Completion.Includes.push_back(std::move(Include)); in CodeCompletionBuilder()
394 std::stable_partition(Completion.Includes.begin(), in CodeCompletionBuilder()
395 Completion.Includes.end(), in CodeCompletionBuilder()
1240 IncludeStructure *Includes = nullptr) { in semaCodeComplete() argument
1307 if (Includes) in semaCodeComplete()
1308 Includes->collect(*Clang); in semaCodeComplete()
1437 : FileName(FileName), Includes(Includes), SpecFuzzyFind(SpecFuzzyFind), in CodeCompleteFlow()
1474 for (const auto &Inc : Includes.MainFileIncludes) in run()
1515 SemaCCInput, &Includes); in run()
[all …]
H A DParsedAST.h126 llvm::Optional<std::vector<Diag>> Diags, IncludeStructure Includes,
155 IncludeStructure Includes; variable
/llvm-project-15.0.7/clang/lib/Frontend/
H A DFrontendAction.cpp297 operator+=(SmallVectorImpl<char> &Includes, StringRef RHS) { in operator +=() argument
298 Includes.append(RHS.begin(), RHS.end()); in operator +=()
299 return Includes; in operator +=()
303 SmallVectorImpl<char> &Includes, in addHeaderInclude() argument
307 Includes += "extern \"C\" {\n"; in addHeaderInclude()
309 Includes += "#import \""; in addHeaderInclude()
311 Includes += "#include \""; in addHeaderInclude()
313 Includes += HeaderName; in addHeaderInclude()
315 Includes += "\"\n"; in addHeaderInclude()
317 Includes += "}\n"; in addHeaderInclude()
[all …]
/llvm-project-15.0.7/clang/lib/Basic/
H A DLangOptions.cpp83 std::vector<std::string> &Includes, in setLangDefaults() argument
121 Includes.push_back("hlsl.h"); in setLangDefaults()
165 Includes.push_back("opencl-c-base.h"); in setLangDefaults()
167 Includes.push_back("opencl-c.h"); in setLangDefaults()
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DUtilsTest.cpp57 EXPECT_THAT(CI->getPreprocessorOpts().Includes, ElementsAre("foo.h")); in TEST()
63 EXPECT_THAT(CI->getPreprocessorOpts().Includes, ElementsAre()); in TEST()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DHeaderIncludesTest.cpp24 HeaderIncludes Includes(FileName, Code, Style); in insert() local
26 auto R = Includes.insert(Header.trim("\"<>"), Header.startswith("<")); in insert()
35 HeaderIncludes Includes(FileName, Code, Style); in remove() local
37 auto Replaces = Includes.remove(Header.trim("\"<>"), Header.startswith("<")); in remove()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPreprocessorOptions.h68 std::vector<std::string> Includes; variable
249 Includes.clear(); in resetNonModularOptions()
/llvm-project-15.0.7/clang/lib/Format/
H A DFormat.cpp2619 unsigned Start = Includes[Indices[i]].Offset; in FindCursorIndex()
2627 while (--i >= 0 && Includes[CursorIndex].Text == Includes[Indices[i]].Text) in FindCursorIndex()
2671 Includes.back().Offset + Includes.back().Text.size(); in sortCppIncludes()
2683 Includes[LHSI].Filename) < in sortCppIncludes()
2685 Includes[RHSI].Filename); in sortCppIncludes()
2689 return std::tie(Includes[LHSI].Priority, Includes[LHSI].Filename) < in sortCppIncludes()
2690 std::tie(Includes[RHSI].Priority, Includes[RHSI].Filename); in sortCppIncludes()
2701 FindCursorIndex(Includes, Indices, *Cursor); in sortCppIncludes()
2712 int CurrentCategory = Includes.front().Category; in sortCppIncludes()
2735 result += Includes[Index].Text; in sortCppIncludes()
[all …]
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DModernizeModuleTest.cpp24 std::vector<std::string> Includes; in tokenify() local
26 Includes, LangStandard::lang_cxx20); in tokenify()
H A DLLVMModuleTest.cpp41 llvm::ArrayRef<llvm::StringLiteral> Includes) { in runIncludeOrderCheck() argument
43 for (auto Include : Includes) in runIncludeOrderCheck()
/llvm-project-15.0.7/llvm/docs/CommandGuide/
H A Dllvm-config.rst160 Includes all LLVM libraries. The default if no components are specified.
164 Includes either a native backend or the C backend.
168 Includes either a native JIT or the bitcode interpreter.
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_linux_test.cpp129 static bool Includes(std::vector<tid_t> first, std::vector<tid_t> second) { in Includes() function
147 ASSERT_TRUE(Includes(listed_tids, tids_)); in TEST_F()
157 ASSERT_TRUE(Includes(listed_tids, tids_)); in TEST_F()

1234