Is there a way to make gcc -fanalyzer work across compilation units?
gcc -fanalyzer
Yes, use -flto.
-flto