[PATCH] D130363: [clang] Give priority to Class context while parsing declarations
Furkan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 29 11:57:12 PDT 2022
furkanusta added a comment.
I've added a test case but I have a question.
This is regardless of the current issue (i.e. no function context, clang++14 with no patches)
struct X {
virtual void foo();
};
struct Y : public X {
over
};
I am trying to complete override in class Y here, but I get no result.
The command I am using is:
clang++ -cc1 -xc++ -code-completion-patterns -fsyntax-only -code-completion-at="test.cpp:5:2" test.cpp
The only output I get is: COMPLETION: operator
If I start the completion at the first column I receive the correct result.
Is my invocation correct or is this case handled by clangd and not clang?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130363/new/
https://reviews.llvm.org/D130363
More information about the cfe-commits
mailing list