Lines Matching refs:FunDecl
184 static bool isTestingFunction(const FunctionDecl *FunDecl) {
185 return FunDecl->hasAttr<TestTypestateAttr>();
264 static ConsumedState testsFor(const FunctionDecl *FunDecl) {
265 assert(isTestingFunction(FunDecl));
266 switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) {
486 const FunctionDecl *FunDecl,
575 const FunctionDecl *FunDecl,
579 const CallableWhenAttr *CWAttr = FunDecl->getAttr<CallableWhenAttr>();
590 FunDecl->getNameAsString(), PInfo.getVar()->getNameAsString(),
600 FunDecl->getNameAsString(), stateToString(TmpState), BlameLoc);
743 const FunctionDecl *FunDecl = Call->getDirectCallee();
744 if (!FunDecl)
749 if (Call->getNumArgs() == 1 && FunDecl->getNameAsString() == "move" &&
750 FunDecl->isInStdNamespace()) {
755 handleCall(Call, nullptr, FunDecl);
756 propagateReturnType(Call, FunDecl);
821 const FunctionDecl *FunDecl =
823 if (!FunDecl) return;
827 if (!handleCall(Call, Call->getArg(0), FunDecl))
833 handleCall(MCall, MCall->getImplicitObjectArgument(), FunDecl);
835 handleCall(Call, Call->getArg(0), FunDecl);
837 propagateReturnType(Call, FunDecl);