Skip to content

Instantly share code, notes, and snippets.

@FederAndInk
Last active May 11, 2020 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FederAndInk/8000d182498f5e5a48e648b3d40fa09f to your computer and use it in GitHub Desktop.
Save FederAndInk/8000d182498f5e5a48e648b3d40fa09f to your computer and use it in GitHub Desktop.
Exemple for clang index (inherited ctor with using)
struct S
{
S(int i) {}
};
struct SD : S
{
using S::S;
};
int main(int argc, char* argv[])
{
// call and ctor ref indexed by IndexDataConsumer
S s{1};
// but here, nothing
SD sd{1};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment