Unique report identifiers are required to compare analysis results.
If the analyzers (Clang Static Analyzer
, Clang Tidy
) do not generate
a unique report identifier, CodeChecker tries to generate one.
It is recommended to use the identifier generated by the analyzers because they can include the semantic context of the result better into the unique id.
This method is used for Clang Tidy reports. The current hash generation algorithm in CodeChecker uses this information to generate the unique id. NOTE: As the main diagnostic section the last element from the bug path is used!
Unique id content:
file_name
from the main diag section.checker message
line content
from the source file if can be read upcolumn numbers
from the main diag section- whitespaces are removed from the source lines used for hash generation to make the hash independent of the indentation