Author: Tyker Date: 2020-10-27T09:49:33+01:00 New Revision: 2618247c61c25cf9bd4cb315ee51cff2b3ab3add
URL: https://github.com/llvm/llvm-project/commit/2618247c61c25cf9bd4cb315ee51cff2b3ab3add DIFF: https://github.com/llvm/llvm-project/commit/2618247c61c25cf9bd4cb315ee51cff2b3ab3add.diff LOG: Correct examples after d3205bbca3e0002d76282878986993e7e7994779 Added: Modified: clang/examples/AnnotateFunctions/AnnotateFunctions.cpp Removed: ################################################################################ diff --git a/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp b/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp index 1724704fe124..d872020c2d8a 100644 --- a/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp +++ b/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp @@ -32,8 +32,8 @@ class AnnotateFunctionsConsumer : public ASTConsumer { return true; for (auto D : DG) if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) - FD->addAttr(AnnotateAttr::CreateImplicit(FD->getASTContext(), - "example_annotation")); + FD->addAttr(AnnotateAttr::CreateImplicit( + FD->getASTContext(), "example_annotation", nullptr, 0)); return true; } }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits