Safe C++ Guidelines for Cevelop(AUTOSAR)
Viktor Puselja, Gabriel Vlasek · HSR (HSR University of Applied Sciences Rapperswil) · 2019
CodeAnalysator is an Eclipse plug-in for improving C++ code. Its static analysis uses AST visitors for determining rule violations and notifies the users about them. Often the plug-in even proposes quick fixes to solve a problem. The plug-in features rules from many different C++ programming guidelines such as from AUTOSAR or MISRA. The plug-in was initially developed by another team. After we added a large set of rules in the previous term project, this thesis was all about improvement. By applying refactorings and rewriting code, the complexity of the project was greatly reduced and circular dependencies were removed. By introducing new concepts and improving the naming, we increased understandability and readability of the project. Using performance measuring we also improved the execution speed and responsiveness significantly, reducing the run time on our test projects from almost an hour to less than three minutes. Among many other smaller things, we also incorporated a set of new rules from the AUTOSAR guideline.