#include "clang/CrossTU/CrossTranslationUnit.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ParentMapContext.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/ToolOutputFile.h"
#include "gtest/gtest.h"
#include <cassert>
namespace clang {
namespace cross_tu {
namespace {
class CTUASTConsumer : public clang::ASTConsumer { … };
class CTUAction : public clang::ASTFrontendAction { … };
}
TEST(CrossTranslationUnit, CanLoadFunctionDefinition) { … }
TEST(CrossTranslationUnit, RespectsLoadThreshold) { … }
TEST(CrossTranslationUnit, IndexFormatCanBeParsed) { … }
TEST(CrossTranslationUnit, EmptyInvocationListIsNotValid) { … }
TEST(CrossTranslationUnit, AmbiguousInvocationListIsDetected) { … }
TEST(CrossTranslationUnit, SingleInvocationCanBeParsed) { … }
TEST(CrossTranslationUnit, MultipleInvocationsCanBeParsed) { … }
}
}