clang 22.0.0git
clang::Sema::TentativeAnalysisScope Class Reference

RAII class used to indicate that we are performing provisional semantic analysis to determine the validity of a construct, so typo-correction and diagnostics in the immediate context (not within implicitly-instantiated templates) should be suppressed. More...

#include "clang/Sema/Sema.h"

Public Member Functions

 TentativeAnalysisScope (Sema &SemaRef)
 ~TentativeAnalysisScope ()
 TentativeAnalysisScope (const TentativeAnalysisScope &)=delete
TentativeAnalysisScopeoperator= (const TentativeAnalysisScope &)=delete

Detailed Description

RAII class used to indicate that we are performing provisional semantic analysis to determine the validity of a construct, so typo-correction and diagnostics in the immediate context (not within implicitly-instantiated templates) should be suppressed.

Definition at line 12494 of file Sema.h.

Constructor & Destructor Documentation

◆ TentativeAnalysisScope() [1/2]

clang::Sema::TentativeAnalysisScope::TentativeAnalysisScope ( Sema & SemaRef)
inlineexplicit

Definition at line 12501 of file Sema.h.

References clang::Sema::DisableTypoCorrection, clang::Sema::Sema(), and true.

Referenced by operator=(), and TentativeAnalysisScope().

◆ ~TentativeAnalysisScope()

clang::Sema::TentativeAnalysisScope::~TentativeAnalysisScope ( )
inline

Definition at line 12506 of file Sema.h.

◆ TentativeAnalysisScope() [2/2]

clang::Sema::TentativeAnalysisScope::TentativeAnalysisScope ( const TentativeAnalysisScope & )
delete

Member Function Documentation

◆ operator=()

TentativeAnalysisScope & clang::Sema::TentativeAnalysisScope::operator= ( const TentativeAnalysisScope & )
delete

The documentation for this class was generated from the following file: