Ericsson / CodeCompass

CodeCompass is a software comprehension tool for large scale software written in C/C++ and Java
https://codecompass.net
GNU General Public License v3.0
497 stars 96 forks source link

Handle duplicated compile commands #741

Open mcserep opened 2 months ago

mcserep commented 2 months ago

Compilation databases (compile_commands.json) may contain duplicated compilation commands for the same translation unit.

In such cases incremental parsing reports that the affected TU has already been parsed, even in case of a forced reparse. Clearly, incremental parsing was not prepared for such cases.

That issue should be fixed and it should be checked in general for the parser component of CodeCompass, that duplicated compilation commands are handled in an acceptable way.