Add a print method that takes a raw_ostream.
Change LocationCallFormatterCpp::format to call that method.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Tooling/NodeIntrospection.cpp | ||
---|---|---|
26 | The reason for the LocationCallFormatterCpp is that we can write a LocationCallFormatterPython for example which skips over casts (not needed) and always uses ., never ->. I can add a unit test for that once we do chaining and casting for typelocs (coming soon). We shouldn't encode c++-ness into the LocationCall. I think the only remaining change in this MR is the ArrayRef change, which I think you can just go ahead and commit in an NFC commit. |
The reason for the LocationCallFormatterCpp is that we can write a LocationCallFormatterPython for example which skips over casts (not needed) and always uses ., never ->. I can add a unit test for that once we do chaining and casting for typelocs (coming soon).
We shouldn't encode c++-ness into the LocationCall. I think the only remaining change in this MR is the ArrayRef change, which I think you can just go ahead and commit in an NFC commit.