diff options
author | Brad King <brad.king@kitware.com> | 2014-02-28 20:09:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-21 21:10:43 (GMT) |
commit | 32b50da7a2d85b1d0204ac05260e104a7094ca74 (patch) | |
tree | face81e28e000684d1f4c71638ed3318ef1821ec /test/input | |
parent | 4f01341b13d21eafd476a700632fe6d941bea57c (diff) | |
download | CastXML-32b50da7a2d85b1d0204ac05260e104a7094ca74.zip CastXML-32b50da7a2d85b1d0204ac05260e104a7094ca74.tar.gz CastXML-32b50da7a2d85b1d0204ac05260e104a7094ca74.tar.bz2 |
Output: Handle using declarations and directives
Honor both for purposes of the start node lookup. Walk through using
declarations (Clang UsingShadowDecl) to output the referenced
declarations in their original context. Do not include names brought
into a context by a using declaration or directive in the members of
that context.
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/using-declaration-ns.cxx | 4 | ||||
-rw-r--r-- | test/input/using-declaration-start.cxx | 4 | ||||
-rw-r--r-- | test/input/using-directive-ns.cxx | 6 | ||||
-rw-r--r-- | test/input/using-directive-start.cxx | 4 |
4 files changed, 18 insertions, 0 deletions
diff --git a/test/input/using-declaration-ns.cxx b/test/input/using-declaration-ns.cxx new file mode 100644 index 0000000..1629a8b --- /dev/null +++ b/test/input/using-declaration-ns.cxx @@ -0,0 +1,4 @@ +class A; +namespace start { + using ::A; +} diff --git a/test/input/using-declaration-start.cxx b/test/input/using-declaration-start.cxx new file mode 100644 index 0000000..9d732d0 --- /dev/null +++ b/test/input/using-declaration-start.cxx @@ -0,0 +1,4 @@ +namespace N { + class start; +} +using N::start; diff --git a/test/input/using-directive-ns.cxx b/test/input/using-directive-ns.cxx new file mode 100644 index 0000000..937b851 --- /dev/null +++ b/test/input/using-directive-ns.cxx @@ -0,0 +1,6 @@ +namespace N { + class A; +} +namespace start { + using namespace N; +} diff --git a/test/input/using-directive-start.cxx b/test/input/using-directive-start.cxx new file mode 100644 index 0000000..1e69a1b --- /dev/null +++ b/test/input/using-directive-start.cxx @@ -0,0 +1,4 @@ +namespace A { + class start; +} +using namespace A; |