Skip to content

Instantly share code, notes, and snippets.

View PSCoder10462's full-sized avatar
🔥
Learning, coding, developing

Parv Sharma PSCoder10462

🔥
Learning, coding, developing
View GitHub Profile
@Arsenic-ATG
Arsenic-ATG / WorkReport.md
Last active December 1, 2023 20:19
GSoC 2021 : Extending gcc static analyzer to support virtual functions calls.

Overview

The project aims to make GCC's static analysis pass ( -fanalyzer option ) understand dynamic dispatch ( calls to virtual functions ) in C++.

This project will greatly benefit people who, like me, use static analysis pass to analyse their C++ programs for various problems at compile-time rather than spending a lot more time finding them at runtime, making the overall debugging process of any C++ project much faster and easier without using any additional tool except from the GCC compiler itself.

Status of Analyzer Before (GCC 11):

Although the static analyzer of GCC does it's job amazingly well for C code, it doesn't properly support C++ yet. Let's see this with an example where the analyzer triggers a false positive :-