clang 20.0.0git
|
Stores the key-value results in memory. More...
#include "clang/Tooling/Execution.h"
Public Member Functions | |
InMemoryToolResults () | |
void | addResult (StringRef Key, StringRef Value) override |
std::vector< std::pair< llvm::StringRef, llvm::StringRef > > | AllKVResults () override |
void | forEachResult (llvm::function_ref< void(StringRef Key, StringRef Value)> Callback) override |
Public Member Functions inherited from clang::tooling::ToolResults | |
virtual | ~ToolResults ()=default |
virtual void | addResult (StringRef Key, StringRef Value)=0 |
virtual std::vector< std::pair< llvm::StringRef, llvm::StringRef > > | AllKVResults ()=0 |
virtual void | forEachResult (llvm::function_ref< void(StringRef Key, StringRef Value)> Callback)=0 |
Stores the key-value results in memory.
It maintains the lifetime of the result. Clang tools using this class are expected to generate a small set of different results, or a large set of duplicated results.
Definition at line 59 of file Execution.h.
|
inline |
Definition at line 61 of file Execution.h.
|
overridevirtual |
Implements clang::tooling::ToolResults.
Definition at line 22 of file Execution.cpp.
|
overridevirtual |
Implements clang::tooling::ToolResults.
Definition at line 27 of file Execution.cpp.
|
overridevirtual |
Implements clang::tooling::ToolResults.
Definition at line 31 of file Execution.cpp.