9#ifndef LLVM_CLANG_TOOLING_INCLUSIONS_HEADERINCLUDES_H
10#define LLVM_CLANG_TOOLING_INCLUSIONS_HEADERINCLUDES_H
15#include "llvm/Support/Path.h"
16#include "llvm/Support/Regex.h"
19#include <unordered_map>
40 bool isMainHeader(StringRef IncludeName)
const;
76 std::optional<tooling::Replacement>
insert(llvm::StringRef Header,
103 void addExistingInclude(Include IncludeToAdd,
unsigned NextLineOffset);
112 llvm::StringMap<std::list<Include>> ExistingIncludes;
120 std::unordered_map<int, llvm::SmallVector<const Include *, 8>>
123 int FirstIncludeOffset;
126 unsigned MinInsertOffset;
130 unsigned MaxInsertOffset;
132 bool MainIncludeFound;
135 std::unordered_map<int, int> CategoryEndOffsets;
138 std::set<int> Priorities;
Defines the SourceManager interface.
Directive - Abstract class representing a parsed verify directive.
The JSON file list parser is used to communicate input to InstallAPI.