[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 11 01:46:57 PST 2024
================
@@ -1760,6 +1760,10 @@ class Sema final : public SemaBase {
/// Add [[gsl::Pointer]] attributes for std:: types.
void inferGslPointerAttribute(TypedefNameDecl *TD);
+ LifetimeCaptureByAttr *ParseLifetimeCaptureByAttr(const ParsedAttr &AL,
----------------
hokein wrote:
nit: per LLVM code style, function name should start with a lower case letter, `openFile`
Is this function used in other place? I only see it is used in the implementation of `LazyProcessLifetimeCaptureByParams`, it is not necessary to be in the public header.
https://github.com/llvm/llvm-project/pull/111499
More information about the cfe-commits
mailing list