Bernehed, Aiko (2022) Include-Analysis for C++ Source Code. Bachelorarbeit, Heinrich-Heine-Universität Düsseldorf.
PDF
791kB |
Kurzfassung
The C++ programming language is highly versatile and leaves many aspects of code organization to programmers, but provides functionality for code separation into source and header files. As projects have grown larger in size and C++ has found its way into critical infrastructure, the community has started developing a host of best-practice guidelines for code organization. Since these are not programmatically enforced during development, static include analysis is an excellent tool for checking programmers adherence to these self-imposed guidelines. In this work, the Axivion Suite by the Axivion GmbH is used to develop a set of rules that enforce a number of guidelines as they may be encountered in real-world applications. The Axivion Suite uses a proprietary compiler to gather analysis data on existing C++ source code of a given project. The rules presented here are enforced by running specially developed Python scripts on the analysis data generated by the Axivion compiler. Finally, the entire set of rules is used to analyze an existing application, "Notepad++", and the results are compared to Axivion's proprietary rules, gathered under the name of Generic stylechecks. "Notepad++" consists of a core program and the Scintilla and Boost libraries, all three of which exhibit a host of different issues. Overall, the rules developed here uncover 3,673 and Axivion's rules 3,890 violations. The minutiae of these results are discussed and final conclusions about this work and Axivion's implementation drawn.
elib-URL des Eintrags: | https://elib.dlr.de/186054/ | ||||||||
---|---|---|---|---|---|---|---|---|---|
Dokumentart: | Hochschulschrift (Bachelorarbeit) | ||||||||
Titel: | Include-Analysis for C++ Source Code | ||||||||
Autoren: |
| ||||||||
Datum: | 5 April 2022 | ||||||||
Referierte Publikation: | Nein | ||||||||
Open Access: | Ja | ||||||||
Status: | veröffentlicht | ||||||||
Stichwörter: | C++ Static Analysis Programmiertechniken Source Code Analysis | ||||||||
Institution: | Heinrich-Heine-Universität Düsseldorf | ||||||||
Abteilung: | Softwaretechnik und Programmiersprachen | ||||||||
HGF - Forschungsbereich: | Energie | ||||||||
HGF - Programm: | Materialien und Technologien für die Energiewende | ||||||||
HGF - Programmthema: | Thermische Hochtemperaturtechnologien | ||||||||
DLR - Schwerpunkt: | Energie | ||||||||
DLR - Forschungsgebiet: | E SW - Solar- und Windenergie | ||||||||
DLR - Teilgebiet (Projekt, Vorhaben): | E - Intelligenter Betrieb | ||||||||
Standort: | Jülich | ||||||||
Institute & Einrichtungen: | Institut für Solarforschung > Solare Kraftwerktechnik | ||||||||
Hinterlegt von: | Bernehed, Aiko | ||||||||
Hinterlegt am: | 29 Sep 2022 12:33 | ||||||||
Letzte Änderung: | 14 Okt 2022 12:43 |
Nur für Mitarbeiter des Archivs: Kontrollseite des Eintrags