summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/attr-nonnull.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Apply the nonnull attribute to constructor expressions too.Nick Lewycky2011-03-251-1/+5
| | | | llvm-svn: 128253
* __attribute__((nonnull)) can apply to reference-to-pointerDouglas Gregor2010-12-151-0/+11
| | | | | | parameters. Fixes <rdar://problem/8769025>. llvm-svn: 121864
* Re-work the handling of implicit 'this' arguments and silly GCC-style attributeChandler Carruth2010-11-161-0/+18
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. llvm-svn: 119339
OpenPOWER on IntegriCloud