The C/C++ plugin adds a state-of-the-art C/C++ lexer, preprocessor and parser to SonarSource products. It allows users to perform objective and automated C and C++ code reviews against pre-defined coding best practices. As the plugin includes embedded lexer and preprocessor, the C/C++ source code does not need to be preprocessed before being analyzed.
This plugin benefits from the power of Open Source by reusing all available core services from the SonarQube platform, including issues drilldowns, hotspots, code viewer with syntax highlighting, Time Machine, Clouds, and coding rule profile management.
- Embedded lexer, preprocessor and parser, so the C/C++ source code does not need to be preprocessed before being analyzed
- Supports C89, C99, C11, C++03, C++11 and C++14 standards
- Supports Microsoft Component Extensions for Runtime Platforms: C++/CLI and C++/CX
- Supports GNU extensions
- Supports ProC/C++
- Supports projects compiled with CLang, GCC and Microsoft C/C++ compilers
- 400+ pre-defined coding rules
- MISRA-C:2004, MISRA-C:2012 and MISRA-C++:2008 coding standards
- Compatible with the SonarQube Eclipse plugin to track issues while coding
- Ability to extend the out-the-box rule engine by writing custom rules
- Ability to import CPPUnit unit test reports
- Ability to import Microsoft Visual Studio and GCOV Coverage reports
- Easy installation and usage
- Excellent performance, able to analyze millions of lines of code in minutes