C++ AI Anaylzer
C++ AI Analyzer analyzes C++ code via GPT-OSS-120B and gemini-2.5-flash models against Autosar C++14, MISRA C++17 or user defined guidelines. In addition, it provides Agentic AI refactoring of C++ code based on Autosar C++14, MISRA C++17 or user defined guidelines.
Usage
Right click on a .h or .cpp file there will be the following menu items:
C++ Agentic AI Refactoring
AUTOSAR C++14
Custom Rules Refactoring
MISRA C++17
C++ AI Analyzing
AUTOSAR C++14 (GPT)
AUTOSAR C++14 (gemini)
Custom Rules (GPT)
Custom Rules (gemini)
MISRA C++17 (GPT)
MISRA C++17 (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>.
In case of refactoring, gemini-2.5-flash is used in an agentic way, where it refines its outputs in loops. The operation might take a while as MISRA and AUTOSAR rules are many. The refactoring results will get reported in the output tab.
This analyzer analyzes/refactors only the corresponding opened file.
Limitation
This is still an experimental extension, the total number of requests is limited to 1000 per day for each model, which might get hit due to usage.
Enjoy!