From: Daniel Jasper Date: Sat, 17 Oct 2015 22:44:19 +0000 (+0000) Subject: clang-format: Add test for (properly escaped) XML output. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7162e06e4e5194c95d48fc7e4151491d022330dc;p=clang clang-format: Add test for (properly escaped) XML output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250629 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Format/xmloutput.cpp b/test/Format/xmloutput.cpp new file mode 100644 index 0000000000..d3c5254fc3 --- /dev/null +++ b/test/Format/xmloutput.cpp @@ -0,0 +1,12 @@ +// RUN: clang-format -output-replacements-xml -sort-includes %s > %t.xml +// RUN: FileCheck -strict-whitespace -input-file=%t.xml %s + +// CHECK: #include <b><}} +// CHECK-NEXT: {{ <}} +// CHECK-NEXT: {{ <}} +#include +#include + +int a;int*b;