Re: semantic-analyze-current-context for fortran functions and subroutine

Martin Stein <[email protected]> Thu, 05 Feb 2015 23:13:02 +0100
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
Just to try it out I added a new class 
semantic-analyze-context-subroutine with methods for type-constraint and 
show and overloaded semantic-analyze-current-context (well mostly I 
copied the default routine and added a cond branch for the subroutine). 
Works fine, except for having an almost complete copy of this analyze beast.

I should mention that even so it is sometimes rather difficult and 
tedious to navigate through the semantic code base, it is a great 
framework for adding support for a new language.


BTW-1: There is a semantic-analyze-context-return class, but not in use. 
And in fact completion with type matching for return in C does not seem 
to work, it just offers everything, it seems.

BTW-2: I also saw that eventually I will need to overload some more 
functions relying on regexp matching or forward-sexp (e.g. 
semantic-ctxt-current-symbol), otherwise those nasty fortran 
continuation lines are not dealt with properly (giving a wrong context...).


Martin

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/