Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for static and dynamic analyzer tools.
https://codechecker.readthedocs.io
Apache License 2.0
2.27k stars 383 forks source link

Skip linking action from compilation_database #1436

Closed dkrupp closed 6 years ago

dkrupp commented 6 years ago

Linking actions are not used for the analysis. Introduce a new flag for CodeChecker log subcommand to skip linking actions. --skip-linking This way the compile_commands.json will be smaller.

gyorb commented 6 years ago

Maybe we could generate a separate link_commands.json file? It might be used by CTU later?

whisperity commented 6 years ago

Isn't CodeChecker analyze ignoring link commands anyways?

gyorb commented 6 years ago

Yes, analyze is ignoring them but the commands are there in the file. If there is a lot of linking actions this file can be quite big. Loading up and parsing json can be quite slow.

dkrupp commented 6 years ago

Good idea! Lets keep linking actions in link_commands.json separate file.

gyorb commented 6 years ago

The skipping of the linking actions is done, but I still think that collecting the linking actions in a separate file can be valuable. I've created a separate issue for that #1482

Another change in the logging in connection to this modification is in #1480