Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

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

Open
PhilipOakley opened this issue Aug 10, 2021 · 0 comments
Labels

Comments

@PhilipOakley
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants