[clang-tools-extra] r174502 - Add xml:space='preserve' in order to correctly preserve whitespace.
Manuel Klimek
klimek at google.com
Wed Feb 6 04:40:01 PST 2013
Author: klimek
Date: Wed Feb 6 06:40:01 2013
New Revision: 174502
URL: http://llvm.org/viewvc/llvm-project?rev=174502&view=rev
Log:
Add xml:space='preserve' in order to correctly preserve whitespace.
Modified:
clang-tools-extra/trunk/clang-format/ClangFormat.cpp
Modified: clang-tools-extra/trunk/clang-format/ClangFormat.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-format/ClangFormat.cpp?rev=174502&r1=174501&r2=174502&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-format/ClangFormat.cpp (original)
+++ clang-tools-extra/trunk/clang-format/ClangFormat.cpp Wed Feb 6 06:40:01 2013
@@ -108,7 +108,7 @@ static void format() {
}
tooling::Replacements Replaces = reformat(getStyle(), Lex, Sources, Ranges);
if (OutputXML) {
- llvm::outs() << "<?xml version='1.0'?>\n<replacements>\n";
+ llvm::outs() << "<?xml version='1.0'?>\n<replacements xml:space='preserve'>\n";
for (tooling::Replacements::const_iterator I = Replaces.begin(),
E = Replaces.end();
I != E; ++I) {
More information about the cfe-commits
mailing list