Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Build result: pass - 59703 tests passed, 0 failed and 762 were skipped.
Log files: console-log.txt, CMakeCache.txt
This looks good, but it is missing the context. I suppose we were previously not providing any references for namespace aliases, because we were filtering both the alias and the underlying decl?
Could you update the revision summary and/or commit message ?
clang-tools-extra/clangd/unittests/FindTargetTests.cpp | ||
---|---|---|
893 | nit: I suppose this line checks we are not regressing the "non-alias case", but they are already being tested in previous tests. |
As discussed offline, it might make more sense to fix this in targetDecls itself. Considering how the Alias is handled for typedefs and usings, it feels like this is a mistake for namespace aliases to be marked in that way.
I took another look and it appears the typedefs also have the Alias relation set. So targetDecl is consistent there and the current fix seems ok.
clang-tools-extra/clangd/unittests/FindTargetTests.cpp | ||
---|---|---|
893 | Yeah, that's just validating that non-aliases also work properly and that's definitely redundant. |
nit: I suppose this line checks we are not regressing the "non-alias case", but they are already being tested in previous tests.