[clang-tools-extra] r267290 - clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp: Use raw_string_ostream::str() to flush the buffer explicitly.

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 23 07:54:29 PDT 2016


Author: chapuni
Date: Sat Apr 23 09:54:28 2016
New Revision: 267290

URL: http://llvm.org/viewvc/llvm-project?rev=267290&view=rev
Log:
clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp: Use raw_string_ostream::str() to flush the buffer explicitly.

Modified:
    clang-tools-extra/trunk/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp

Modified: clang-tools-extra/trunk/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp?rev=267290&r1=267289&r2=267290&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp Sat Apr 23 09:54:28 2016
@@ -145,7 +145,7 @@ struct IntializerInsertion {
       Stream << ", " << joined << "()";
       break;
     }
-    return Code;
+    return Stream.str();
   }
 
   InitializerPlacement Placement;




More information about the cfe-commits mailing list