ccls icon indicating copy to clipboard operation
ccls copied to clipboard

constructor call not found for member object

Open Jacob-Burckhardt opened this issue 3 years ago • 0 comments

Observed behavior

After asking for calls to Blob() it finds a call on line 8 but not on line 7.

class Blob {
public:
   Blob() {} // line 3
};

class Chunk {
   Blob b; // line 7
   Blob *p = new Blob; // line 8
};

int main() {
   Chunk c;
}

Expected behavior

It should have also found the call to the Blob constructor on line 7.

Steps to reproduce

  1. Put the cursor on "B" in the Blob declaration on line 3.
  2. In emacs, run M-x xref-find-references to find calls to the Blob constructor.

System information

  • ccls version (built from source, not installed from apt): Debian ccls version 0.20220729-0-g7445891
  • clang version: 11.0.1-2
  • OS: Debian GNU/Linux 11
  • Editor: Emacs 27.1
  • Language client (and version): emacs-ccls; git rev ae74a39

Jacob-Burckhardt avatar Sep 14 '22 23:09 Jacob-Burckhardt