BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

JetBrains CLion Adds Support for Swift on Linux and OS X

| by Sergio De Simone Follow 5 Followers on Dec 23, 2015. Estimated reading time: 1 minute |

Thanks to Apple open sourcing Swift compiler and libraries earlier this month, JetBrains added support for Swift to its cross-platform IDE, CLion, running both on Linux and OS X.

In order to be able to use Swift with CLion, developers are required to install a CLion’s plugin and the Swift toolchain. Once the Swift toolchain is properly setup, developers can create a Swift project using the provided CMake template.

CLion’s Swift plugin includes support for:

  • Parsing/resolving classes in project and standard library;
  • Code highlighting and completion;
  • Code formatter with Swift-specific style settings;
  • Visual debugging based on LLVM, including values and type rendering, and expression evaluation.

JetBrains is also maker of AppCode, a standalone IDE aimed to iOS and OS X development that already included support for Swift. AppCode is only available for the OS X platform, so it is not an option for Linux developers.

According to JetBrains’ Anastasia Kazakova, CLion’s plugin uses JetBrains’ own AppCode parser for the Swift language, thus not relying on the compiler’s, due to its better integration with their IDE for tasks like quickly building a full-project symbol index, supporting refactoring, etc. Indeed, says Kazakova, one of the reason why the Swift plugin was added to CLion and not to IntelliJ IDEA, is that CLion and AppCode already had a lot of things in common, and this made supporting Swift easier. She also remarked that at the moment JetBrains have no plans to introduce support for Swift to IntelliJ IDEA.

CLion’s Swift plugin is available with CLion 1.5 Early Access Program. It is worth noting that build 144.2151.8 for Linux is accidentally missing the LLDBFrontend, which can be downloaded separately.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT