Home
last modified time | relevance | path

Searched refs:Include (Results 1 – 25 of 177) sorted by relevance

12345678

/llvm-project/clang-tools-extra/include-cleaner/unittests/
H A DTypesTest.cpp36 Inc.add(Include{"a", A, SourceLocation(), 1}); in TEST()
37 Inc.add(Include{"a2", A, SourceLocation(), 2}); in TEST()
38 Inc.add(Include{"b", B, SourceLocation(), 3}); in TEST()
39 Inc.add(Include{"vector", B, SourceLocation(), 4}); in TEST()
40 Inc.add(Include{"vector", B, SourceLocation(), 5}); in TEST()
41 Inc.add(Include{"missing", std::nullopt, SourceLocation(), 6}); in TEST()
57 Inc.add(Include{"lib/include/rel/foo.h", Foo, SourceLocation(), 1}); in TEST()
58 Inc.add(Include{"rel/foo.h", Foo, SourceLocation(), 2}); in TEST()
67 Inc.add(Include{"lib/include/rel/bar.h", Bar, SourceLocation(), 3}); in TEST()
68 Inc.add(Include{"rel/bar.h", Bar, SourceLocation(), 4}); in TEST()
[all …]
/llvm-project/clang-tools-extra/clang-tidy/portability/
H A DRestrictSystemIncludesCheck.cpp43 for (const auto &Include : FileDirectives) { in EndOfMainFile() local
46 unsigned ToLen = std::strcspn(SM.getCharacterData(Include.Loc), "\n") + 1; in EndOfMainFile()
48 Include.Loc, Include.Loc.getLocWithOffset(ToLen)); in EndOfMainFile()
50 if (!Include.IsInMainFile) { in EndOfMainFile()
52 Include.Loc, in EndOfMainFile()
54 D << Include.IncludeFile << SM.getFilename(Include.Loc); in EndOfMainFile()
58 auto D = Check.diag(Include.Loc, "system include %0 not allowed"); in EndOfMainFile()
59 D << Include.IncludeFile; in EndOfMainFile()
/llvm-project/clang/lib/Lex/
H A DInitHeaderSearch.cpp197 llvm_unreachable("Include management is handled in the driver.");
242 default: llvm_unreachable("Include management is handled in the driver."); in AddDefaultCIncludePaths()
261 llvm_unreachable("Include management is handled in the driver."); in AddDefaultCPlusPlusIncludePaths()
268 default: llvm_unreachable("Include management is handled in the driver."); in AddDefaultCPlusPlusIncludePaths()
480 for (auto &Include : IncludePath) in Realize()
481 if (Include.Group == Quoted) in Realize()
482 SearchList.push_back(Include); in Realize() local
488 for (auto &Include : IncludePath) in Realize()
489 if (Include.Group == Angled) in Realize()
490 SearchList.push_back(Include); in Realize() local
497 for (auto &Include : IncludePath) Realize() local
506 for (auto &Include : IncludePath) Realize() local
[all...]
/llvm-project/clang/include/clang/Tooling/Inclusions/
H A DHeaderIncludes.h48 enum class IncludeDirective { Include, Import }; enumerator
90 struct Include { struct
91 Include(StringRef Name, tooling::Range R, IncludeDirective D) in Include() argument
103 void addExistingInclude(Include IncludeToAdd, unsigned NextLineOffset); argument
112 llvm::StringMap<std::list<Include>> ExistingIncludes;
120 std::unordered_map<int, llvm::SmallVector<const Include *, 8>>
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DHeaderIncludeCycleCheck.cpp28 struct Include { struct
75 NextToEnter = Include{Id, FileName, SourceLocation()}; in FileChanged()
115 [&](const Include &Entry) { return Entry.Id == Id; }); in checkForDoubleInclude()
133 std::all_of(Files.rbegin(), It + 1, [](const Include &Elem) { in checkForDoubleInclude()
139 for (const Include &I : llvm::make_range(Files.rbegin(), It + 1)) in checkForDoubleInclude()
151 std::deque<Include> Files;
152 std::optional<Include> NextToEnter;
H A DIncludeCleanerCheck.cpp116 llvm::DenseSet<const include_cleaner::Include *> Used; in check()
156 for (const include_cleaner::Include *I : in check()
168 std::vector<const include_cleaner::Include *> Unused; in check()
169 for (const include_cleaner::Include &I : in check()
226 Angled, tooling::IncludeDirective::Include)) { in check()
/llvm-project/clang-tools-extra/include-cleaner/include/clang-include-cleaner/
H A DTypes.h157 struct Include { struct
166 llvm::raw_ostream &operator<<(llvm::raw_ostream &, const Include &); argument
177 /// addSearchDirectory() and add() (that is: Include.Resolved->getName())
186 void add(const Include &);
189 llvm::ArrayRef<Include> all() const { return All; } in all()
196 llvm::SmallVector<const Include *> match(Header H) const;
199 const Include *atLine(unsigned OneBasedIndex) const;
204 std::vector<Include> All;
/llvm-project/clang-tools-extra/include-cleaner/lib/
H A DTypes.cpp71 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Include &I) {
97 std::string Include::quote() const {
118 void Includes::add(const Include &I) {
150 const Include *Includes::atLine(unsigned OneBasedIndex) const {
155 llvm::SmallVector<const Include *> Includes::match(Header H) const {
156 llvm::SmallVector<const Include *> Result; in match()
H A DAnalysis.cpp86 llvm::DenseSet<const Include *> Used; in analyze()
102 for (const Include *I : Inc.match(H)) { in analyze()
118 for (const Include *I : Inc.match(Header{Spelling})) { in analyze()
127 for (const Include &I : Inc.all()) { in analyze()
160 for (const Include *I : Results.Unused)
H A DHTMLReport.cpp153 SmallVector<const Include *> Includes = {};
158 llvm::DenseMap<const Include *, std::vector<unsigned>> IncludeRefs;
161 llvm::StringRef includeType(const Include *I) { in includeType()
187 // Include pointers are meaningfully ordered as they are backed by a vector. in fillTarget()
335 void writeInclude(const Include &Inc) { in writeProvides()
426 const Include *Inc = nullptr; in writeCode()
/llvm-project/clang-tools-extra/clangd/index/
H A DSerialization.cpp295 for (llvm::StringRef &Include : IGN.DirectIncludes) in readIncludeGraphNode()
296 Include = Data.consumeString(Strings); in readIncludeGraphNode()
309 for (llvm::StringRef Include : IGN.DirectIncludes) in writeIncludeGraphNode() local
310 writeVar(Strings.index(Include), OS); in writeIncludeGraphNode()
332 auto WriteInclude = [&](const Symbol::IncludeHeaderWithReferences &Include) { in writeSymbol() argument
333 writeVar(Strings.index(Include.IncludeHeader), OS); in writeSymbol()
334 writeVar((Include.References << 2) | Include.SupportedDirectives, OS); in writeSymbol()
337 for (const auto &Include : Sym.IncludeHeaders) in writeSymbol() local
338 WriteInclude(Include); in writeSymbol()
501 for (auto &Include : Entry->getValue().DirectIncludes) readRIFF() local
[all...]
H A DSymbol.h93 Include = 1, enumerator
189 for (auto &Include : S.IncludeHeaders) in visitStrings()
190 CB(Include.IncludeHeader);
H A DYAMLSerialization.cpp190 IO.bitSetCase(Value, "Include", clang::clangd::Symbol::Include); in bitset()
200 clang::clangd::Symbol::Include); in mapping()
505 for (auto &Include : Entry->getValue().DirectIncludes) in readYAML() local
506 Include = Sources.try_emplace(Include).first->getKey(); in readYAML()
/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/Inputs/
H A Ddebug_line_malformed.s15 .asciz "dir1" # Include table
76 .asciz "dir1" # Include table
102 .asciz "dir1" # Include table
131 .asciz "dir1" # Include table
164 .asciz "dir1" # Include table
386 .asciz "dir1" # Include table
411 .asciz "dir1" # Include table
431 .asciz "dir1" # Include table
454 .asciz "dir1" # Include table
484 .asciz "dir1" # Include table
H A Ddebug_line_reserved_length.s15 .asciz "dir1" # Include table
45 .asciz "dir1" # Include table
/llvm-project/clang-tools-extra/clangd/
H A DHeaders.cpp1 //===--- Headers.cpp - Include headers ---------------------------*- C++-*-===//
134 bool isLiteralInclude(llvm::StringRef Include) { in isLiteralInclude() argument
135 return Include.starts_with("<") || Include.starts_with("\""); in isLiteralInclude()
173 for (const auto &Include : Includes) in getRankedIncludes() local
174 Headers.push_back({Include.IncludeHeader, Include.supportedDirectives()}); in getRankedIncludes()
229 // Include depth 0 is the main file only. in includeDepth()
/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDebugLineSectionEmitter.h130 for (const DWARFFormValue &Include : P.IncludeDirectories) { in emitLineTablePrologueV2IncludeAndFileTable() local
131 std::optional<const char *> IncludeStr = dwarf::toString(Include); in emitLineTablePrologueV2IncludeAndFileTable()
137 Section.emitString(Include.getForm(), *IncludeStr); in emitLineTablePrologueV2IncludeAndFileTable()
186 for (auto Include : P.IncludeDirectories) { in emitLineTablePrologueV5IncludeAndFileTable() local
187 std::optional<const char *> IncludeStr = dwarf::toString(Include); in emitLineTablePrologueV5IncludeAndFileTable()
193 Section.emitString(Include.getForm(), *IncludeStr); in emitLineTablePrologueV5IncludeAndFileTable()
/llvm-project/clang/test/Modules/
H A Dva_list.m7 // Include the pch, as a basic correctness check.
19 // Include the pch, which now has __va_list_tag in it, which needs to be merged.
/llvm-project/clang-tools-extra/unittests/clang-tidy/
H A DLLVMModuleTest.cpp45 for (auto Include : Includes) in runIncludeOrderCheck() local
46 PathsToContent.emplace(Include, ""); in runIncludeOrderCheck()
/llvm-project/clang-tools-extra/clang-include-fixer/
H A DIncludeFixer.cpp1 //===-- IncludeFixer.cpp - Include inserter based on sema callbacks -------===//
304 StringRef Include, const clang::SourceManager &SourceManager, in minimizeInclude()
307 return std::string(Include); in minimizeInclude()
310 StringRef StrippedInclude = Include.trim("\"<>"); in minimizeInclude()
317 return std::string(Include); in minimizeInclude()
303 minimizeInclude(StringRef Include,const clang::SourceManager & SourceManager,clang::HeaderSearch & HeaderSearch) const minimizeInclude() argument
/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp308 Include(Matches[2], in HeaderIncludes()
312 : tooling::IncludeDirective::Include), in HeaderIncludes()
336 void HeaderIncludes::addExistingInclude(Include IncludeToAdd, in HeaderIncludes()
389 Directive == IncludeDirective::Include ? "include" : "import"; in insert()
/llvm-project/libc/newhdrgen/
H A Dyaml_to_classes.py
/llvm-project/libc/newhdrgen/class_implementation/classes/
H A Dinclude.py
/llvm-project/llvm/test/TableGen/
H A DInclude.inc1 // This is used by the Include.td test
H A DInclude.td5 include "Include.inc"

12345678