summaryrefslogtreecommitdiffstats
path: root/test/run.cmake
diff options
context:
space:
mode:
authorJörg Wollenschläger <joerg.wollenschlaeger@gmail.com>2015-08-22 20:04:35 (GMT)
committerBrad King <brad.king@kitware.com>2015-08-24 14:27:01 (GMT)
commit8f5ae0e19203b51a6405533139caec1816ea919d (patch)
tree8444ddda1d70469b108927b4bbc1b8a8ecb0e90a /test/run.cmake
parent2e55b356f9ed1a97d3bdfcb981c919b3d4defc7b (diff)
downloadCastXML-8f5ae0e19203b51a6405533139caec1816ea919d.zip
CastXML-8f5ae0e19203b51a6405533139caec1816ea919d.tar.gz
CastXML-8f5ae0e19203b51a6405533139caec1816ea919d.tar.bz2
Output: Add annotate() to more declaration attributes=""
Extend the change from commit e73fba54 (Output: Add annotate() to function declaration attributes="", 2015-08-18) to support record, enum, field, variable, and typedef since gccxml also supported attributes in these.
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 e9911a6..47958b6 100644
--- a/test/run.cmake
+++ b/test/run.cmake
@@ -36,6 +36,7 @@ if(xml)
file(READ "${xml}" actual_xml)
# Filter out arch-specific attributes.
string(REGEX REPLACE "(<(Constructor|Destructor|Method|OperatorMethod|Converter)[^/>]*) attributes=\"__thiscall__\"(/?>)" "\\1\\3" actual_xml "${actual_xml}")
+ string(REGEX REPLACE "(<(Constructor|Destructor|Method|OperatorMethod|Converter)[^/>]*) attributes=\"__thiscall__ ([^/>]+)\"(/?>)" "\\1 attributes=\"\\3\"\\4" actual_xml "${actual_xml}")
else()
set(actual_xml "(missing)")
endif()