Skip to content

Commit

Permalink
FOLLY_ATTR_CLANG_LIFETIMEBOUND
Browse files Browse the repository at this point in the history
Summary: A preprocessor macro `FOLLY_ATTR_CLANG_LIFETIMEBOUND` wrapping attribute `clang::lifetimebound`, if it is available.

Reviewed By: EscapeZero

Differential Revision: D67314711

fbshipit-source-id: 3683098a6fdb763c6f79f354550ec46d8a603f3e
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Dec 17, 2024
1 parent 7f17656 commit 7d13b57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions folly/CppAttributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@
#define FOLLY_ATTR_GNU_USED
#endif

#if FOLLY_HAS_CPP_ATTRIBUTE(clang::lifetimebound)
#define FOLLY_ATTR_CLANG_LIFETIMEBOUND clang::lifetimebound
#else
#define FOLLY_ATTR_CLANG_LIFETIMEBOUND
#endif

#if FOLLY_HAS_CPP_ATTRIBUTE(clang::coro_await_elidable)
#define FOLLY_ATTR_CLANG_CORO_AWAIT_ELIDABLE clang::coro_await_elidable
#else
Expand Down

0 comments on commit 7d13b57

Please sign in to comment.