File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libc/src/__support/macros Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,17 @@ LIBC_THREAD_MODE_EXTERNAL.
116116// reference to the annotated parameter. Warns if temporaries are passed.
117117//
118118// Example usage:
119- // void add_to_set(std ::string_view a LIBC_LIFETIME_CAPTURE_BY(s),
120- // std ::set<std ::string_view>& s) {
119+ // void add_to_set(cpp ::string_view a LIBC_LIFETIME_CAPTURE_BY(s),
120+ // cpp ::set<cpp ::string_view>& s) {
121121// s.insert(a); // 's' now holds a reference to 'a'
122122// }
123- // // Warns: add_to_set(std ::string(), s); // temporary captured by 's'
123+ // // Warns: add_to_set(cpp ::string(), s); // temporary captured by 's'
124124//
125125// X can be: another parameter name, 'this', 'global', or 'unknown'
126126// Multiple capturing entities: LIBC_LIFETIME_CAPTURE_BY(s1, s2)
127127//
128128// For member functions capturing 'this', apply after function signature:
129- // void capture_self(std ::set<S*>& s) LIBC_LIFETIME_CAPTURE_BY(s);
129+ // void capture_self(cpp ::set<S*>& s) LIBC_LIFETIME_CAPTURE_BY(s);
130130#if __has_cpp_attribute(clang::lifetime_capture_by)
131131#define LIBC_LIFETIME_CAPTURE_BY (X ) [[clang::lifetime_capture_by(X)]]
132132#else
You can’t perform that action at this time.
0 commit comments