Make the interface provided by ScopedPrinter virtual to support a future JSONScopedPrinter which will supply it's own implementation.
This change is split off from D114052.
Paths
| Differential D114223
Make ScopedPrinter interface virtual ClosedPublic Authored by Jaysonyan on Nov 18 2021, 10:05 PM.
Details Summary Make the interface provided by ScopedPrinter virtual to support a future JSONScopedPrinter which will supply it's own implementation. This change is split off from D114052.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Nov 22 2021, 1:12 AM
Jaysonyan marked an inline comment as done. Comment ActionsUpdated printRawFlagsImpl to be overloaded printFlagsImpl method. Jaysonyan marked an inline comment as done. Comment ActionsAdd printList overloads (to handle future JSONScopedPrinter number and boolean printing).
Closed by commit rGec6870b39cf7: [llvm] Make ScopedPrinter interface virtual (authored by Jaysonyan). · Explain WhyDec 10 2021, 10:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 391203 llvm/include/llvm/Support/ScopedPrinter.h
|
And check clang-format's output here too.