#include "IncludeInserter.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/Token.h"
#include <optional>
namespace clang::tidy::utils {
class IncludeInserterCallback : public PPCallbacks { … };
IncludeInserter::IncludeInserter(IncludeSorter::IncludeStyle Style,
bool SelfContainedDiags)
: … { … }
void IncludeInserter::registerPreprocessor(Preprocessor *PP) { … }
IncludeSorter &IncludeInserter::getOrCreate(FileID FileID) { … }
std::optional<FixItHint>
IncludeInserter::createIncludeInsertion(FileID FileID, llvm::StringRef Header) { … }
std::optional<FixItHint>
IncludeInserter::createMainFileIncludeInsertion(StringRef Header) { … }
void IncludeInserter::addInclude(StringRef FileName, bool IsAngled,
SourceLocation HashLocation,
SourceLocation EndLocation) { … }
}