#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/TimeProfiler.h"
#include "llvm/Support/VirtualFileSystem.h"
#include <stack>
#include "gtest/gtest.h"
#include <tuple>
usingnamespaceclang;
usingnamespacellvm;
namespace {
void setupProfiler() { … }
std::string teardownProfiler() { … }
bool compileFromString(StringRef Code, StringRef Standard, StringRef File,
llvm::StringMap<std::string> Headers = { … }
std::string GetMetadata(json::Object *Event) { … }
std::string buildTraceGraph(StringRef Json) { … }
}
TEST(TimeProfilerTest, ConstantEvaluationCxx20) { … }
TEST(TimeProfilerTest, TemplateInstantiations) { … }
TEST(TimeProfilerTest, ConstantEvaluationC99) { … }