#include "clang/Basic/CharInfo.h"
#include "clang/Frontend/Utils.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Serialization/ASTReader.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
usingnamespaceclang;
namespace {
class ModuleDependencyListener : public ASTReaderListener { … };
struct ModuleDependencyPPCallbacks : public PPCallbacks { … };
struct ModuleDependencyMMCallbacks : public ModuleMapCallbacks { … };
}
void ModuleDependencyCollector::attachToASTReader(ASTReader &R) { … }
void ModuleDependencyCollector::attachToPreprocessor(Preprocessor &PP) { … }
static bool isCaseSensitivePath(StringRef Path) { … }
void ModuleDependencyCollector::writeFileMap() { … }
std::error_code ModuleDependencyCollector::copyToRoot(StringRef Src,
StringRef Dst) { … }
void ModuleDependencyCollector::addFile(StringRef Filename, StringRef FileDst) { … }