Rate This App/Post:
Clion is a powerful IDE helps you develop in C and C++ on Linux, OS X, and Windows, enhancing your productivity with a smart editor, code quality assurance, automated refactorings, and deep integration with CMake build system. You may also like AppCode
- Smart C and C++ editor
Thanks to native C and C++ support, including C++11 standard, libc++ and Boost, CLion knows your code through and through and takes care of the routine while you focus on the important things.
Instantly navigate to a symbol’s declaration or context usages, search through the whole project for a class, file or symbol by its name, find your way through the code base with structure and hierarchical views.
- Code generation
Add class members, override/implement functions, generate constructors/destructors, getters/setters, equality, relational and stream output operators, wrap a block of code with a statement, or generate a declaration from actual usage – all via simple keyboard shortcuts.
Rename symbols, move members up/down the hierarchy, change function signature, and be sure the client’s automated refactorings will accurately propagate the appropriate changes throughout your code.
- CLion 2019.2 provides more assistance to Embedded Developers and improves the general debugging abilities across several important aspects. The editor now has Parameter Name hints and it has improved code analysis capabilities, bringing back an updated check for ‘Unused Includes’. This all is accompanied with IDE performance improvements and a couple of huge changes from the IntelliJ Platform.
Debug with GDB Server:
On-Chip debugging with GDB Server:
- If it’s possible to debug on the microcontroller of your choice with a GDB Server, you can now do it from CLion using a special Embedded GDB Server Run/Debug configuration. It covers OpenOCD, ST-Link GDB Servers, Segger J-Link GDB Server, QEMU, and many other specific GDB Servers.
- Create a configuration, providing a path to GDB Server, arguments to run the server, and other appropriate settings, and you are all set and ready to debug on-chip from CLion!
- Peripheral View for ARM Devices
- When debugging on-chip, it’s crucial to have the ability to view the peripherals. In CLion, this view is now available for two types of Run/Debug configurations: Embedded GDB Server and OpenOCD Download & Run. In both cases, a Peripherals tab appears in the debug tool window when you start debugging. Load the appropriate .svd file for your board and select the active peripherals you need to see.
- Line breakpoints
- Pending, resolved, and invalid breakpoints
- CLion 2019.2 now distinguishes three types of line breakpoints:
- Pending: Line breakpoint is out of the debugging session, which means the session hasn’t started yet or the corresponding shared library hasn’t been loaded yet).
- Resolved: Line breakpoint is successfully resolved by GDB or LLDB using the provided debug symbols and can be hit during the execution.
- Invalid: Line breakpoint can’t be resolved by GDB or LLDB and can never be hit.
- The types are detected automatically on the fly and the breakpoint icons are updated accordingly.
Debugger commands completion:
- Completion for GDB/LLDB commands
- If you prefer the command line interface of GDB/LLDB and use the debugger console available in the debug tool window, you will benefit from completion for GDB/LLDB commands. Use Tab or Ctrl+Space to invoke it.
- This completion is powered by GDB or LLDB, respectively; CLion simply gives you access to the suggestions.
- An experimental debugger for the MSVC toolchain
- If you use the Microsoft Visual C++ toolchain in CLion, now you can try a new experimental debugger.
- It’s implemented by the JetBrains team on top of LLDB and is bundled into CLion. To enable bundled support for native visualizers, use Settings | Build, Execution, Deployment | Debugger Data Views | Enable NatVis renderers for LLDB.
- An experimental debugger is available when turned on explicitly: call up the Maintenance dialog (Shift+Ctrl+Alt+/) | Experimental features, and select cidr.debugger.lldb.windows to control it.
- Memory View
- When debugging your application, you can easily review the memory behind a pointer: in the Variables view of the Debug tool window, press Ctrl+Enter on a pointer to invoke the Memory View. In 2019.2, we’ve updated the Memory View to make it even more useful.
Go to address:
- Navigate to a particular address in memory from the Memory View. Use the hex value representing an address, a pointer variable, or call the address (&) of any variable you are interested in.
- Code completion will assist you with the known symbols.
- If you are interested in the ASCII memory format, you’ll find the ASCII view in the column on the right of the Memory View useful.
- Parameter Name hints
- Thanks to parameter name hints in v2019.2, you can avoid switching to the function signature while exploring a function call. This, in turn, should help increase the code readability.
- For function calls, lambdas, constructors, initializer lists, and macro expressions, CLion shows the names of the parameters for the passed arguments. This works if an argument is a literal or an expression with more than one operand.
- Unused Include
- Unused Includes
- The ‘unused includes’ check is back and completely reimplemented on top of the Clang-based engine. It suggests 3 detection strategies: a conservative one, an aggressive one, and the default one (Detect not directly used) which is the closest to the “Include What You Use” principle.
- Clang-Tidy update
- The Clang-Tidy bundled binary was updated to the newest version, which brings a set of new checks to CLion. This includes some new abseil-* checks, a few from the clang-analyzer-* group, several new modernize-* checks, and more.
Code assistance for .clang-format files:
- Since v2019.1, CLion has support for ClangFormat as an alternative formatter tool. Now, if you have customized your .clang-format config files in the project, you can benefit from code assistance when you update them. Learn more
- Quick Documentation
- To learn about any particular option, call the Quick Documentation popup (Ctrl+Q) and read the original documentation with samples.
ClangFormat config inspection:
- Schema validation inspection
- CLion validates the content of your .clang-format config file against the built-in JSON schema. If the option’s value doesn’t match the allowed value set, a warning will be shown.
- Code completion
- When customizing the .clang-format config file, you can benefit from code completion working for both options and their values.
- Options description in completion
- Code completion popup for option names also includes a short description of the option, so you can quickly check it while typing the option name.
- New settings
- The naming convention settings (Settings | Editor | Code Style | C/C++ | Naming Convention) were reworked to provide better flexibility and more opportunities. New settings like Visibility (Public, Private, or Protected) and Specifier (Const or Static) were added. We’ve also updated the rules to address several kinds of entities at once.
- It’s possible to work with the new UI without using the mouse.
Leading Snake Case:
- As requested by CLion users, a new style – Leading_snake_case, which capitalizes only the first letter in the snake_case name, leaving the rest in lower case – is now available, along with the somewhat similar Upper_Snake_Case style and others.
Shell Script plugin:
- If you need to edit shell scripts while you are working on your C++ project, you can do this with CLion as it now bundles the Shell Script plugin.
- You can benefit from code highlighting, word and path completion, and even textual Rename.
Syntax highlighting for new languages:
- Ruby syntax highlighting
- Have code in your project in other languages, such as PHP, Ruby, or C#? You’ll be happy to learn that syntax highlighting is now available in CLion for over 20 different programming languages!
VCS: Commit from the Local Changes:
- Commit from Local Changes
- You can now commit directly from Local Changes tab. Just enable the “Commit from the Local Changes without showing a dialog” option at Settings | Version Control | Commit Dialog.
- Use the Commit shortcut (Ctrl+K) and the IDE will select the modified files for the commit and focus on the Commit message field in the Local Changes tab of the Version Control tool window.
There is some huge ongoing work in CLion to improve the IDE’s performance such as indexing, responsiveness, and elimination of freezes, among others. Part of this work is already included in v2019.2:
- The in-place Rename refactoring was reworked to eliminate lags and freezes.
- The performance of code completion for qualified expressions in the editor has been significantly improved.
- Collecting compiler information and thus loading the CMake step in remote cases was accelerated by reducing the number of I/O operations.
- CLion now warns you when Windows Defender is affecting the build performance and is able to automatically exclude directories from real-time scanning.
Rust plugin update:
- Rust plugin
- Another huge update for the Rust plugin brings a new experimental macro expansion engine. You can turn it on in Settings | Languages & Frameworks | Rust | Expand declarative macros.
- This engine provides you with code insight features such as highlighting, name resolution, and completion for generated modules and methods from impl blocks. Besides this, it enables navigation in the macro calls.
- Other changes include a Duplicate code fragments inspection for Rust, and other new quick-fixes and inspections.
OS X 10.9.4 or later