Page MenuHomePhabricator

[analyzer][NFC] Display the correct function name even in crash dumps

Authored by steakhal on Jul 9 2021, 8:56 AM.



The -analyzer-display-progress displayed the function name of the currently analyzed function.
It differs in C and C++. In C++, it prints the argument types as well in a comma-separated list.
While in C, only the function name is displayed, without the brackets.

C++: foo(), foo(int, float)
C: foo

In crash traces, the analyzer dumps the location contexts, but the string is not enough for -analyze-function in C++ mode.
This patch addresses the issue by dumping the proper function names even in stack traces.

Diff Detail

Event Timeline

steakhal created this revision.Jul 9 2021, 8:56 AM
steakhal requested review of this revision.Jul 9 2021, 8:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 9 2021, 8:56 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
NoQ accepted this revision.Jul 9 2021, 10:15 AM

Amazing, thanks a lot!

This revision is now accepted and ready to land.Jul 9 2021, 10:15 AM