Add ASTConsumer to CompilerInstance.
llvm-svn: 88743
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Frontend/CompilerInstance.h"
|
||||
#include "clang/AST/ASTConsumer.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Basic/FileManager.h"
|
||||
@@ -67,6 +68,10 @@ void CompilerInstance::setASTContext(ASTContext *Value) {
|
||||
Context.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setASTConsumer(ASTConsumer *Value) {
|
||||
Consumer.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
|
||||
CompletionConsumer.reset(Value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user