About
CLion is an intelligent IDE designed for C and C++ development on Linux, Windows, and OS X platforms. It features support for CMake—a build system for cross-platform projects—along with on-the-fly code analysis capabilities, a wide range of refactorings, and a unified interface for working with the most popular version control systems.
**Smart C and C++ Editor**
**Code Assistance**
An editor that deeply understands C and C++ allows you to work with your code much more efficiently.Use Smart Completion to filter autocompletion suggestions by type.Breadcrumbs navigation helps you keep track of your current location within the namespace hierarchy.Parameter info tooltips are available for any function call.You can search for symbol usages based on context or jump directly to a symbol's definition by name.CLion ensures that your code adheres to your chosen style guidelines—including formatting rules, naming conventions, and more.
**Code Assistance**
**Code Generation**
Instantly generate boilerplate code.Override and implement functions using simple keyboard shortcuts.Add constructors and destructors, getters and setters, as well as equality, comparison, and stream output operators.Surround code fragments with various expressions, and generate declarations based on existing usages.Create your own "Live Templates" to reuse specific code snippets—saving you time and ensuring stylistic consistency.
**Code Generation**
**Safe Refactoring**
You can rename symbols; inline functions, variables, and macros; move class members within the hierarchy; change function signatures; and extract variables, parameters, functions, and typedef declarations.Don't hesitate to apply refactorings: CLion ensures that changes are applied everywhere they are needed.
**Safe Refactoring**
**Quick Documentation Lookup**
Simply hovering your cursor over the code allows you to learn virtually everything there is to know about it.Inspect function signatures, review comments and Doxygen documentation, and verify the inferred types for implicitly typed symbols.You can even preview formatted macro expansions.
On-the-Fly Code Analysis
Write elegant, flawless code.CLion helps you identify issues as you type and fix them with a single click—the IDE automatically applies all necessary changes.
CLion performs code analysis, Data Flow Analysis, other Clangd checks, and Clang-Tidy inspections to help you detect unused or unreachable code, dangling pointers, necessary type casts, function overloads, and other potential improvements.
Integrated Debugger
The Debugger
CLion’s user-friendly debugger interface—featuring support for both GDB and LLDB—makes it easy to find and resolve issues in your code.
Attach to local processes or debug remotely.If you are working on microcontroller development, OpenOCD and Embedded GDB Server configurations are available to assist with peripheral debugging.
For a deeper dive, take advantage of features for viewing microcontroller peripherals, as well as disassembled code and memory contents.
Breakpoints
Explore your code using various types of breakpoints: line breakpoints, symbol breakpoints, exception breakpoints, and conditional breakpoints.When a breakpoint is hit, you can log the event and either remove the breakpoint or temporarily disable it (until another breakpoint is hit).This behavior is fully configurable via a dedicated dialog.
Quick Result Preview
While debugging, utilize the Watch variables and Variables tabs.You can also evaluate functions and other expressions while execution is paused.
View values in-place.During debugging, variable values are displayed directly within the editor—there is no need to switch to the *Variables* tab of the *Debug* window.
C/C++ Integrated Development Environment
Project Models
To provide coding assistance, refactorings, code style checks, and other smart editor features, CLion relies on information from the project model.CMake, Makefile, Gradle, and Compilation Database formats are supported.
Convenient Keyboard Control
Convenient keyboard shortcuts are available for virtually every function, action, and command—using them allows you to stay focused on your code and work more productively.
Vim enthusiasts can install a Vim emulation plugin.
Local and Remote Development
The built-in terminal allows you to execute any command directly from the IDE—either locally or remotely via SSH.
After editing your code in the IDE, you can build, run, and debug your application and tests locally, remotely, or directly on a microcontroller.
Everything You Need in One Tool
CLion provides everything a developer requires: the IDE integrates with popular version control systems (SVN, Git, GitHub, Mercurial, and Perforce), unit testing frameworks (Google Test, Boost.Test, and Catch), and supports Markdown, the Doxygen documentation system, and database tools.