Home
last modified time | relevance | path

Searched refs:CtorCall (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseEmplaceCheck.cpp122 const auto *CtorCall = Result.Nodes.getNodeAs<CXXConstructExpr>("ctor"); in check() local
124 assert((CtorCall || MakeCall) && "No push_back parameter matched"); in check()
126 if (IgnoreImplicitConstructors && CtorCall && CtorCall->getNumArgs() >= 1 && in check()
127 CtorCall->getArg(0)->getSourceRange() == CtorCall->getSourceRange()) in check()
144 : CtorCall->getParenOrBraceRange(); in check()
151 MakeCall ? MakeCall->getExprLoc() : CtorCall->getExprLoc(); in check()
/external/clang/test/Parser/
DMicrosoftExtensions.cpp142 class CtorCall { class
144 CtorCall& operator=(const CtorCall& that);
149 CtorCall& CtorCall::operator=(const CtorCall& that) in operator =()
152 this->CtorCall::~CtorCall(); in operator =()
153 …this->CtorCall::CtorCall(that); // expected-warning {{explicit constructor calls are a Microsoft e… in operator =()
/external/llvm-project/clang/test/Parser/
DMicrosoftExtensions.cpp161 class CtorCall { class
163 CtorCall& operator=(const CtorCall& that);
168 CtorCall& CtorCall::operator=(const CtorCall& that) in operator =()
171 this->CtorCall::~CtorCall(); in operator =()
172 …this->CtorCall::CtorCall(that); // expected-warning {{explicit constructor calls are a Microsoft e… in operator =()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DGTestChecker.cpp189 auto *CtorCall = dyn_cast<CXXConstructorCall>(&Call); in checkPostCall() local
190 if (!CtorCall) in checkPostCall()
193 const CXXConstructorDecl *CtorDecl = CtorCall->getDecl(); in checkPostCall()
205 modelAssertionResultCopyConstructor(CtorCall, C); in checkPostCall()
225 modelAssertionResultBoolConstructor(CtorCall, /*IsRef=*/false, C); in checkPostCall()
233 modelAssertionResultBoolConstructor(CtorCall, /*IsRef=*/true, C); in checkPostCall()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DNoAutomaticMoveCheck.cpp60 const auto *CtorCall = Result.Nodes.getNodeAs<Expr>("ctor_call"); in check() local
61 diag(CtorCall->getExprLoc(), "constness of '%0' prevents automatic move") in check()
DUnnecessaryCopyInitialization.cpp101 const auto *CtorCall = Result.Nodes.getNodeAs<CXXConstructExpr>("ctorCall"); in check() local
116 for (unsigned int i = 1; i < CtorCall->getNumArgs(); ++i) in check()
117 if (!CtorCall->getArg(i)->isDefaultArgument()) in check()
/external/llvm-project/clang-tools-extra/clangd/
DHover.cpp783 } else if (const auto *CtorCall = in maybeAddCalleeArgInfo() local
787 if (CtorCall->getConstructor()->isCopyConstructor()) in maybeAddCalleeArgInfo()