D15532: [Astyle] Add Objective C to list of languages with formatters
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Thu Sep 20 13:30:06 BST 2018
kossebau added a comment.
In D15532#328812 <https://phabricator.kde.org/D15532#328812>, @rjvbb wrote:
> > ... shared-mime-info has this questionable inheritage for C++ and Objective-C from C.
>
> I don't think that's so questionable; doesn't the C++ entry also inherit from C? That would be logical at least historically speaking (and properly written C can still be compiled as C++ AFAIK).
C is not a subset of C++ (let me point to Mr. Stroustrup who should know it :) https://web.archive.org/web/20080617183013/http://www.research.att.com/~bs/bs_faq.html#C-is-subset )
The inheritance in sthe shared-mime-info is actually done as a hacky workaround for pattern-based magic failing to properly detect the MIME type, see
https://bugs.freedesktop.org/show_bug.cgi?id=6743
> No, I think that as with all situations where inheritance is at play, one needs to work backwards, matching the most "evolved" choices first ...
Agreed, that's what my current patch tries to do.
REPOSITORY
R32 KDevelop
REVISION DETAIL
https://phabricator.kde.org/D15532
To: rjvbb, #kdevelop, kossebau, kfunk
Cc: kfunk, pino, kossebau, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180920/35a243f5/attachment.html>
More information about the KDevelop-devel
mailing list