clang 17.0.0git
|
The base class of CompilerInvocation with reference semantics. More...
#include "clang/Frontend/CompilerInvocation.h"
Public Member Functions | |
CompilerInvocationRefBase () | |
CompilerInvocationRefBase (const CompilerInvocationRefBase &X) | |
CompilerInvocationRefBase (CompilerInvocationRefBase &&X) | |
CompilerInvocationRefBase & | operator= (CompilerInvocationRefBase X) |
CompilerInvocationRefBase & | operator= (CompilerInvocationRefBase &&X) |
~CompilerInvocationRefBase () | |
LangOptions * | getLangOpts () |
const LangOptions * | getLangOpts () const |
TargetOptions & | getTargetOpts () |
const TargetOptions & | getTargetOpts () const |
DiagnosticOptions & | getDiagnosticOpts () const |
HeaderSearchOptions & | getHeaderSearchOpts () |
const HeaderSearchOptions & | getHeaderSearchOpts () const |
std::shared_ptr< HeaderSearchOptions > | getHeaderSearchOptsPtr () const |
std::shared_ptr< PreprocessorOptions > | getPreprocessorOptsPtr () |
PreprocessorOptions & | getPreprocessorOpts () |
const PreprocessorOptions & | getPreprocessorOpts () const |
AnalyzerOptionsRef | getAnalyzerOpts () const |
Public Attributes | |
std::shared_ptr< LangOptions > | LangOpts |
Options controlling the language variant. | |
std::shared_ptr< TargetOptions > | TargetOpts |
Options controlling the target. | |
IntrusiveRefCntPtr< DiagnosticOptions > | DiagnosticOpts |
Options controlling the diagnostic engine. | |
std::shared_ptr< HeaderSearchOptions > | HeaderSearchOpts |
Options controlling the #include directive. | |
std::shared_ptr< PreprocessorOptions > | PreprocessorOpts |
Options controlling the preprocessor (aside from #include handling). | |
AnalyzerOptionsRef | AnalyzerOpts |
Options controlling the static analyzer. | |
The base class of CompilerInvocation with reference semantics.
This class stores option objects behind reference-counted pointers. This is useful for clients that want to keep some option object around even after CompilerInvocation gets destroyed, without making a copy.
This is a separate class so that we can implement the copy constructor and assignment here and leave them defaulted in the rest of CompilerInvocation.
Definition at line 77 of file CompilerInvocation.h.
CompilerInvocationRefBase::CompilerInvocationRefBase | ( | ) |
Definition at line 129 of file CompilerInvocation.cpp.
CompilerInvocationRefBase::CompilerInvocationRefBase | ( | const CompilerInvocationRefBase & | X | ) |
Definition at line 136 of file CompilerInvocation.cpp.
|
default |
|
default |
|
inline |
Definition at line 132 of file CompilerInvocation.h.
References AnalyzerOpts.
|
inline |
Definition at line 110 of file CompilerInvocation.h.
References DiagnosticOpts.
Referenced by applyTransforms(), clang::arcmt::checkForManualIssues(), createInvocationForMigration(), clang::CompilerInvocation::getModuleHash(), and clang::arcmt::MigrationProcess::MigrationProcess().
|
inline |
Definition at line 112 of file CompilerInvocation.h.
References HeaderSearchOpts.
Referenced by clang::CompilerInvocation::clearImplicitModuleBuildOptions(), clang::createVFSFromCompilerInvocation(), and clang::CompilerInvocation::getModuleHash().
|
inline |
Definition at line 114 of file CompilerInvocation.h.
References HeaderSearchOpts.
|
inline |
Definition at line 118 of file CompilerInvocation.h.
References HeaderSearchOpts.
|
inline |
Definition at line 104 of file CompilerInvocation.h.
References LangOpts.
Referenced by clang::arcmt::MigrationProcess::applyTransform(), applyTransforms(), clang::arcmt::checkForManualIssues(), clang::CompilerInvocation::clearImplicitModuleBuildOptions(), FixupInvocation(), clang::PrecompiledPreamble::OverridePreamble(), and clang::CompilerInvocation::resetNonModularOptions().
|
inline |
Definition at line 105 of file CompilerInvocation.h.
References LangOpts.
|
inline |
Definition at line 126 of file CompilerInvocation.h.
References PreprocessorOpts.
Referenced by getBufferForFileHandlingRemapping(), clang::CompilerInvocation::getModuleHash(), and clang::CompilerInvocation::resetNonModularOptions().
|
inline |
Definition at line 128 of file CompilerInvocation.h.
References PreprocessorOpts.
|
inline |
Definition at line 122 of file CompilerInvocation.h.
References PreprocessorOpts.
|
inline |
Definition at line 107 of file CompilerInvocation.h.
References TargetOpts.
Referenced by FixupInvocation(), and HasARCRuntime().
|
inline |
Definition at line 108 of file CompilerInvocation.h.
References TargetOpts.
|
default |
CompilerInvocationRefBase & CompilerInvocationRefBase::operator= | ( | CompilerInvocationRefBase | X | ) |
Definition at line 149 of file CompilerInvocation.cpp.
References AnalyzerOpts, DiagnosticOpts, HeaderSearchOpts, LangOpts, PreprocessorOpts, TargetOpts, and X().
AnalyzerOptionsRef clang::CompilerInvocationRefBase::AnalyzerOpts |
Options controlling the static analyzer.
Definition at line 95 of file CompilerInvocation.h.
Referenced by clang::CompilerInvocation::generateCC1CommandLine(), getAnalyzerOpts(), and operator=().
IntrusiveRefCntPtr<DiagnosticOptions> clang::CompilerInvocationRefBase::DiagnosticOpts |
Options controlling the diagnostic engine.
Definition at line 86 of file CompilerInvocation.h.
Referenced by clang::CompilerInvocation::generateCC1CommandLine(), getDiagnosticOpts(), and operator=().
std::shared_ptr<HeaderSearchOptions> clang::CompilerInvocationRefBase::HeaderSearchOpts |
Options controlling the #include directive.
Definition at line 89 of file CompilerInvocation.h.
Referenced by clang::CompilerInvocation::generateCC1CommandLine(), getHeaderSearchOpts(), getHeaderSearchOptsPtr(), and operator=().
std::shared_ptr<LangOptions> clang::CompilerInvocationRefBase::LangOpts |
Options controlling the language variant.
Definition at line 80 of file CompilerInvocation.h.
Referenced by clang::CompilerInvocation::generateCC1CommandLine(), getLangOpts(), clang::CompilerInvocation::getModuleHash(), and operator=().
std::shared_ptr<PreprocessorOptions> clang::CompilerInvocationRefBase::PreprocessorOpts |
Options controlling the preprocessor (aside from #include handling).
Definition at line 92 of file CompilerInvocation.h.
Referenced by clang::CompilerInvocation::generateCC1CommandLine(), getPreprocessorOpts(), getPreprocessorOptsPtr(), and operator=().
std::shared_ptr<TargetOptions> clang::CompilerInvocationRefBase::TargetOpts |
Options controlling the target.
Definition at line 83 of file CompilerInvocation.h.
Referenced by clang::CompilerInvocation::generateCC1CommandLine(), clang::CompilerInvocation::getModuleHash(), getTargetOpts(), and operator=().