[PATCH] D63954: Add lifetime categories attributes
Matthias Gehre via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 28 14:40:49 PDT 2019
mgehre added a comment.
We can try to add the annotations to libcxx (which will still take time),
but there are also other standard libraries (libstdc++, MSVC) that
can be used with clang.
Eventually everybody will have lifetime annotations (of course ;-) ),
but in the meantime there seems to be no other way to enable
the analysis on unmodified STL.
My idea would be to maintain a `lifetime-annotations` headers (outside of clang repo?)
with #ifdef magic to add lifetime annotations for major STL variants/versions as a drop-in
to enable lifetime analysis. It's not nice, but only temporary and at least better than requiring
to change your STL to get lifetime analysis.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63954/new/
https://reviews.llvm.org/D63954
More information about the cfe-commits
mailing list