clang  6.0.0svn
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. More...
 
void reportResult (StringRef Key, StringRef Value)
 Adds a KV pair to the result container of this execution. More...
 
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 66 of file Execution.h.

Constructor & Destructor Documentation

◆ ~ExecutionContext()

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

Definition at line 68 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 71 of file Execution.h.

Member Function Documentation

◆ getCorpus()

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

Definition at line 82 of file Execution.h.

◆ getCurrentCompilationUnit()

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

Definition at line 85 of file Execution.h.

◆ getRevision()

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

Definition at line 78 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 39 of file Execution.cpp.

References clang::Error.


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