summaryrefslogtreecommitdiff
path: root/test/SemaCXX/attr-nonnull.cpp
Commit message (Collapse)AuthorAge
* Start checking nonnull (as well as format and argument_with_type_tag) onNick Lewycky2013-01-24
| | | | | | | overloaded binary operators. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173315 91177308-0d34-0410-b5e6-96231b3b80d8
* Make __attribute__((nonnull)) use the general expression evaluator to search forNick Lewycky2013-01-23
| | | | | | | | nulls instead of limiting itself to the language-defined "null pointer constant". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173227 91177308-0d34-0410-b5e6-96231b3b80d8
* Apply the nonnull attribute to constructor expressions too.Nick Lewycky2011-03-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128253 91177308-0d34-0410-b5e6-96231b3b80d8
* __attribute__((nonnull)) can apply to reference-to-pointerDouglas Gregor2010-12-15
| | | | | | | parameters. Fixes <rdar://problem/8769025>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121864 91177308-0d34-0410-b5e6-96231b3b80d8
* Re-work the handling of implicit 'this' arguments and silly GCC-style attributeChandler Carruth2010-11-16
argument indexes. This handles the offsets in a consistent manner for all of the attributes which I saw working with these concepts. I've also added tests for the attribute that motivated this: nonnull. I consolidated the tests for format attributes into one file, and fleshed them out a bit to trigger more of the warning cases. Also improved the quality of some of the diagnostics that occur with invalid argument indices. The only really questionable change here is supporting the implicit this argument for the ownership attribute. I'm not sure it's really a sensible concept there, but implemented the logic for consistency. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119339 91177308-0d34-0410-b5e6-96231b3b80d8