================
@@ -268,6 +268,14 @@ void ArgumentCommentCheck::checkCallArgs(ASTContext *Ctx,
return;
Callee = Callee->getFirstDecl();
+ if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(Callee)) {
+ if (Ctor->isInheritingConstructor()) {
+ if (const auto *BaseCtor =
+ Ctor->getInheritedConstructor().getConstructor()) {
----------------
zeyi2 wrote:
Nit: could we remove the braces?
```c++
if (const auto *BaseCtor =
Ctor->getInheritedConstructor().getConstructor())
Callee = BaseCtor->getFirstDecl();
```
https://github.com/llvm/llvm-project/pull/179105
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits