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

Methods

CompilerInvocationRefBase()

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:97

CompilerInvocationRefBase(
    const clang::CompilerInvocationRefBase& X)

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:98

Parameters

const clang::CompilerInvocationRefBase& X

CompilerInvocationRefBase(
    clang::CompilerInvocationRefBase&& X)

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:99

Parameters

clang::CompilerInvocationRefBase&& X

clang::AnalyzerOptionsRef getAnalyzerOpts() const

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:132

clang::DiagnosticOptions& getDiagnosticOpts()
    const

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:110

clang::HeaderSearchOptions& getHeaderSearchOpts()

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:112

const clang::HeaderSearchOptions&
getHeaderSearchOpts() const

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:114

std::shared_ptr<HeaderSearchOptions>
getHeaderSearchOptsPtr() const

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:118

clang::LangOptions* getLangOpts()

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:104

const clang::LangOptions* getLangOpts() const

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:105

clang::PreprocessorOptions& getPreprocessorOpts()

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:126

const clang::PreprocessorOptions&
getPreprocessorOpts() const

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:128

std::shared_ptr<PreprocessorOptions>
getPreprocessorOptsPtr()

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:122

clang::TargetOptions& getTargetOpts()

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:107

const clang::TargetOptions& getTargetOpts() const

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:108

~CompilerInvocationRefBase()

Declared at: clang/include/clang/Frontend/CompilerInvocation.h:102