From 7162e06e4e5194c95d48fc7e4151491d022330dc Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Sat, 17 Oct 2015 22:44:19 +0000 Subject: [PATCH] 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 --- test/Format/xmloutput.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Format/xmloutput.cpp 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; -- 2.40.0