CLion 2023.3 EAP5 With the Enhanced Bazel for CLion Plugin and Memory Leak Analysis
According to our Developer Ecosystem survey, 57% of C++ developers used CMake in 2022. However, there are other project models and build systems that are also popular in the C++ ecosystem.
Just a couple of weeks ago, we added Meson support in CLion 2023.3. If you use Meson in your projects, consider giving it a try and sharing your feedback with us.
Another project model that’s growing in popularity among C++ developers is Bazel. We listened to feedback from our users who are migrating their projects to Bazel and using Google’s Bazel plugin for CLion, and we came up with a plan for gradual quality improvements to the plugin. Today is the time to present the results of our work to you!
Grab the fresh CLion 2023.3 EAP5 build (233.11361.11) from our website, via the Toolbox App, or as a snap package if you are using Ubuntu, or update via patch if you are using the previous EAP build. Then, install the Bazel for CLion plugin from our marketplace.
Bazel for CLion
How to install the plugin
Recent enhancements to the plugin
We addressed several issues with the included headers and CLion incorrectly resolving them:
strip_include_prefixargument is now supported in CLion (#145, #510). In Bazel, when this argument is set, the headers in the
hdrsattribute of this rule are accessible at their paths with the prefix cut off. CLion now takes this argument into account as well, looking for included headers by the correct paths.
- In some cases, CLion was incorrectly navigating to the symlinked header under Bazel’s virtual includes, instead of a proper header declaration (CPP-17658). Since this symlinked file was not a part of the project, code insight didn’t work properly there. We’ve fixed this and code insight now works as expected.
We also addressed some issues related to files that CLion incorrectly treated as unsynced, such as C++ projects that use
Memory leak analysis
We’ve also added new memory leak analysis. For example, the Allocated memory is leaked warning appears when memory is allocated and the memory is not released before it stops being accessible:
Another example of the memory leak analysis:
The new inspection is built on top of data flow analysis. In this EAP build, we also optimized it for very large files so it takes less time.
Structure view is added for meson.build file. It shows executables and libraries if
library(...) commands are present in the file.
The full release notes are available here.
Your CLion team
The Drive to Develop
Subscribe to Blog updates
Thanks, we've got you!
CLion Classic 2023.3 Released With AI Assistant, Meson and Bazel Support, Enhancements for Embedded Developers
CLion 2023.3 features JetBrains AI Assistant, expands project models support, and empowers embedded developers with support for device tree files.
CLion 2023.3 Release Candidate
CLion 2023.3 is on its way, and the release candidate for v2023.3 is already available! To install CLion 2023.3 RC (build 233.11799.171), download it from the website, update via the Toolbox App, or use this snap package (for Ubuntu). You need an active subscription or a trial license to use CLi…
CLion Nova: A New Update With Various Bug Fixes
CLion Nova, a free preview of CLion with the ReSharper C++/Rider C++ language engine, was announced recently. We’re excited to see how well you liked the first build! There are about 3,700 users right now and the overall feedback is mostly positive, especially that which is related to performance an…
CLion 2023.3 Goes Beta
The Beta version of CLion Classic 2023.3 is now available with key improvements and changes that are expected in the upcoming release. Download build 233.11799.37 from our website, via the Toolbox App, or as a snap package for Ubuntu. If you are using CLion Nova, note that we do not plan to release…