[PATCH] D88964: [clangd] Add a missing include-fixer test for incomplete_type, NFC.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 8 04:28:26 PDT 2020
hokein added inline comments.
================
Comment at: clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp:738
+ "Add include \"x.h\" for symbol ns::X"))),
+ AllOf(Diag(Test.range("nested"),
+ "incomplete type 'ns::X' named in nested name specifier"),
----------------
kadircet wrote:
> hokein wrote:
> > kadircet wrote:
> > > can you move this back to original position ?
> > yeah, I reordered the list.
> >
> > there are two orders: the one listed here, and the one listed in `IncludeFixer.cpp`.
> >
> > The motivation is to make them aligned, so that it would be easier to compare and spot the difference. The current state is not friendly to readers.
> i don't think the orderings in the source vs test is that relevant, but SGTM if it helps you. mainly because:
> - as it might be harder in future to trigger diagnostics in the order we want
> - it is an invariant hard to maintain without at least the reviewer or author of changes knowing about(and remembering) it
yeah, it does help me, especially when I start adding more diagnostics.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88964/new/
https://reviews.llvm.org/D88964
More information about the cfe-commits
mailing list