diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2021-04-14 14:27:08 +0200 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2021-04-19 10:31:11 +0200 |
commit | 782b9858882dde5f63463ea89b88983e920ecccc (patch) | |
tree | ce85c9c4cbe339c2d445ba6a9734dc4ec70f7395 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 83f5fa519ec5efcad200e4d9eb425e747d58088b (diff) | |
download | llvm-782b9858882dde5f63463ea89b88983e920ecccc.zip llvm-782b9858882dde5f63463ea89b88983e920ecccc.tar.gz llvm-782b9858882dde5f63463ea89b88983e920ecccc.tar.bz2 |
[clang] Rename CompilerInvocationBase to RefBase, split out ValueBase
This patch documents the reason `CompilerInvocationBase` exists and renames it to more descriptive `CompilerInvocationRefBase`.
To make the distinction obvious, it also splits out new `CompilerInvocationValueBase` class.
Reviewed By: Bigcheese
Differential Revision: https://reviews.llvm.org/D100455
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index b71143f..fd6ca5e 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -109,14 +109,15 @@ using namespace llvm::opt; // Initialization. //===----------------------------------------------------------------------===// -CompilerInvocationBase::CompilerInvocationBase() +CompilerInvocationRefBase::CompilerInvocationRefBase() : LangOpts(new LangOptions()), TargetOpts(new TargetOptions()), DiagnosticOpts(new DiagnosticOptions()), HeaderSearchOpts(new HeaderSearchOptions()), PreprocessorOpts(new PreprocessorOptions()), AnalyzerOpts(new AnalyzerOptions()) {} -CompilerInvocationBase::CompilerInvocationBase(const CompilerInvocationBase &X) +CompilerInvocationRefBase::CompilerInvocationRefBase( + const CompilerInvocationRefBase &X) : LangOpts(new LangOptions(*X.getLangOpts())), TargetOpts(new TargetOptions(X.getTargetOpts())), DiagnosticOpts(new DiagnosticOptions(X.getDiagnosticOpts())), @@ -124,7 +125,7 @@ CompilerInvocationBase::CompilerInvocationBase(const CompilerInvocationBase &X) PreprocessorOpts(new PreprocessorOptions(X.getPreprocessorOpts())), AnalyzerOpts(new AnalyzerOptions(*X.getAnalyzerOpts())) {} -CompilerInvocationBase::~CompilerInvocationBase() = default; +CompilerInvocationRefBase::~CompilerInvocationRefBase() = default; //===----------------------------------------------------------------------===// // Normalizers |