¡Hola, Habr!
JetBrains ha comenzado un nuevo año de lanzamiento: todos nuestros productos de escritorio se han actualizado o se actualizarán en un futuro muy cercano. Hoy queremos hablar sobre CLion 2021.1, la última versión de nuestro IDE multiplataforma para el desarrollo de C y C ++.
:
Clazy
MISRA
Makefile
(CMake, Makefile, Qt)
C C++
IntelliJ
30 . CLion All Products Pack, 2021.1. , .
2021.1 .
— , , . (dangling pointer), (null dereferencing), , (, , , , — , ) .
— . (DFA) CLion , 2020 Clang . 2021 , . ?
. CLion 2020.3 .
(TU), . , CLion 2021.1.
, :
:
:
— , .
— , .
— , .
, Lifetime-. -, , !
Clazy
Qt-. , QML :( Clang Clazy — Qt. CLion :
Settings/Preferences | Editor | Inspections | C/C++ | General | Clazy. level — Clazy. CLion 2021.1 CLazy 1.8.
MISRA
CLion MISRA C 2012 MISRA C++ 2008. , , .
MISRA AUTOSAR.
- :
Makefile
CLion 2021.1 Makefile. , Settings/Preferences | Build, Execution, Deployment | Makefile .
IDE , , Google Sanitizers, Valgrind Memcheck . , , ( ).
, CLion :
(Line coverage) — , GCC/gcov. , ,
return 0; int c;
100%.
(Statement coverage) — , LLVM/llvm-cov. , , , 100% .
(Branch coverage) — GCC/gcov, LLVM/llvm-cov 12.0.0. , GCC/gcov , , LLVM/llvm-cov — . gcov 100% «‎ »‎, , , - .
- ( ). , CLion ssh- . , ( , IDE ). . Tools | Open Remote Host Terminal . , — , .
Code With Me — . , . :
CLion , . !
(CMake, Makefile, Qt)
Makefile Clazy Qt. CLion 2021.1 .
CMake
CMake 3.19 (, , Apple Silicon — M1. CMake 3.20 — CLion 2021.1, CMake CLion.
CMake, IDE, VCS. Share Settings/Preferences | Build, Execution, Deployment | CMake, cmake.xml . : CMake Presets , (CPP-22906).
Makefile
Makefile — . , CLion Makefile Language, . make
, , Find Usages , Makefile.
Qt
Clazy, Qt- — Qt UI Class:
.
QtCreator.
:
C C++
C C++ (UFCS)? ! C C++ . , :
:
, . Settings/Preferences | Editor | General | Postfix Completion.
, :
:
sysroot. , .
LLDB , , ( ). GDB, LLDB.
Set Execution Point C/C++, :
. , .
IntelliJ
«» CLion IntelliJ. , , :
,
Git-
Save to Shelf .
CLion Rust-. IntelliJ Rust — . , Change Signature , Find Usages Cargo.
Swift. : “ CLion, AppCode!?” , AppCode Mac, Swift Ubuntu, Windows. Swift Windows — , . AppCode. , Swift Windows, Appcode.
. , CLion, .
! , — , , !
CLion
The Drive to Develop