BigBahss / vscode-cmantic

C/C++ code generation for VS Code: Generate Definitions, Getters, Setters, and much more.
https://bigbahss.github.io/vscode-cmantic/
MIT License
82 stars 9 forks source link

[BUG] Update function declaration doesn't follow `using` declarations. #58

Open bpieszko opened 1 year ago

bpieszko commented 1 year ago
\\ .cpp file
namespace NamespaceA {
  using NamespaceB::RetType;
  RetType ClassA::func() {
    ...
  }
}

\\ .hpp file
namespace NamespaceA {
  class ClassA {
  public:
    NamespaceB::RetType func();
  }
}

If I want to update the function declaration from the .cpp PoV then it will remove NamespaceB, but it will be incorrect from header file PoV.