[PATCH] D55065: [clangd] Drop injected class name when class scope is not explicitly specified.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 30 01:00:35 PST 2018
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
LGTM, thanks!
================
Comment at: unittests/clangd/CodeCompleteTests.cpp:419
+TEST(CompletionTest, SkipInjectedWhenUnqualified) {
+ EXPECT_THAT(completions("struct X { void f() { X^ }};").Completions,
----------------
Could you also add a test for the inheritance of injected class name? For ex:
```
struct X {};
struct T : private X {};
struct F : public T {
X^ <-- this is inavlid and we should not suggest X here, since it is inaccessible.
::X^ <-- this should be Ok.
};
```
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55065/new/
https://reviews.llvm.org/D55065
More information about the cfe-commits
mailing list