C++ AI Analyzer analyzes C++ code via deepseek-r1 and gemini-2.5-flash models against Autosar C++14, MISRA C++17 or user defined guidelines.
Usage
Right click on a .h or .cpp file there will be 6 menu items
C++ AI Analyzer: Autosar C++14 (deepseek)
C++ AI Analyzer: MISRA C++17 (deepseek)
C++ AI Analyzer: Custom Rules (deepseek)
C++ AI Analyzer: Autosar C++14 (gemini)
C++ AI Analyzer: MISRA C++17 (gemini)
C++ AI Analyzer: Custom Rules (gemini)
When using user defined rules (Custom Rules), the rules must be writen in text files in this directory:
Windows: C:\Rules
Linux: /home/username/Rules
macOS: /Users/username/Rules
While analysing, the rules violations will get reported in the output tab, formatted as follows:
<code of violation>, <violated rule> <reason>.
This analyzer analyzes only the corresponding opened file.
Limitation
Deepseek analyzing requests are limited per-day and slow because of indirect requests, an upcomming release will allow the user to choose the AI provider and its API_KEY.