Re: semantic-analyze-possible-completion
Eric Ludlam <[email protected]> Mon, 09 Feb 2015 20:37:41 -0500
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
On 02/03/2015 02:53 PM, Martin Stein wrote: > Hi, > > Trying to understand semantic-analyze-scoped-types, which never returned > anything different than nil for me, I came across > semantic-ctxt-scoped-types, which is only non-nil in c++-mode. I was > unaware that namespaces are an c++-only feature. So the above example > was in a c-file, in c mode... In c++ mode everything works fine as > expected. > > Understanding this also helps to fit Fortran into C structure: For a > function, subroutine or program, which has a contains part, create a > "contains" tag of class type and :type "contains" and return those tags > by overloadable semantic-ctxt-scoped-types. At the moment, functions and > subroutines residing in a contains sections of an encompassing function, > subroutine or program are tags in the members list of this encompassing > tag, and hence the encompassing function, subroutine or program would > act like a hybrid of class 'function and 'type at the same time, which > does not fit well into the current framework. Hi Martin, The core framework for all the semantic analyzer and scope code is stuff I refactor as new languages are brought into the fold. If there is some element in the core that needs a tweak to make the fortran code cleaner, I'd be happy to evaluate and integrate related patches. It sounds like your are making some good progress, which is good to hear. Eric ------------------------------------------------------------------------------ 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/