andymeneely / attack-surface-metrics

Scripts for collecting metrics of the attack surface
MIT License
14 stars 4 forks source link

Preprocess Files Before Analyzing Using Scitools Understand #30

Open nuthanmunaiah opened 9 years ago

nuthanmunaiah commented 9 years ago

Scitools Understand appears to be excluding functions decorated with

Manually verify the missing functions to identify a pattern for manual corrective action. Preprocess FFmpeg (or any other program being measured) to remove these directives using a script.

nuthanmunaiah commented 9 years ago

We could use C Preprocessor to preprocess all C files and then have Scitools Understand scan the files to compute SLOC per function.

nuthanmunaiah commented 9 years ago

Using LocMetrics to compute source lines of code per function instead of Scitools Understand. LocMetrics works around preprocessor directives. LocMetrics does not handle constant replacement in function names. We may have to work around this limitation manually.