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)
commit374b5aa170ba648e88ba36569b0c0ec698b9a3ef
tree24e9c62a06ff158df53bcade396a74bb5c8394d3
parent83e7f68d39299a8a5ef10189e5ea68f9aef5c5c5
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.

llvm-svn: 219974
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaStmt.cpp
clang/test/SemaCXX/attributed-auto-deduction.cpp