[PATCH] D49922: [P0936R0] add [[clang::lifetimebound]] attribute
Kim Gräsman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 1 23:11:42 PDT 2018
kimgr added a comment.
Potential typo in the tests
================
Comment at: test/SemaCXX/attr-lifetimebound.cpp:24
+
+ // Do not diagnose non-void return types; they can still be lifetime-bound.
+ long long ptrintcast(int ¶m [[clang::lifetimebound]]) {
----------------
Should this say 'non-ref' instead of 'non-void'?
Repository:
rC Clang
https://reviews.llvm.org/D49922
More information about the cfe-commits
mailing list