Refactor SerializerBase and SymbolGraphSerializer to use a visitor pattern described by the CRTP.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM with minor changes
| clang/include/clang/ExtractAPI/Serialization/SerializerBase.h | ||
|---|---|---|
| 58 | It would be nice to keep this as default, i.e. ~APISetVisitor() = default; | |
| clang/include/clang/ExtractAPI/Serialization/SymbolGraphSerializer.h | ||
| 20 | In LLVM we tend to explicitly include any header we use and we definitely use the definitions ins API.h | |
| clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | ||
| 748 | This isn't part of the visitation scheme but more of a way of serializing a single record. I would prefer to keep this as serializeSingleRecord | |
| 808 | Does this need to be explicit like this? Would it not work to just call traverseAPISet(); since we would inherit it through inheritance. | |
It would be nice to keep this as default, i.e.