/llvm-project/clang-tools-extra/include-cleaner/unittests/ |
H A D | TypesTest.cpp | 36 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 D | RestrictSystemIncludesCheck.cpp | 43 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 D | InitHeaderSearch.cpp | 197 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 D | HeaderIncludes.h | 48 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 D | HeaderIncludeCycleCheck.cpp | 28 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 D | IncludeCleanerCheck.cpp | 116 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 D | Types.h | 157 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 D | Types.cpp | 71 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 D | Analysis.cpp | 86 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 D | HTMLReport.cpp | 153 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 D | Serialization.cpp | 295 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 D | Symbol.h | 93 Include = 1, enumerator 189 for (auto &Include : S.IncludeHeaders) in visitStrings() 190 CB(Include.IncludeHeader);
|
H A D | YAMLSerialization.cpp | 190 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 D | debug_line_malformed.s | 15 .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 D | debug_line_reserved_length.s | 15 .asciz "dir1" # Include table 45 .asciz "dir1" # Include table
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | Headers.cpp | 1 //===--- 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 D | DebugLineSectionEmitter.h | 130 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 D | va_list.m | 7 // 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 D | LLVMModuleTest.cpp | 45 for (auto Include : Includes) in runIncludeOrderCheck() local 46 PathsToContent.emplace(Include, ""); in runIncludeOrderCheck()
|
/llvm-project/clang-tools-extra/clang-include-fixer/ |
H A D | IncludeFixer.cpp | 1 //===-- 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 D | HeaderIncludes.cpp | 308 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 D | yaml_to_classes.py |
|
/llvm-project/libc/newhdrgen/class_implementation/classes/ |
H A D | include.py |
|
/llvm-project/llvm/test/TableGen/ |
H A D | Include.inc | 1 // This is used by the Include.td test
|
H A D | Include.td | 5 include "Include.inc"
|