summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-format
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2017-11-02 12:48:48 +0000
committerEric Liu <ioeric@google.com>2017-11-02 12:48:48 +0000
commit35cbbdd9f4308ec0cc5128b8c4cd2a44538099d3 (patch)
tree2efa5dabac0f6de6263b9fc267cabdb6b1a7297b /clang/tools/clang-format
parent725acb2d91e4aa9fca1c97760c81f3443549626c (diff)
downloadbcm5719-llvm-35cbbdd9f4308ec0cc5128b8c4cd2a44538099d3.tar.gz
bcm5719-llvm-35cbbdd9f4308ec0cc5128b8c4cd2a44538099d3.zip
Fix clang-format CLion integration bug.
CLion's Sax parser threw this error: Failed to parse clang-format XML replacements. Input: <?xml version='1.0'?> <replacements xml:space='preserve' incomplete_format='true' line=89> [...] [org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 66; Open quote is expected for attribute "line" associated with an element type "replacements".] Patch by Justine Tunney (jart@google.com)! llvm-svn: 317205
Diffstat (limited to 'clang/tools/clang-format')
-rw-r--r--clang/tools/clang-format/ClangFormat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/ClangFormat.cpp b/clang/tools/clang-format/ClangFormat.cpp
index e169b9e5854..b7179ffd641 100644
--- a/clang/tools/clang-format/ClangFormat.cpp
+++ b/clang/tools/clang-format/ClangFormat.cpp
@@ -289,7 +289,7 @@ static bool format(StringRef FileName) {
"xml:space='preserve' incomplete_format='"
<< (Status.FormatComplete ? "false" : "true") << "'";
if (!Status.FormatComplete)
- outs() << " line=" << Status.Line;
+ outs() << " line='" << Status.Line << "'";
outs() << ">\n";
if (Cursor.getNumOccurrences() != 0)
outs() << "<cursor>"
OpenPOWER on IntegriCloud