class CompilerInvocationRefBase
Declaration
class CompilerInvocationRefBase { /* full declaration omitted */ };
Description
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.
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:77
Member Variables
- public std::shared_ptr<LangOptions> LangOpts
- Options controlling the language variant.
- public std::shared_ptr<TargetOptions> TargetOpts
- Options controlling the target.
- public IntrusiveRefCntPtr<clang::DiagnosticOptions> DiagnosticOpts
- Options controlling the diagnostic engine.
- public std::shared_ptr<HeaderSearchOptions> HeaderSearchOpts
- Options controlling the # include directive.
- public std::shared_ptr<PreprocessorOptions> PreprocessorOpts
- Options controlling the preprocessor (aside from # include handling).
- public clang::AnalyzerOptionsRef AnalyzerOpts
- Options controlling the static analyzer.
Method Overview
- public CompilerInvocationRefBase()
- public CompilerInvocationRefBase(const clang::CompilerInvocationRefBase & X)
- public CompilerInvocationRefBase(clang::CompilerInvocationRefBase && X)
- public clang::AnalyzerOptionsRef getAnalyzerOpts() const
- public clang::DiagnosticOptions & getDiagnosticOpts() const
- public clang::HeaderSearchOptions & getHeaderSearchOpts()
- public const clang::HeaderSearchOptions & getHeaderSearchOpts() const
- public std::shared_ptr<HeaderSearchOptions> getHeaderSearchOptsPtr() const
- public clang::LangOptions * getLangOpts()
- public const clang::LangOptions * getLangOpts() const
- public clang::PreprocessorOptions & getPreprocessorOpts()
- public const clang::PreprocessorOptions & getPreprocessorOpts() const
- public std::shared_ptr<PreprocessorOptions> getPreprocessorOptsPtr()
- public clang::TargetOptions & getTargetOpts()
- public const clang::TargetOptions & getTargetOpts() const
- public ~CompilerInvocationRefBase()
Methods
¶CompilerInvocationRefBase()
CompilerInvocationRefBase()
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:97
¶CompilerInvocationRefBase(
const clang::CompilerInvocationRefBase& X)
CompilerInvocationRefBase(
const clang::CompilerInvocationRefBase& X)
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:98
Parameters
- const clang::CompilerInvocationRefBase& X
¶CompilerInvocationRefBase(
clang::CompilerInvocationRefBase&& X)
CompilerInvocationRefBase(
clang::CompilerInvocationRefBase&& X)
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:99
Parameters
¶clang::AnalyzerOptionsRef getAnalyzerOpts() const
clang::AnalyzerOptionsRef getAnalyzerOpts() const
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:132
¶clang::DiagnosticOptions& getDiagnosticOpts()
const
clang::DiagnosticOptions& getDiagnosticOpts()
const
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:110
¶clang::HeaderSearchOptions& getHeaderSearchOpts()
clang::HeaderSearchOptions& getHeaderSearchOpts()
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:112
¶const clang::HeaderSearchOptions&
getHeaderSearchOpts() const
const clang::HeaderSearchOptions&
getHeaderSearchOpts() const
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:114
¶std::shared_ptr<HeaderSearchOptions>
getHeaderSearchOptsPtr() const
std::shared_ptr<HeaderSearchOptions>
getHeaderSearchOptsPtr() const
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:118
¶clang::LangOptions* getLangOpts()
clang::LangOptions* getLangOpts()
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:104
¶const clang::LangOptions* getLangOpts() const
const clang::LangOptions* getLangOpts() const
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:105
¶clang::PreprocessorOptions& getPreprocessorOpts()
clang::PreprocessorOptions& getPreprocessorOpts()
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:126
¶const clang::PreprocessorOptions&
getPreprocessorOpts() const
const clang::PreprocessorOptions&
getPreprocessorOpts() const
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:128
¶std::shared_ptr<PreprocessorOptions>
getPreprocessorOptsPtr()
std::shared_ptr<PreprocessorOptions>
getPreprocessorOptsPtr()
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:122
¶clang::TargetOptions& getTargetOpts()
clang::TargetOptions& getTargetOpts()
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:107
¶const clang::TargetOptions& getTargetOpts() const
const clang::TargetOptions& getTargetOpts() const
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:108
¶~CompilerInvocationRefBase()
~CompilerInvocationRefBase()
Declared at: clang/include/clang/Frontend/CompilerInvocation.h:102