Re: Is there a way to locally parse from point to the outer most scope, or just current buffer?
Tu Do <[email protected]> Wed, 28 Jan 2015 22:40:14 +0700
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <CAOEd9j=o0GyAW4PtJDBXsE2NQnM_nn7=KonqhYhAsyjzhrkr7Q@mail.gmail.com> |
With regard to the refactoring issue, there's more to it than simple renaming semantically. It's 2015 and people are excited about these refactoring features in Visual Studio: http://blogs.msdn.com/b/vcblog/archive/2014/11/14/all-about-c-refactoring-in-visual-studio-2015-preview.aspx . Currently, I already implemented these features: implement all functions (virtual and non-virtual as well as constructor and destructor) in a class in a header files, convert a function implementation into a function prototype, convert function <--> function pointer, convert function pointer to typedef, move a semantic unit (i.e. move function/variables) to another file. Many of these little things are perfectly possible with Semantic, yet there's no satisfiable solution rather than some simple regex hack to the above problem. I hope that after introducing these features, people will accept and adopt CEDET more. Currently, they see CEDET as something opaque and time consuming. Creating these features with it is pleasure, compare with when I was using Xtext. I also have some questions: - I see that Semantic has functions related to scope. What actually is scope in Semantic? How do I access and use it? - Is there a command that parse only current buffer, not recursively parse the included files. Is this command possible: semanticdb-file-table-object?. It seems that when using semantic-symref, it also tries to parse the included files in a buffer. Thanks, Tu. ------------------------------------------------------------------------------ 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/ _______________________________________________ Cedet-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cedet-devel