D15532: [Astyle] Add Objective C to list of languages with formatters

Igor Kushnir noreply at phabricator.kde.org
Tue Oct 12 12:36:34 BST 2021


igorkushnir added a comment.


  In D15532#678830 <https://phabricator.kde.org/D15532#678830>, @rjvbb wrote:
  
  > > Is //text/x-objc++src// the canonical name used in macOS or is there some other reason to select one of these names?
  >
  > No idea to be honest, nor how I'd figure that out...
  
  
  A follow-up question then: does Qt use its bundled MIME type database on macOS? If yes, then macOS probably doesn't use such MIME type names.
  
  >> If I understand correctly, this MIME type is currently useless in KDevelop anyway, because it is only included in MIME type lists and never appears in conditions. Is //text/x-objchdr// used in macOS? If yes, how is it distinguished from //text/x-chdr// there?
  > 
  > Again, I can't answer that question. Since Mac OS X the Mac OS chiefly uses file extensions rather than the old type and creator 4char codes that were stored in the resource fork. I rarely use the Finder for filesystem navigation but I'll try to remember to look how it labels, erm, *C* header files.
  >  KDevelop would do good to distinguish ObjC(++) from C(++) header files so it doesn't signal spurious errors when editing one, but it might be able to do that by installing a complementary mimeinfo module that isn't part of the official database.
  > 
  > ObjC headers will typically contain the `@interface` keyword, but that can of course occur quite far into the file. Idem for `@class`.
  
  Yes, it is interesting if Finder ever labels //*.h// files as Objective-C headers - when they start with `#import`, `@interface` or `@class`?
  
  The **Compiled Programming Language Sources** section of Apple's System Declared UTI documentation <https://developer.apple.com/documentation/uniformtypeidentifiers/system_declared_uniform_type_identifiers> contains //cHeader//, //cSource//, //cPlusPlusHeader//, //cPlusPlusSource//, //objectiveCPlusPlusSource// and //objectiveCSource//, but no //objectiveC[PlusPlus]Header//.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D15532

To: rjvbb, #kdevelop, kossebau, kfunk
Cc: igorkushnir, aaronpuchert, kfunk, kossebau, kdevelop-devel, hmitonneau, christiant, glebaccon, domson, antismap, iodelay, alexeymin, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20211012/84393c1e/attachment.htm>


More information about the KDevelop-devel mailing list