implement Compiler.h

This commit is contained in:
ykiko
2024-07-25 18:28:08 +08:00
parent 986e48dad1
commit 2b21139696
5 changed files with 116 additions and 395 deletions

View File

@@ -9,6 +9,7 @@
#include <clang/Tooling/CompilationDatabase.h>
#include <clang/Tooling/Syntax/Tokens.h>
namespace clice {
using llvm::StringRef;

View File

@@ -4,12 +4,15 @@
namespace clice {
inline CompilerInvocation createCompilerInvocation() {
}
auto createCompilerInvocation(clang::tooling::CompileCommand& command,
std::vector<std::string>* extraArgs,
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> vfs,
clang::DiagnosticConsumer& consumer) -> std::unique_ptr<CompilerInvocation>;
inline CompilerInstance createCompilerInstance() {
}
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