void ValuePrinterSynthesizer::Transform() { if (getTransaction()->getCompilationOpts().ValuePrinting == CompilationOptions::VPDisabled) return; if (!tryAttachVP(getTransaction()->getWrapperFD())) return setTransaction(0); // On error set to NULL. }
ASTTransformer::Result ValuePrinterSynthesizer::Transform(clang::Decl* D) { if (getCompilationOpts().ValuePrinting == CompilationOptions::VPDisabled) return Result(D, true); FunctionDecl* FD = cast<FunctionDecl>(D); assert(utils::Analyze::IsWrapper(FD) && "Expected wrapper"); if (tryAttachVP(FD)) return Result(FD, true); return Result(0, false); }