summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-09-02 19:20:06 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-09-02 19:20:06 +0000
commit4d4032206c9f966d991c73000e8816b910fb2fd7 (patch)
treef02fb32c166635193c4567d9b0b5b23a0c53c11f /lib/CodeGen/CGExpr.cpp
parent4e65c98f67b80a7f85ecd5b550a5e10a834f702c (diff)
downloadclang-4d4032206c9f966d991c73000e8816b910fb2fd7.tar.gz
clang-4d4032206c9f966d991c73000e8816b910fb2fd7.tar.bz2
clang-4d4032206c9f966d991c73000e8816b910fb2fd7.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions