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;


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to