clang 20.0.0git
Public Member Functions | List of all members
clang::tooling::ExecutionContext Class Reference

The context of an execution, including the information about compilation and results. More...

#include "clang/Tooling/Execution.h"

Public Member Functions

virtual ~ExecutionContext ()
 
 ExecutionContext (ToolResults *Results)
 Initializes a context. This does not take ownership of Results.
 
void reportResult (StringRef Key, StringRef Value)
 Adds a KV pair to the result container of this execution.
 
virtual std::string getRevision ()
 
virtual std::string getCorpus ()
 
virtual std::string getCurrentCompilationUnit ()
 

Detailed Description

The context of an execution, including the information about compilation and results.

Definition at line 77 of file Execution.h.

Constructor & Destructor Documentation

◆ ~ExecutionContext()

virtual clang::tooling::ExecutionContext::~ExecutionContext ( )
inlinevirtual

Definition at line 79 of file Execution.h.

◆ ExecutionContext()

clang::tooling::ExecutionContext::ExecutionContext ( ToolResults Results)
inlineexplicit

Initializes a context. This does not take ownership of Results.

Definition at line 82 of file Execution.h.

Member Function Documentation

◆ getCorpus()

virtual std::string clang::tooling::ExecutionContext::getCorpus ( )
inlinevirtual

Definition at line 93 of file Execution.h.

◆ getCurrentCompilationUnit()

virtual std::string clang::tooling::ExecutionContext::getCurrentCompilationUnit ( )
inlinevirtual

Definition at line 96 of file Execution.h.

◆ getRevision()

virtual std::string clang::tooling::ExecutionContext::getRevision ( )
inlinevirtual

Definition at line 89 of file Execution.h.

◆ reportResult()

void clang::tooling::ExecutionContext::reportResult ( StringRef  Key,
StringRef  Value 
)

Adds a KV pair to the result container of this execution.

Definition at line 38 of file Execution.cpp.

References clang::tooling::ToolResults::addResult().


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