CoatiSoftware / Sourcetrail

Sourcetrail - free and open-source interactive source explorer
https://www.sourcetrail.com/
GNU General Public License v3.0
14.29k stars 1.33k forks source link

strlen() {non-indexed} being shown as returning `long long` rather than `size_t` #1206

Open PhilipOakley opened 2 years ago

PhilipOakley commented 2 years ago

I'm looking at the Git project in SourceTrail from a Visual Studio (Ninja) generated compile_commands.json file (via a CMakeLists.txt within the Git project).

I'm then looking at those standard functions that return size_t, such as strlen that in Linux git are (in enough cases to cause problems on Windows) then coerced into long variables.

When I hover over the strlen function in SourceTrail it is showing it as a nonindexed function with unsigned long long as the return type - which isn't standard (size_t), and doesn't reflect the return type shown if I switch to Visual Studio (size_t).

== Where does the nonindexed function return type unsigned long long come from?

What is the best method for fixing this? (the project is loaded entirley from the sanitised compile_commands.json file (swaps VS options to dashed form)

image