]> granicus.if.org Git - clang/commit
Walk the decls looking for the last one that has an attribute. We do have to walk
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 2 May 2012 20:36:57 +0000 (20:36 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 2 May 2012 20:36:57 +0000 (20:36 +0000)
commit548d17c977959a5ed395ea1a407901f1314e575c
treeefcf7cdd9e9f75bfc5a2220dc0f50e11818ce56b
parent51c8bac81e103f334f0dafb1bf2d4c335ac3a28b
Walk the decls looking for the last one that has an attribute. We do have to walk
them, otherwise we cannot produce an error for both

struct HIDDEN test4; // canonical
struct test4;
struct DEFAULT test4;

and

struct test5; // canonical
struct HIDDEN test5;
struct DEFAULT test5;

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156016 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-visibility.c