llvm-project
f3e8508a - [clang][ssaf] Add `JSONFormat` serialization support for `LUSummary` and `LUSummaryEncoding`

Commit
17 hours ago
[clang][ssaf] Add `JSONFormat` serialization support for `LUSummary` and `LUSummaryEncoding` This change extends `SerializationFormat` and `JSONFormat` with APIs to read and write `LUSummary` and `LUSummaryEncoding`, completing the serialization interface for both TU-level and LU-level summaries. As part of the implementation, common serialization infrastructure has been extracted into `JSONFormatImpl.{cpp, h}`, eliminating duplication across the TU and LU translation units. A comprehensive `LUSummaryTest` suite has been added to test `LUSummary` and `LUSummaryEncoding`, mirroring the structure of the existing `TUSummaryTest` suite. Shared testing infrastructure has been extracted into `JSONFormatTest.{cpp, h}`.
Author
Parents
Loading