summaryrefslogtreecommitdiffstats
path: root/test/run.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-12 13:21:41 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-12 15:46:34 (GMT)
commit0a10370aedd3cc08ebe2a8c0909406859058e146 (patch)
treec72c61a0fd5092608a86039fd982943860b57269 /test/run.cmake
parent9a56b84fc1f6def5b26860e4f18353bab6cc88ab (diff)
downloadCastXML-0a10370aedd3cc08ebe2a8c0909406859058e146.zip
CastXML-0a10370aedd3cc08ebe2a8c0909406859058e146.tar.gz
CastXML-0a10370aedd3cc08ebe2a8c0909406859058e146.tar.bz2
Output: Add mangled="" attributes to function and variable decls
The gccxml output format includes mangled="" attributes on almost all elements. Clang only defines mangling for function and variable declarations. Add mangled attributes to castxml output where possible.
Diffstat (limited to 'test/run.cmake')
-rw-r--r--test/run.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/run.cmake b/test/run.cmake
index a123639..fda9f00 100644
--- a/test/run.cmake
+++ b/test/run.cmake
@@ -78,6 +78,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 "mangled=\"[^\"]*\"" "mangled=\"[^\"]+\"" update_xml "${update_xml}")
string(REGEX REPLACE "artificial=\"1\"( throws=\"\")?" "artificial=\"1\"( throws=\"\")?" update_xml "${update_xml}")
string(REGEX REPLACE "size=\"[0-9]+\" align=\"[0-9]+\"" "size=\"[0-9]+\" align=\"[0-9]+\"" update_xml "${update_xml}")
string(REGEX REPLACE "<File id=\"(f[0-9]+)\" name=\"[^\"]*/test/input/([^\"]*)\"/>" "<File id=\"\\1\" name=\".*/test/input/\\2\"/>" update_xml "${update_xml}")