]> granicus.if.org Git - clang/commit
Improve attribute parsing & tests.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 19 Oct 2008 02:04:16 +0000 (02:04 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 19 Oct 2008 02:04:16 +0000 (02:04 +0000)
commitd3f2c10f881311831a84114179342ff4db55e0c3
treecf9bf67737b249c63f20549e4e18586d35f13c59
parent6dfe2f544a5e601bd5ac1a7e31af17ec3bf1fe01
Improve attribute parsing & tests.
 - Support noreturn on function-typed variables.

 - Extend isFunctionOrMethod to return true for K&R functions and
   provide hasFunctionProto to check if a decl has information about
   its arguments. This code needs some serious cleaning, but works.

 - Add/improve test cases for noreturn and unused.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57778 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-noreturn.c [new file with mode: 0644]
test/Sema/attr-unused.c [new file with mode: 0644]
test/SemaObjC/method-attributes.m