llvm / llvm/llvm-project

[libclang] Inherited constructors not reflected on CXType

Open
#202,235 2 comments 0 reactions 0 assignees View on GitHub
clang:as-a-library
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

In this example:

```c++
class A {
public:
A(int);
A(const char*);
};

class B : public A {
public:
using A::A;
};
```

when I use `clang_visitCXXMethods` on the `CXType` for `B`, I get a default constructor, a copy constructor, and a move constructor — exactly as if the `using` declaration were not present.

I can walk the decl for B and figure out what's going on, but it's a pain. It would be much easier if the `CXType` had the correct constructor set.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.