Questions tagged [clion]

CLion is a cross-platform IDE for C and C++ development.

CLion is a cross-platform C/C++ IDE from JetBrains (you can run it on Linux, Windows and macOS). It natively supports old and new C/C++ language standards, Boost and libc++ libraries, and works with templated code and macros. CLion helps you instantly navigate and refactor your code, with Rename refactoring, Change Signature, Inline, Extract Function / Variable / Constant / Parameter, and others. Code analysis (including Data Flow Analysis and Clang-Tidy) is running while you are typing to ensure code quality.

CLion uses CMake as a project model and handles your changes in CMake files automatically, using all the information from there during code editing and refactorings.

Apart from CMake, CLion supports compilation database and Gradle projects. Currently, you cannot create a new project of these types within CLion, but you can open and manage an existing one with full code insight available.

CLion will enrich your development with an integrated debugger (GDB and LLDB), Doxygen support, various unit testing frameworks, Version Control Systems, and dozens of plugins from the repository to extend its functionality.

Besides C and C++, CLion comes with Python, HTML, JavaScript, Swift Kotlin/Native and some other languages support included.

CLion’s functionality can be extended via IntelliJ Platform API.

Useful links

2813 questions
0
votes
1 answer

Why does my code stop even though if statement is false

in this small chess terminal app, at the end of black's turn, the code should check if move contains '#' if so, it should exit. The problem is, it automatically exits and doesn't check the second if statement, looping it back to label. Why is…
0
votes
1 answer

With CLion, how do I set an environment variable for the Makefile build?

I want setup a C preoject built by makefile on Clion 2023.1.5. This project depend on enviroment varibles written into a env.sh file. So Clion have to soure the env.sh file first, then run make to build. I am not make sure how to source env.sh…
0
votes
0 answers

Clion + Cmake Test CMake run finished with errors

I find same problem like this link:CLion + MinGW Test CMake run finished with errors But it couldn't solve my problem,I try its answer but couldn't work! I'm new on this IDE, and programming on Windows, I've installed MinGW and added to enviroment…
chaganhu
  • 33
  • 3
0
votes
1 answer

Is there a way to change the path to save the Linker's output of a C/C++ program in CLion?

So, I am starting out with CLion. And I have a project where I managed to store the .cpp and .h files in a folder under the working directory called src. However, I am unable to get the linker's generated output (the executable file) in a separate…
0
votes
0 answers

Adding content to quick documentation in CLion

I am using CLion as my IDE right now while developing in C. The quick documentation is great for showing man pages for functions. The issue I am running into is if I create a macro to a function I no longer get the quick documentation to the man…
getunstuckaq
  • 11
  • 1
  • 2
0
votes
1 answer

How to use or add a shared library (.so) into a C++ project in CLion and use method contained on .so file

I have a c++ method on .so lib that receive a number and return "hello world". Then how can i import it on other c++ project on cMakeList and call on main.cpp. but i have a doubt how can i inform a compiler that .hpp methods declarated was…
0
votes
0 answers

change the color of the input in clion

I'd like to change the color of the input to green in clion. I don't know what is the difference of the settings between my clion and pycharm, but pycharm works as I wish. this is clion:enter image description here this is pycharm:enter image…
colommar
  • 1
  • 1
0
votes
0 answers

Problems linking boost libraries with CLion/Vcpkg/Bundled MinGW

I'm trying to link my project to various boost libraries (thread, system, program_options, filesystem, and date_time). I'm using CLion's bundled MinGW, and have used Vcpkg to install my required libraries, and added the requirements to vcpkg.json.…
Brett Gmoser
  • 1,702
  • 1
  • 12
  • 19
0
votes
0 answers

How to avoid ctest running catch2's benchmark by default (make benchmarks ber untime opt-in rather than opt-out)?

I use catch2 extensively as part of my testing ecosystem, which gets fired by CLion running "ctest" during development and just running "ctest" by hand in CI. My issue is, I can't seem to find a decent way to have those benchmarks be an opt-in type…
hak8or
  • 488
  • 2
  • 9
  • 28
0
votes
1 answer

Debugging stops not at a break point with clion

As shown above, the ide stops at a line where I haven't put a break point. I tried recompile the program but it doesn't work, so I have to painfully iterate through every cycle....
Michael
  • 673
  • 2
  • 5
  • 23
0
votes
0 answers

How do I add the CS50 library I just downloaded to the my C project in CLion?

I'm a complete beginner and am currently taking the CS50 course. I want to use CLion, but for that I need to add a library to my project. I was able to download the CS50 library and "sudo make install" it. Now I need to add or link it to my project…
Fabian
  • 1
  • 1
0
votes
0 answers

Clion and Maya debugging

I am working on a c++ Node for Maya on Clion. I have a complicated array of arrays that I'd like to see the content. So far I have inspected the array with MGlobal::displayInfo but it's too cumbersome. I saw there's some tutorials to attach a…
0
votes
0 answers

mac M1 Clion sdl configuration

I want to use clion to develop the SDL project on the mac of my M1 chip. I have carried out the following steps Install the SDL library through Homebrew: brew install sdl2 Configure SDL in CLion: CLion project Add a reference to SDL in the…
0
votes
1 answer

CLion C++ : Why is there gap between the input cursor and the current output?

why is this happening, there shouldn't be any space between 10 and the input The input is 'Potato' and the output is showing after 10. This is the actual code - #include using namespace std; int main() { int a = 5; int b = 6; …
abhi abhi
  • 1
  • 1
0
votes
0 answers

Clion + Docker Toolchain with Conan: Problem highlighting / linting problems including dependencies

I developed a C++ project, and use Conan for my dependencies. I recently switched to also shipping a Dockerfile, for setting up a Docker toolchain in CLion to ease the setup for other developers who try to develop on the project on different…
mutableVoid
  • 1,284
  • 2
  • 11
  • 29
1 2 3
99
100