|
clang 23.0.0git
|
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
Public Types | |
| using | EntityIdToJSONFn = llvm::function_ref<Object(EntityId)> |
| using | EntityIdFromJSONFn |
| using | SerializerFn |
| using | DeserializerFn |
| using | FormatInfo = FormatInfoEntry<SerializerFn, DeserializerFn> |
Public Member Functions | |
| llvm::Expected< TUSummary > | readTUSummary (llvm::StringRef Path) override |
| llvm::Error | writeTUSummary (const TUSummary &Summary, llvm::StringRef Path) override |
| llvm::Expected< TUSummaryEncoding > | readTUSummaryEncoding (llvm::StringRef Path) override |
| llvm::Error | writeTUSummaryEncoding (const TUSummaryEncoding &SummaryEncoding, llvm::StringRef Path) override |
| llvm::Expected< LUSummary > | readLUSummary (llvm::StringRef Path) override |
| llvm::Error | writeLUSummary (const LUSummary &Summary, llvm::StringRef Path) override |
| llvm::Expected< LUSummaryEncoding > | readLUSummaryEncoding (llvm::StringRef Path) override |
| llvm::Error | writeLUSummaryEncoding (const LUSummaryEncoding &SummaryEncoding, llvm::StringRef Path) override |
| void | forEachRegisteredAnalysis (llvm::function_ref< void(llvm::StringRef Name, llvm::StringRef Desc)> Callback) const override |
Invokes Callback once for each analysis that has registered serialization support for this format. | |
| Public Member Functions inherited from clang::ssaf::SerializationFormat | |
| virtual | ~SerializationFormat ()=default |
Friends | |
| class | JSONEntitySummaryEncoding |
Additional Inherited Members | |
| Static Protected Member Functions inherited from clang::ssaf::SerializationFormat | |
| static EntityId | makeEntityId (const size_t Index) |
Definition at line 31 of file JSONFormat.h.
Definition at line 71 of file JSONFormat.h.
Definition at line 66 of file JSONFormat.h.
| using clang::ssaf::JSONFormat::EntityIdToJSONFn = llvm::function_ref<Object(EntityId)> |
Definition at line 65 of file JSONFormat.h.
Definition at line 75 of file JSONFormat.h.
Definition at line 69 of file JSONFormat.h.
|
overridevirtual |
Invokes Callback once for each analysis that has registered serialization support for this format.
Implements clang::ssaf::SerializationFormat.
Definition at line 128 of file JSONFormatImpl.cpp.
|
overridevirtual |
Implements clang::ssaf::SerializationFormat.
Definition at line 21 of file LUSummary.cpp.
References clang::ssaf::ErrorBuilder::build(), clang::ssaf::ErrorBuilder::context(), clang::ssaf::ErrorBuilder::create(), clang::ssaf::ErrorMessages::FailedToReadObject, clang::ssaf::ErrorMessages::FailedToReadObjectAtField, clang::ssaf::ErrorMessages::ReadingFromField, clang::ssaf::ErrorMessages::ReadingFromFile, clang::ssaf::readJSON(), and clang::ssaf::ErrorBuilder::wrap().
|
overridevirtual |
Implements clang::ssaf::SerializationFormat.
Definition at line 22 of file LUSummaryEncoding.cpp.
References clang::ssaf::ErrorBuilder::build(), clang::ssaf::ErrorBuilder::context(), clang::ssaf::ErrorBuilder::create(), clang::ssaf::ErrorMessages::FailedToReadObject, clang::ssaf::ErrorMessages::FailedToReadObjectAtField, clang::ssaf::ErrorMessages::ReadingFromField, clang::ssaf::ErrorMessages::ReadingFromFile, clang::ssaf::readJSON(), and clang::ssaf::ErrorBuilder::wrap().
|
overridevirtual |
Implements clang::ssaf::SerializationFormat.
Definition at line 21 of file TUSummary.cpp.
References clang::ssaf::ErrorBuilder::build(), clang::ssaf::ErrorBuilder::context(), clang::ssaf::ErrorBuilder::create(), clang::ssaf::ErrorMessages::FailedToReadObject, clang::ssaf::ErrorMessages::FailedToReadObjectAtField, clang::ssaf::ErrorMessages::ReadingFromField, clang::ssaf::ErrorMessages::ReadingFromFile, clang::ssaf::readJSON(), and clang::ssaf::ErrorBuilder::wrap().
|
overridevirtual |
Implements clang::ssaf::SerializationFormat.
Definition at line 22 of file TUSummaryEncoding.cpp.
References clang::ssaf::ErrorBuilder::build(), clang::ssaf::ErrorBuilder::context(), clang::ssaf::ErrorBuilder::create(), clang::ssaf::ErrorMessages::FailedToReadObject, clang::ssaf::ErrorMessages::FailedToReadObjectAtField, clang::ssaf::ErrorMessages::ReadingFromField, clang::ssaf::ErrorMessages::ReadingFromFile, clang::ssaf::readJSON(), and clang::ssaf::ErrorBuilder::wrap().
|
overridevirtual |
Implements clang::ssaf::SerializationFormat.
Definition at line 137 of file LUSummary.cpp.
References clang::ssaf::ErrorBuilder::build(), clang::ssaf::ErrorBuilder::context(), clang::Error, clang::ssaf::ErrorBuilder::wrap(), clang::ssaf::writeJSON(), and clang::ssaf::ErrorMessages::WritingToFile.
|
overridevirtual |
Implements clang::ssaf::SerializationFormat.
Definition at line 139 of file LUSummaryEncoding.cpp.
References clang::ssaf::ErrorBuilder::build(), clang::ssaf::ErrorBuilder::context(), clang::Error, clang::ssaf::ErrorBuilder::wrap(), clang::ssaf::writeJSON(), and clang::ssaf::ErrorMessages::WritingToFile.
|
overridevirtual |
Implements clang::ssaf::SerializationFormat.
Definition at line 137 of file TUSummary.cpp.
References clang::ssaf::ErrorBuilder::build(), clang::ssaf::ErrorBuilder::context(), clang::Error, clang::ssaf::ErrorBuilder::wrap(), clang::ssaf::writeJSON(), and clang::ssaf::ErrorMessages::WritingToFile.
|
overridevirtual |
Implements clang::ssaf::SerializationFormat.
Definition at line 139 of file TUSummaryEncoding.cpp.
References clang::ssaf::ErrorBuilder::build(), clang::ssaf::ErrorBuilder::context(), clang::Error, clang::ssaf::ErrorBuilder::wrap(), clang::ssaf::writeJSON(), and clang::ssaf::ErrorMessages::WritingToFile.
|
friend |
Definition at line 36 of file JSONFormat.h.
References JSONEntitySummaryEncoding.
Referenced by JSONEntitySummaryEncoding.