You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I put the cursor on ~Blob, and run M-x rtags-find-references-at-point, it fails to find the reference in the shared_ptr class. When the second variable "p" is destructed the reference count drops to zero and the shared_ptr class calls ~Blob. Please make it find the reference at the point when the shared_ptr is destructed on the line with the comment saying "// missing reference to ~Blob".
#include <memory>
#include <iostream>
using namespace std;
struct Blob {
~Blob() {
cout << "In dtor" << endl;
}
};
int main() {
{
auto p = new Blob;
delete p;
}
{
auto p = std::make_shared<Blob>();
} // missing reference to ~Blob
}
Environment (please complete the following information):
OS/Version: Debian 11
RTags(rdm,rc): 2.41.134
Emacs: 27.1
LLVM/Clang: clang version 11.0.1-2
The text was updated successfully, but these errors were encountered:
When I put the cursor on ~Blob, and run M-x rtags-find-references-at-point, it fails to find the reference in the shared_ptr class. When the second variable "p" is destructed the reference count drops to zero and the shared_ptr class calls ~Blob. Please make it find the reference at the point when the shared_ptr is destructed on the line with the comment saying "// missing reference to ~Blob".
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: