Sourcetrail icon indicating copy to clipboard operation
Sourcetrail copied to clipboard

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

Open PhilipOakley opened this issue 4 years ago • 0 comments

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

PhilipOakley avatar Aug 10 '21 10:08 PhilipOakley