c.by: Fix parsing of dereferences

(opt-brackets-after-symbol): New.
(multi-stage-dereference): Use it.  Add rules for explicit matching
the last dereference.  We cannot just juse 'namespace-symbol' as a
single rule, since this would match too greedy and mess with parsing
default values of variables.
(cit-remove-and-do-shared-lib): Remember buffer to switch to.
Add test for parsing local variables

* tests/cedet/semantic/tests/testlocalvars.cpp: New file.
* tests/cedet/semantic/tests/Project.ede: Add above.
* tests/cedet/semantic/tests/Makefile: Regenerate.
* tests/cedet/semantic/ia-utest.el (semantic-ia-utest-file-list): Add
  new test file.
Fix typo in last commit.
(semantic-analyze-find-tag-sequence): Add support for 5th FLAGS argument.
(srecode-semantic-handle-:java): Fix case when an EDE project didn't
support java paths.
* lisp/cedet/semantic/analyze.el:
(semantic-analyze-find-tag-sequence-default): If first entry in
sequence is the only one, apply tagclass filter.
(semantic-analyze-princ-sequence): Show slot even if empty.
* tests/cedet/semantic/ia-utest.el:
(semantic-ia-utest-file-list): Add testvarnames.java.
* tests/cedet/semantic/tests/Project.ede:
("semantic/tests"): Add testvarnames.java
* tests/cedet/semantic/tests/testvarnames.java: New test file
(Tests_MISC): Regenerate
(semantic-dependency-tag-file): Fix typo in message.