зеркало из https://github.com/microsoft/clang-1.git
Move CompilerInstance::set* methods out-of-line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
73099bfea9
Коммит
8a9f569262
|
@ -204,9 +204,9 @@ public:
|
|||
|
||||
/// setDiagnostics - Replace the current diagnostics engine; the compiler
|
||||
/// instance takes ownership of \arg Value.
|
||||
void setDiagnostics(Diagnostic *Value) { Diagnostics.reset(Value); }
|
||||
void setDiagnostics(Diagnostic *Value);
|
||||
|
||||
DiagnosticClient &getDiagnosticClient() const { return *DiagClient; }
|
||||
DiagnosticClient &getDiagnosticClient() const;
|
||||
|
||||
/// takeDiagnosticClient - Remove the current diagnostics client and give
|
||||
/// ownership to the caller.
|
||||
|
@ -214,9 +214,7 @@ public:
|
|||
|
||||
/// setDiagnosticClient - Replace the current diagnostics client; the compiler
|
||||
/// instance takes ownership of \arg Value.
|
||||
void setDiagnosticClient(DiagnosticClient *Value) {
|
||||
DiagClient.reset(Value);
|
||||
}
|
||||
void setDiagnosticClient(DiagnosticClient *Value);
|
||||
|
||||
/// }
|
||||
/// @name Target Info
|
||||
|
@ -235,7 +233,7 @@ public:
|
|||
|
||||
/// setTarget - Replace the current diagnostics engine; the compiler
|
||||
/// instance takes ownership of \arg Value.
|
||||
void setTarget(TargetInfo *Value) { Target.reset(Value); }
|
||||
void setTarget(TargetInfo *Value);
|
||||
|
||||
/// }
|
||||
/// @name File Manager
|
||||
|
@ -254,7 +252,7 @@ public:
|
|||
|
||||
/// setFileManager - Replace the current file manager; the compiler instance
|
||||
/// takes ownership of \arg Value.
|
||||
void setFileManager(FileManager *Value) { FileMgr.reset(Value); }
|
||||
void setFileManager(FileManager *Value);
|
||||
|
||||
/// }
|
||||
/// @name Source Manager
|
||||
|
@ -273,7 +271,7 @@ public:
|
|||
|
||||
/// setSourceManager - Replace the current source manager; the compiler
|
||||
/// instance takes ownership of \arg Value.
|
||||
void setSourceManager(SourceManager *Value) { SourceMgr.reset(Value); }
|
||||
void setSourceManager(SourceManager *Value);
|
||||
|
||||
/// }
|
||||
/// @name Preprocessor
|
||||
|
@ -292,7 +290,7 @@ public:
|
|||
|
||||
/// setPreprocessor - Replace the current preprocessor; the compiler instance
|
||||
/// takes ownership of \arg Value.
|
||||
void setPreprocessor(Preprocessor *Value) { PP.reset(Value); }
|
||||
void setPreprocessor(Preprocessor *Value);
|
||||
|
||||
/// }
|
||||
/// @name ASTContext
|
||||
|
@ -311,7 +309,7 @@ public:
|
|||
|
||||
/// setASTContext - Replace the current AST context; the compiler instance
|
||||
/// takes ownership of \arg Value.
|
||||
void setASTContext(ASTContext *Value) { Context.reset(Value); }
|
||||
void setASTContext(ASTContext *Value);
|
||||
|
||||
/// }
|
||||
/// @name Code Completion
|
||||
|
@ -333,9 +331,7 @@ public:
|
|||
|
||||
/// setCodeCompletionConsumer - Replace the current code completion consumer;
|
||||
/// the compiler instance takes ownership of \arg Value.
|
||||
void setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
|
||||
CompletionConsumer.reset(Value);
|
||||
}
|
||||
void setCodeCompletionConsumer(CodeCompleteConsumer *Value);
|
||||
|
||||
/// }
|
||||
/// @name Output Files
|
||||
|
|
|
@ -39,6 +39,38 @@ CompilerInstance::~CompilerInstance() {
|
|||
delete LLVMContext;
|
||||
}
|
||||
|
||||
void CompilerInstance::setDiagnostics(Diagnostic *Value) {
|
||||
Diagnostics.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setDiagnosticClient(DiagnosticClient *Value) {
|
||||
DiagClient.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setTarget(TargetInfo *Value) {
|
||||
Target.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setFileManager(FileManager *Value) {
|
||||
FileMgr.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setSourceManager(SourceManager *Value) {
|
||||
SourceMgr.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setPreprocessor(Preprocessor *Value) {
|
||||
PP.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setASTContext(ASTContext *Value) {
|
||||
Context.reset(Value);
|
||||
}
|
||||
|
||||
void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
|
||||
CompletionConsumer.reset(Value);
|
||||
}
|
||||
|
||||
// Diagnostics
|
||||
|
||||
static void SetUpBuildDumpLog(const DiagnosticOptions &DiagOpts,
|
||||
|
|
Загрузка…
Ссылка в новой задаче