[PATCH] D49511: [Sema/Attribute] Check for noderef attribute
Leonard Chan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 31 15:42:34 PDT 2018
leonardchan updated this revision to Diff 158407.
leonardchan marked 6 inline comments as done.
leonardchan added a comment.
- Added tests for checking that `noderef` can only be used for C style pointers and arrays (not usable for references or ObjC pointers)
- Added warnings for dereferencing a noderef expression where we cannot trace back the original declrefexpr.
- Added warning for adding `noderef` on a type that `noderef` cannot be attatched to.
- Added warning group.
- Use SmallPtrSet instead of std::unordered_set
Repository:
rC Clang
https://reviews.llvm.org/D49511
Files:
include/clang/AST/Type.h
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/AST/Type.cpp
lib/AST/TypePrinter.cpp
lib/Parse/ParseExpr.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprMember.cpp
lib/Sema/SemaType.cpp
test/Frontend/noderef.c
test/Frontend/noderef_on_non_pointers.cpp
test/Frontend/noderef_on_non_pointers.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49511.158407.patch
Type: text/x-patch
Size: 28116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180731/8beba071/attachment-0001.bin>
More information about the cfe-commits
mailing list