r306409 - [clang-format] Fix a clang-tidy warning, NFC

Krasimir Georgiev via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 27 07:07:45 PDT 2017


Author: krasimir
Date: Tue Jun 27 07:07:45 2017
New Revision: 306409

URL: http://llvm.org/viewvc/llvm-project?rev=306409&view=rev
Log:
[clang-format] Fix a clang-tidy warning, NFC

Modified:
    cfe/trunk/lib/Format/NamespaceEndCommentsFixer.cpp

Modified: cfe/trunk/lib/Format/NamespaceEndCommentsFixer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/NamespaceEndCommentsFixer.cpp?rev=306409&r1=306408&r2=306409&view=diff
==============================================================================
--- cfe/trunk/lib/Format/NamespaceEndCommentsFixer.cpp (original)
+++ cfe/trunk/lib/Format/NamespaceEndCommentsFixer.cpp Tue Jun 27 07:07:45 2017
@@ -174,7 +174,7 @@ tooling::Replacements NamespaceEndCommen
         AllNamespaceNames = "::" + NamespaceName + AllNamespaceNames;
         continue;
       }
-      NamespaceName += std::move(AllNamespaceNames);
+      NamespaceName += AllNamespaceNames;
       CompactedNamespacesCount = 0;
       AllNamespaceNames = std::string();
     }




More information about the cfe-commits mailing list