]> git.eshelyaron.com Git - emacs.git/commit
C++: Deal with 'using' statements when calculating scope
authorDavid Engster <dengste@eml.cc>
Mon, 18 Nov 2013 22:11:17 +0000 (23:11 +0100)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 17:28:21 +0000 (19:28 +0200)
commit1d09e4c12c782a3488c1ff76eb0955f5fdd26093
tree66dbeabb2a395b11a5b71515a4543126f30ec9cb
parent29a51657a7cb49a4063b40c4f1adbcc81f871e3d
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.cpp