Author: revane
Date: Sat Oct  5 08:31:31 2013
New Revision: 192033

URL: http://llvm.org/viewvc/llvm-project?rev=192033&view=rev
Log:
clang-modernize: Fix clang-apply-replacements invocation bug

The command-line for clang-apply-replacements was being mangled due to an
uninitialized variable. gasp! Now fixed.


Modified:
    clang-tools-extra/trunk/clang-modernize/Core/ReplacementHandling.h

Modified: clang-tools-extra/trunk/clang-modernize/Core/ReplacementHandling.h
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/Core/ReplacementHandling.h?rev=192033&r1=192032&r2=192033&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/Core/ReplacementHandling.h 
(original)
+++ clang-tools-extra/trunk/clang-modernize/Core/ReplacementHandling.h Sat Oct  
5 08:31:31 2013
@@ -22,6 +22,8 @@
 class ReplacementHandling {
 public:
 
+  ReplacementHandling() : DoFormat(false) {}
+
   /// \brief Finds the path to the executable 'clang-apply-replacements'.
   ///
   /// The executable is searched for on the PATH. If not found, looks in the


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to