[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 4ab930b 225/316: C++: Deal with
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 4ab930b 225/316: C++: Deal with 'using' statements when calculating scope |
Date: |
Fri, 27 Jan 2017 20:03:42 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 4ab930bc8617be1eca7492ec85471d37b6d4c9d5
Author: David Engster <address@hidden>
Commit: Edward John Steere <address@hidden>
C++: Deal with 'using' statements when calculating scope
* semantic/bovine/c.el (semantic-ctxt-scoped-types): Go through all
tags around point and search them for using statements. Before, we
skipped the last one thinking that it would have to be function, but
it could also be a type.
* semantic/scope.el (semantic-completable-tags-from-type): When
creating the list of completable types, pull in types which are
referenced through 'using' statements.
* tests/cedet/semantic/test/manual/cedet/testusing.cpp:
* tests/cedet/semantic/test/manual/cedet/testusing.hh: Add tests for
the above.
---
test/manual/cedet/cedet/semantic/tests/testusing.hh | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/test/manual/cedet/cedet/semantic/tests/testusing.hh
b/test/manual/cedet/cedet/semantic/tests/testusing.hh
index 61b5d08..471891a 100644
--- a/test/manual/cedet/cedet/semantic/tests/testusing.hh
+++ b/test/manual/cedet/cedet/semantic/tests/testusing.hh
@@ -123,6 +123,22 @@ namespace outer {
}
}
+// Namespace which pulls in one of its own nested namespaces
+namespace first {
+ class AAA1;
+ namespace second {
+ class AAA2;
+ }
+ // Elevate nested namespace into first one
+ using namespace second;
+}
+
+namespace third {
+ using namespace first;
+ class AAA3;
+}
+
+
// Elevate the first struct into 'outer'
// so that we can access it via 'outer::StructNested'
namespace outer {
- [Emacs-diffs] scratch/merge-cedet-tests 9b72617 282/316: Don't set :filename if it's already set, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 9b72617 282/316: Don't set :filename if it's already set, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests bff505d 132/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 5b8af47 283/316: * tests/cit-externaldb.el: Fix requires., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests af4eb43 149/316: Additions to generic project testing, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 0caf48a 302/316: Improve test output, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c2fada4 230/316: Force srecode repo location and add decorations to debug output, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests fb82965 136/316: Test `this' from in inline member functions, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6bbf499 171/316: (cit-srec): New require (cedet-integ-test): Call srec test., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a86650d 198/316: Use `cedet-version' instead of `cedet-version-print', Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e076b36 177/316: Set the auto-add-method to always during test, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 4ab930b 225/316: C++: Deal with 'using' statements when calculating scope,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 63dbe0c 276/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ebff99d 215/316: Another 'using namespace' fix, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 38d59cb 207/316: Tests: Add ERT test for the C Bovinator, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 853dd10 259/316: New test C file for linux., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9ab6e1b 270/316: Emacs Lisp support for cedet integration tests., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 743c553 294/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests cc6e417 123/316: Improve test utilities re complation and deletion, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 975468f 275/316: Add header comments and provide., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 29a5165 216/316: C/C++: Parse 'using' statements in the correct order., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a93bc4a 292/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/27