diff options
author | Brad King <brad.king@kitware.com> | 2015-05-15 19:51:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-15 19:51:25 (GMT) |
commit | d741c9e4e56ff43dc35603327f1a8d30c8bb167c (patch) | |
tree | 6b9cc06532204d3ff7c8b5fa751cbef4e976ec83 /test/CMakeLists.txt | |
parent | 5587062f5f894d7b2d7a61679a495535db0a8924 (diff) | |
download | CastXML-d741c9e4e56ff43dc35603327f1a8d30c8bb167c.zip CastXML-d741c9e4e56ff43dc35603327f1a8d30c8bb167c.tar.gz CastXML-d741c9e4e56ff43dc35603327f1a8d30c8bb167c.tar.bz2 |
Output: Place inline namespace members in containing namespace
An inline namespace affects the linkage of its members but for APIs
the members are effectively in the containing namespace. Generate
output as if they were really in the containing namespace and do
not generate a Namespace element for an inline namespace.
If --castxml-start names an inline namespace simply ignore it to avoid
dumping a Namespace element for it. One can argue this is valid since
the inline namespace should not normally be named in API usage.
Set our printing policy to avoid showing the inline namespace component
automatically. Note that expressions in the source code that hard-code
the inline namespace name will still be preserved and show the inline
namespace when printed (e.g. Variable init="" attribute expressions).
Suggested-by: Michka Popoff <michkapopoff@gmail.com>
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 12f3fe5..9240aff 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -195,6 +195,9 @@ castxml_test_gccxml(Namespace-Class-template-members) castxml_test_gccxml(Namespace-Function-template-members) castxml_test_gccxml(Namespace-empty) castxml_test_gccxml(Namespace-extern-C-members) +castxml_test_gccxml(Namespace-inline) +castxml_test_gccxml(Namespace-inline-start) +castxml_test_gccxml(Namespace-inline-template) castxml_test_gccxml(Namespace-repeat) castxml_test_gccxml(Namespace-repeat-start) castxml_test_gccxml(OffsetType) |