This patch allows the refactoring library to use its own set of refactoring-specific diagnostics to reports things like initiation errors.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The code looks most good to me, a few nits.
lib/Basic/DiagnosticIDs.cpp | ||
---|---|---|
46 ↗ | (On Diff #118507) | just curious: is this change needed? |
tools/clang-refactor/ToolRefactoringResultConsumer.h | ||
19 ↗ | (On Diff #118507) | I'd name it "interface", because it has unimplemented virtual function (handleError), clients can't create an instance of it. or alternatively, does it make more sense to just add these methods and DiagnosticsEngine variable to the tooling::RefactoringResultConsumer interface? I see you have replaced "RefactoringResultConsumer" with this new interface in many places. |
Comment Actions
- rename the common consumer class.
lib/Basic/DiagnosticIDs.cpp | ||
---|---|---|
46 ↗ | (On Diff #118507) | I get a build warning without this change as the bitfield becomes too narrow with the new category, so yeah. |
tools/clang-refactor/ToolRefactoringResultConsumer.h | ||
19 ↗ | (On Diff #118507) | Right now I don't think having the diagnostics engine will be useful for clients outside of tool, so I'd prefer to keep it here. We can reconsider this decision in the future if we need to. |