Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.82k stars 253 forks source link

rtags fails to index lambda capture variables #1424

Open Jacob-Burckhardt opened 2 years ago

Jacob-Burckhardt commented 2 years ago

When rtags-find-references-at-point is run on captureVar in the below code, it says "No results". Please make it find the result in the code that says "return captureVar".

struct Parent {
   int joe() {
      return [captureVar=member](){ return captureVar; }();
   }

   int member;
};

int main() {
   return Parent{}.joe();
}

Environment (please complete the following information):