diff options
author | Brad King <brad.king@kitware.com> | 2015-08-18 17:52:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-18 19:12:18 (GMT) |
commit | e73fba54fd7347b94a6951903eac8479495654f2 (patch) | |
tree | fe8e1ebc6975072b83e0689414ebc40cd1998c67 /test/run.cmake | |
parent | c7c836f667300470f12820fe9128e10afbbe2267 (diff) | |
download | CastXML-e73fba54fd7347b94a6951903eac8479495654f2.zip CastXML-e73fba54fd7347b94a6951903eac8479495654f2.tar.gz CastXML-e73fba54fd7347b94a6951903eac8479495654f2.tar.bz2 |
Output: Add annotate() to function declaration attributes=""
While CastXML cannot support the `gccxml()` attribute because Clang does
not define it, we can support the `annotate()` attribute that Clang
provides for arbitrary string annotations. This should fill the same
use case as the `gccxml()` attribute did for clients.
GitHub-Issue: 25
Diffstat (limited to 'test/run.cmake')
-rw-r--r-- | test/run.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/run.cmake b/test/run.cmake index 1b973b3..e9911a6 100644 --- a/test/run.cmake +++ b/test/run.cmake @@ -84,6 +84,7 @@ if(msg) set(update_xml "${actual_xml}") string(REGEX REPLACE "^<\\?xml version=\"1.0\"\\?>" "^<\\\\?xml version=\"1.0\"\\\\?>" update_xml "${update_xml}") string(REGEX REPLACE "<GCC_XML[^>]*>" "<GCC_XML[^>]*>" update_xml "${update_xml}") + string(REGEX REPLACE "([()])" "\\\\\\1" update_xml "${update_xml}") string(REGEX REPLACE "mangled=\"[^\"]*\"" "mangled=\"[^\"]+\"" update_xml "${update_xml}") string(REGEX REPLACE "artificial=\"1\"( throw=\"\")?" "artificial=\"1\"( throw=\"\")?" update_xml "${update_xml}") string(REGEX REPLACE "size=\"[0-9]+\" align=\"[0-9]+\"" "size=\"[0-9]+\" align=\"[0-9]+\"" update_xml "${update_xml}") |