|
clang 23.0.0git
|
Bundles the EntityIdTable (moved from the LUSummary) and the analysis results produced by one AnalysisDriver::run() call, keyed by AnalysisName. More...
#include "clang/ScalableStaticAnalysisFramework/Core/WholeProgramAnalysis/WPASuite.h"
Public Member Functions | |
| const EntityIdTable & | idTable () const |
| Returns the EntityIdTable that maps EntityId values to their symbolic names. | |
| template<typename ResultT> | |
| bool | contains () const |
Returns true if a result for ResultT is present. | |
| bool | contains (AnalysisName Name) const |
Returns true if a result for Name is present. | |
| template<typename ResultT> | |
| llvm::Expected< const ResultT & > | get () const |
Returns a const reference to the result for ResultT, or an error if absent. | |
| llvm::Expected< const AnalysisResult & > | get (AnalysisName Name) const |
Returns a const reference to the result for Name, or an error if absent. | |
Friends | |
| class | AnalysisDriver |
Bundles the EntityIdTable (moved from the LUSummary) and the analysis results produced by one AnalysisDriver::run() call, keyed by AnalysisName.
This is the natural unit of persistence: entity names and analysis results are self-contained in one object.
Definition at line 35 of file WPASuite.h.
|
inlinenodiscard |
Returns true if a result for ResultT is present.
Definition at line 49 of file WPASuite.h.
References contains(), and clang::ssaf::HasAnalysisName_v.
Referenced by contains().
|
inlinenodiscard |
Returns true if a result for Name is present.
Definition at line 59 of file WPASuite.h.
|
inlinenodiscard |
Returns a const reference to the result for ResultT, or an error if absent.
Definition at line 66 of file WPASuite.h.
References get(), clang::ssaf::HasAnalysisName_v, and clang::Result.
Referenced by get().
|
inlinenodiscard |
Returns a const reference to the result for Name, or an error if absent.
Definition at line 82 of file WPASuite.h.
References clang::ssaf::ErrorBuilder::build(), and clang::ssaf::ErrorBuilder::create().
|
inline |
Returns the EntityIdTable that maps EntityId values to their symbolic names.
Definition at line 46 of file WPASuite.h.
|
friend |