]> granicus.if.org Git - clang/commit
Reverse the order of types in the reference dropping qualifiers error.
authorRichard Trieu <rtrieu@google.com>
Fri, 15 May 2015 22:07:49 +0000 (22:07 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 15 May 2015 22:07:49 +0000 (22:07 +0000)
commit9d6c94a79f96beb1681b51616af8356748638184
treec40d69b5403086bcfb8e7d52e737bfcfb32b6091
parent2d7c006c4c79211b455ac53c9c18a51281dbcd0b
Reverse the order of types in the reference dropping qualifiers error.

The error has the form ... 'int' ... 'const int' ... dropped qualifiers.  At
first glance, it appears that the const qualifier is added.  Reverse the types
so that the second type is less qualified than the first.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237482 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-0x.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-var.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp
test/Misc/diag-template-diffing.cpp
test/SemaCXX/builtins-arm.cpp
test/SemaCXX/references.cpp