diff options
author | Brad King <brad.king@kitware.com> | 2016-11-10 19:04:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-10 19:51:04 (GMT) |
commit | bd226ccbaf3b9fed9ee31c42cf8a68852287c115 (patch) | |
tree | a83cb805e6f5c65415353fb0861cea6016595dec /test | |
parent | 85211a28e9bdf73a92c9a88e861ae9d055e199f6 (diff) | |
download | CastXML-bd226ccbaf3b9fed9ee31c42cf8a68852287c115.zip CastXML-bd226ccbaf3b9fed9ee31c42cf8a68852287c115.tar.gz CastXML-bd226ccbaf3b9fed9ee31c42cf8a68852287c115.tar.bz2 |
Protect hand-formatted blocks from clang-format
Diffstat (limited to 'test')
-rw-r--r-- | test/expect/gccxml.any.Class-template-recurse.xml.txt | 2 | ||||
-rw-r--r-- | test/input/Class-template-recurse.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/expect/gccxml.any.Class-template-recurse.xml.txt b/test/expect/gccxml.any.Class-template-recurse.xml.txt index 40106de..2a4a214 100644 --- a/test/expect/gccxml.any.Class-template-recurse.xml.txt +++ b/test/expect/gccxml.any.Class-template-recurse.xml.txt @@ -1,6 +1,6 @@ ^<\?xml version="1.0"\?> <GCC_XML[^>]*> - <Variable id="_1" name="start" type="_2" init="" context="_3" location="f1:11" file="f1" line="11" mangled="[^"]+"/> + <Variable id="_1" name="start" type="_2" init="" context="_3" location="f1:13" file="f1" line="13" mangled="[^"]+"/> <Struct id="_2" name="C<void>" context="_3" location="f1:6" file="f1" line="6" members="_4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/> <Constructor id="_4" name="C" context="_2" access="public" location="f1:7" file="f1" line="7" inline="1"/> <Constructor id="_5" name="C" context="_2" access="public" location="f1:6" file="f1" line="6" inline="1" artificial="1"( throw="")?> diff --git a/test/input/Class-template-recurse.cxx b/test/input/Class-template-recurse.cxx index fd702a8..37c73e0 100644 --- a/test/input/Class-template-recurse.cxx +++ b/test/input/Class-template-recurse.cxx @@ -5,7 +5,9 @@ template <typename T> struct B { }; template <typename T> struct C { C() { + /* clang-format off */ static_cast<void>(sizeof(typename B< A<T> >::type)); + /* clang-format on */ } }; C<void> start; |