diff options
author | Naveen Seth Hanig <naveen.hanig@outlook.com> | 2025-08-07 16:06:45 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-07 12:36:45 +0200 |
commit | 474bbc17831e45ae855b7385512d97c519c640fb (patch) | |
tree | 92349b64d07cae344ff5075dc569ce868403fc9a /clang/lib/Sema/SemaModule.cpp | |
parent | e1d67530065efb64dba2f716a355a40535f4a19d (diff) | |
download | llvm-474bbc17831e45ae855b7385512d97c519c640fb.zip llvm-474bbc17831e45ae855b7385512d97c519c640fb.tar.gz llvm-474bbc17831e45ae855b7385512d97c519c640fb.tar.bz2 |
[Support] Enable CRTP for GraphWriter (NFC) (#152322)
Previously, specializing the GraphWriter class required a full class
specialization.
This change introduces CRTP for GraphWriter, allowing for partial
specialization.
This change is in support of printing the module dependency graph as
part of the RFC for driver-managed module builds, for which we want to
print the graph nodes in a more human-readable format by:
- Printing descriptive IDs instead of pointer addresses as node labels.
- Printing the full node labels separately from the node relations to
avoid clutter.
With this approach, only GraphWriter::writeNodes() needs to be
specialized (, aside from DOTGraphTraits).
RFC for driver-managed module builds:
https://discourse.llvm.org/t/rfc-modules-support-simple-c-20-modules-use-from-the-clang-driver-without-a-build-system
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions