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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to