This revision was automatically updated to reflect the committed changes.
Closed by commit rGfa0320dd8d5a: Add ParsedAttrInfo::handleDeclAttribute
(authored by john.brawn).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D31342/new/
https://reviews.llv
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D31342/new/
https://reviews.llvm.org/D31342
___
cfe-commits mailing lis
john.brawn updated this revision to Diff 251113.
john.brawn added a comment.
Use an enum for the return value.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D31342/new/
https://reviews.llvm.org/D31342
Files:
clang/docs/ClangPlugins.rst
clang/docs/InternalsManual.rst
clang/include/
aaron.ballman added inline comments.
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:6701-6707
if (!AL.isStmtAttr()) {
// Type attributes are handled elsewhere; silently move on.
assert(AL.isTypeAttr() && "Non-type attribute not handled");
break;
}
john.brawn marked an inline comment as done.
john.brawn added inline comments.
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:6701-6707
if (!AL.isStmtAttr()) {
// Type attributes are handled elsewhere; silently move on.
assert(AL.isTypeAttr() && "Non-type attribut
aaron.ballman added inline comments.
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:6701-6707
if (!AL.isStmtAttr()) {
// Type attributes are handled elsewhere; silently move on.
assert(AL.isTypeAttr() && "Non-type attribute not handled");
break;
}
john.brawn marked 3 inline comments as done.
john.brawn added inline comments.
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:6701-6707
if (!AL.isStmtAttr()) {
// Type attributes are handled elsewhere; silently move on.
assert(AL.isTypeAttr() && "Non-type attribut
aaron.ballman added inline comments.
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:6701-6707
if (!AL.isStmtAttr()) {
// Type attributes are handled elsewhere; silently move on.
assert(AL.isTypeAttr() && "Non-type attribute not handled");
break;
}
john.brawn updated this revision to Diff 247681.
john.brawn added a comment.
Update based on review comments.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D31342/new/
https://reviews.llvm.org/D31342
Files:
clang/docs/ClangPlugins.rst
clang/docs/InternalsManual.rst
clang/include/c
john.brawn marked 6 inline comments as done.
john.brawn added inline comments.
Comment at: clang/docs/ClangPlugins.rst:89
+The members of ``ParsedAttrInfo`` that a plugin attribute must define are:
+ * ``AttrKind``, which must be set to ``ParsedAttr::NoSemaHandlerAttribute``.
+ *
aaron.ballman added inline comments.
Comment at: clang/docs/ClangPlugins.rst:105
+ target.
+
Putting it all together
It might also be nice to link to the example code from D31343 from the
documentation to help get users started. e.g., "To see a working exampl
aaron.ballman added inline comments.
Comment at: clang/docs/ClangPlugins.rst:89
+The members of ``ParsedAttrInfo`` that a plugin attribute must define are:
+ * ``AttrKind``, which must be set to ``ParsedAttr::NoSemaHandlerAttribute``.
+ * ``Spellings``, which must be populated wi
john.brawn updated this revision to Diff 246987.
john.brawn added a comment.
Update based on review comments.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D31342/new/
https://reviews.llvm.org/D31342
Files:
clang/docs/ClangPlugins.rst
clang/docs/InternalsManual.rst
clang/include/c
aaron.ballman added a reviewer: rsmith.
aaron.ballman added a subscriber: rsmith.
aaron.ballman added a comment.
Adding @rsmith for questions about stability guarantees.
Comment at: clang/docs/ClangPlugins.rst:74
+
+ class ExampleAttrInfo : public ParsedAttrInfo {
+ public:
-
john.brawn marked 2 inline comments as done.
john.brawn added inline comments.
Comment at: clang/docs/ClangPlugins.rst:74
+
+ class ExampleAttrInfo : public ParsedAttrInfo {
+ public:
aaron.ballman wrote:
> We should be documenting the fields of `ParsedAttrInfo
aaron.ballman added inline comments.
Comment at: clang/docs/ClangPlugins.rst:74
+
+ class ExampleAttrInfo : public ParsedAttrInfo {
+ public:
We should be documenting the fields of `ParsedAttrInfo` that the user would be
interacting with. We should also consid
john.brawn updated this revision to Diff 239299.
john.brawn edited the summary of this revision.
john.brawn added reviewers: erichkeane, aaron.ballman, rjmccall.
john.brawn set the repository for this revision to rG LLVM Github Monorepo.
john.brawn added a subscriber: cfe-commits.
john.brawn added
17 matches
Mail list logo