From: Jake C. <co...@pp...> - 2003-11-28 19:45:15
|
>>>>> "MS" == Martin Stjernholm <ma...@ly...> writes: MS> I will work on the core so that it's possible to configure CC Mode to MS> handle Qt code well too. I don't think it's ok that people need to MS> patch CC Mode to make it behave in their code. Great! If you know when that's done, I'll be happy to test. I use the cvs version of cc-mode but don't update it unless I need something I am missing. MS> I'd be happy to accept lineup functions that fixes whatever needs MS> fixing to line up Qt code according to some canonic format, so that MS> every Qt user doesn't need to fix that himself. Lineup functions are MS> well separated and entirely optional, so it's not a problem that MS> they're more specific, as opposed to new syntactic symbols. I would MS> however prefer to keep them a notch above project-specificness too, MS> like MS> "Line up lines that matches `lineup-foo-regexp' as follows ..." MS> instead of MS> "Line up lines that contain the Qt macros Q_OBJECT, Q_FOO, Q_BAR, MS> ... as follows ..." MS> (That also has the nice side-effect that things get more descriptive MS> names that explain what they actually do, rather than where the author MS> expected them to be used.) I'm not nearly good enough with elisp to do this. If you fix the core to handle the missing semicolons, will that pretty much solve the problem of the Qt macros? MS> I also wouldn't mind adding a specific style for Qt code, provided MS> there's some kind of generally accepted coding style. It doesn't have MS> to be from a canonical style guide, just, say, the style used for all MS> the examples in the manual, or something else that makes most Qt MS> hackers adopt it. There really is not special style for Qt code IMHO. Since Qt is really just an API, we justuse standard C++ coding style conventions (each according to his own) for coding. Qt has some extensions that are popularly used and that's why it's great that cc-mode has support for it (i.e., special access keywords, already supported, and QT macros in class declarations, which will be supported eventually). But I would not go so far as to say that we have a special style. -- Jake Colman Principia Partners LLC Phone: (201) 209-2467 Harborside Financial Center Fax: (201) 946-0320 902 Plaza Two E-mail: co...@pp... Jersey City, NJ 07311 www.principiapartners.com |