]> granicus.if.org Git - clang/commit
Implement dependent alignment attribute support. This is a bit gross given the
authorChandler Carruth <chandlerc@gmail.com>
Fri, 25 Jun 2010 03:22:07 +0000 (03:22 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 25 Jun 2010 03:22:07 +0000 (03:22 +0000)
commit4ced79f0971592e6e7122037de69ee9ae534ce72
treef864ce489d064cd88454414a40f8a527b873f3ca
parentfba9e8f85b3043da0e045cd653bcba9b6c60e067
Implement dependent alignment attribute support. This is a bit gross given the
current attribute system, but it is enough to handle class templates which
specify parts of their alignment in terms of their template parameters.

This also replaces the attributes test in SemaTemplate with one that actually
tests working attributes instead of broken ones. I plan to add more tests here
for non-dependent attributes in a subsequent patch.

Thanks to John for walking me through some of this. =D

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106818 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Attr.h
lib/Sema/Sema.h
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/attributes.cpp