Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CheckModuleBuildClient Class Reference

Custom diag client for clang that verifies that each implicitly build module is a system module.

If not, it will let the current rootcling invocation fail with an error. All other diags beside module build remarks will be forwarded to the passed child diag client.

The reason why we need this is that if we built implicitly a C++ module that belongs to a ROOT dictionary, then we will miss information generated by rootcling in this file (e.g. the source code comments to annotation attributes transformation will be missing in the module file).

Definition at line 3424 of file rootcling_impl.cxx.

Public Member Functions

 CheckModuleBuildClient (clang::DiagnosticConsumer *Child, bool OwnsChild, clang::ModuleMap &Map)
 
 ~CheckModuleBuildClient () override
 
void BeginSourceFile (const clang::LangOptions &LangOpts, const clang::Preprocessor *PP) override
 
void clear () override
 
void EndSourceFile () override
 
void finish () override
 
void HandleDiagnostic (clang::DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &Info) override
 
bool IncludeInDiagnosticCounts () const override
 

Private Attributes

clang::DiagnosticConsumer * fChild
 
clang::ModuleMap & fMap
 
bool fOwnsChild
 
Inheritance diagram for CheckModuleBuildClient:
[legend]

Constructor & Destructor Documentation

◆ CheckModuleBuildClient()

CheckModuleBuildClient::CheckModuleBuildClient ( clang::DiagnosticConsumer * Child,
bool OwnsChild,
clang::ModuleMap & Map )
inline

Definition at line 3430 of file rootcling_impl.cxx.

◆ ~CheckModuleBuildClient()

CheckModuleBuildClient::~CheckModuleBuildClient ( )
inlineoverride

Definition at line 3435 of file rootcling_impl.cxx.

Member Function Documentation

◆ BeginSourceFile()

void CheckModuleBuildClient::BeginSourceFile ( const clang::LangOptions & LangOpts,
const clang::Preprocessor * PP )
inlineoverride

Definition at line 3509 of file rootcling_impl.cxx.

◆ clear()

void CheckModuleBuildClient::clear ( )
inlineoverride

Definition at line 3503 of file rootcling_impl.cxx.

◆ EndSourceFile()

void CheckModuleBuildClient::EndSourceFile ( )
inlineoverride

Definition at line 3515 of file rootcling_impl.cxx.

◆ finish()

void CheckModuleBuildClient::finish ( )
inlineoverride

Definition at line 3521 of file rootcling_impl.cxx.

◆ HandleDiagnostic()

void CheckModuleBuildClient::HandleDiagnostic ( clang::DiagnosticsEngine::Level DiagLevel,
const clang::Diagnostic & Info )
inlineoverride

Definition at line 3441 of file rootcling_impl.cxx.

◆ IncludeInDiagnosticCounts()

bool CheckModuleBuildClient::IncludeInDiagnosticCounts ( ) const
inlineoverride

Definition at line 3527 of file rootcling_impl.cxx.

Member Data Documentation

◆ fChild

clang::DiagnosticConsumer* CheckModuleBuildClient::fChild
private

Definition at line 3425 of file rootcling_impl.cxx.

◆ fMap

clang::ModuleMap& CheckModuleBuildClient::fMap
private

Definition at line 3427 of file rootcling_impl.cxx.

◆ fOwnsChild

bool CheckModuleBuildClient::fOwnsChild
private

Definition at line 3426 of file rootcling_impl.cxx.

  • core/dictgen/src/rootcling_impl.cxx