[clang] 239bcba - Fix [[clang::coro_wrapper]] documentation.

via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 3 19:11:09 PST 2023


Author: Utkarsh Saxena
Date: 2023-12-04T04:11:05+01:00
New Revision: 239bcba65099558e2ec4f57d14ef6ce46b1ae74e

URL: https://github.com/llvm/llvm-project/commit/239bcba65099558e2ec4f57d14ef6ce46b1ae74e
DIFF: https://github.com/llvm/llvm-project/commit/239bcba65099558e2ec4f57d14ef6ce46b1ae74e.diff

LOG: Fix [[clang::coro_wrapper]] documentation.

Added: 
    

Modified: 
    clang/include/clang/Basic/AttrDocs.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index f2c4eb51b443d..b45ec6bbb8d37 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -7547,7 +7547,7 @@ For example,
   Task<int> foo() { return increment(1); } // Error. foo is not a coroutine.
 
   // Fine for a coroutine wrapper to return a CRT.
-  Task<int> [[clang::coro_wrapper]] foo() { return increment(1); }
+  [[clang::coro_wrapper]] Task<int> foo() { return increment(1); }
 
   void bar() {
     // Invalid. This intantiates a function which returns a CRT but is not marked as


        


More information about the cfe-commits mailing list