]> granicus.if.org Git - clang/commit
Sema: handle additional case of qualified types
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 16 Oct 2014 22:42:53 +0000 (22:42 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 16 Oct 2014 22:42:53 +0000 (22:42 +0000)
commitdc6d797fc1dcf1a26aceaf7422d0f5833108668c
treedb605e4bcd7e307878d78020e113c3e6b98c4ca2
parent37b2d70b2ffbbafaf74427628e5d5c7b94b2498c
Sema: handle additional case of qualified types

A second instance of attributed types escaped the previous change, identified
thanks to Richard Smith!  When deducing the void case, we would also assume that
the type would not be attributed.  Furthermore, properly handle multiple
attributes being applied to a single TypeLoc.

Properly handle this case and future-proof a bit by ignoring parenthesis
further.  The test cases do use the additional parenthesis to ensure that this
case remains properly handled.

Addresses post-commit review comments from Richard Smith to SVN r219851.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219974 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/attributed-auto-deduction.cpp