|
clang 23.0.0git
|
Per-format plugin registry for analysis result (de)serializers. More...
Per-format plugin registry for analysis result (de)serializers.
Each concrete format (e.g. JSONFormat) instantiates this template once via a public using alias. Analysis authors register support with:
The serializer receives a const reference to MyAnalysisResult directly and the Add wrapper handles the downcast from AnalysisResult internally via virtual dispatch.
| FormatT | Phantom type is needed to disambiguate llvm::Registry instantiations. llvm::Registry is keyed on the Entry type, so two formats sharing the same serializer/deserializer signatures would collide on the same registry without this parameter. |
Definition at line 106 of file SerializationFormat.h.