llvm-project/clang/test/CXX/expr/expr.unary
Chandler Carruth b4a4326824 Mark that qualifiers can prefix the auto type. This seems to just have
been an oversight, as it definitely works. Every test which changed had
the const written on the LHS of the auto already.

Notably, this also makes things like cpp11-migrate's formation of 'const
auto &' variables much more familiar.

Yes, many people feel that 'const' and other qualifiers belong on the
RHS of the type. I'm not going to argue about that because Clang already
*overwhelming* places the qualifiers on the LHS when it can and on the
RHS when it must. We shouldn't diverge for auto. We should add a tool to
clang-tidy that fixes this in either direction, and then wire up
clang-tidy to tools like cpp11-migrate to fix their placement after
transforms.

llvm-svn: 189769
2013-09-02 19:20:06 +00:00
..
expr.delete Implement access checking for the "delete" operator. Fixes PR9050, 2011-02-01 15:50:11 +00:00
expr.new Mark that qualifiers can prefix the auto type. This seems to just have 2013-09-02 19:20:06 +00:00
expr.sizeof sizeof(void) etc. should be a hard error in C++. 2013-08-13 22:26:42 +00:00
expr.unary.noexcept Fix regression from r184810. 2013-06-25 01:55:41 +00:00
expr.unary.op Implement DR61: Address of ambiguous bound methods should be disallowed 2013-06-11 03:56:29 +00:00