Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple definitions #648

Open
schaumb opened this issue Oct 15, 2023 · 1 comment
Open

Support multiple definitions #648

schaumb opened this issue Oct 15, 2023 · 1 comment
Labels
Kind: Enhancement 🌟 Level: Moderate (2) Plugin: C++ Issues related to the parsing and presentation of C++ projects.

Comments

@schaumb
Copy link
Collaborator

schaumb commented Oct 15, 2023

Sometimes declarations or usings have several definitions in the codebase.

Currently, CodeCompass can not support multiple implementations in C++.

Ex1:

namespace N {
  int a();
  int a(int);
}

using N::a; // ?

Ex2:

template<class>  struct B; // ?
template<class>  struct B    {}; // impl1
template<>       struct B<A> {}; // impl2
@schaumb
Copy link
Collaborator Author

schaumb commented Oct 18, 2023

It is available to exist multiple definitions. See namespaces (but not through compile units):

namespace A {}
namespace A {}

@mcserep mcserep added Kind: Enhancement 🌟 Plugin: C++ Issues related to the parsing and presentation of C++ projects. labels Oct 18, 2023
@github-project-automation github-project-automation bot moved this to To do in Roadmap Aug 27, 2024
@github-project-automation github-project-automation bot moved this to To do in Lab Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kind: Enhancement 🌟 Level: Moderate (2) Plugin: C++ Issues related to the parsing and presentation of C++ projects.
Projects
Status: To do
Status: To do
Development

No branches or pull requests

2 participants