summaryrefslogtreecommitdiffstats
path: root/test/input/using-directive-start.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-28 20:09:08 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-21 21:10:43 (GMT)
commit32b50da7a2d85b1d0204ac05260e104a7094ca74 (patch)
treeface81e28e000684d1f4c71638ed3318ef1821ec /test/input/using-directive-start.cxx
parent4f01341b13d21eafd476a700632fe6d941bea57c (diff)
downloadCastXML-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/using-directive-start.cxx')
-rw-r--r--test/input/using-directive-start.cxx4
1 files changed, 4 insertions, 0 deletions
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;