| Index: tools/clang/plugins/FindBadConstructsConsumer.cpp
|
| diff --git a/tools/clang/plugins/FindBadConstructsConsumer.cpp b/tools/clang/plugins/FindBadConstructsConsumer.cpp
|
| index af526ecb14622f1bcfc14f921fae74d0472548df..f670a3673ac2d9c05d1f76f690d4960b54b0dc55 100644
|
| --- a/tools/clang/plugins/FindBadConstructsConsumer.cpp
|
| +++ b/tools/clang/plugins/FindBadConstructsConsumer.cpp
|
| @@ -124,6 +124,12 @@ std::string GetAutoReplacementTypeAsString(QualType type) {
|
| result += " const";
|
| if (non_reference_type.isLocalVolatileQualified())
|
| result += " volatile";
|
| + if (type->isReferenceType() && !non_reference_type.isLocalConstQualified()) {
|
| + if (type->isLValueReferenceType())
|
| + result += "&";
|
| + else if (type->isRValueReferenceType())
|
| + result += "&&";
|
| + }
|
| return result;
|
| }
|
|
|
|
|