Files
clice/include/Clang/Compiler.h
2024-07-25 18:28:08 +08:00

19 lines
810 B
C++

#pragma once
#include "Clang.h"
namespace clice {
auto createCompilerInvocation(clang::tooling::CompileCommand& command,
std::vector<std::string>* extraArgs,
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> vfs,
clang::DiagnosticConsumer& consumer) -> std::unique_ptr<CompilerInvocation>;
auto createCompilerInstance(std::unique_ptr<CompilerInvocation> invocation,
const clang::PrecompiledPreamble* preamble,
std::unique_ptr<llvm::MemoryBuffer> content,
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> vfs,
clang::DiagnosticConsumer& consumer) -> std::unique_ptr<CompilerInstance>;
} // namespace clice