logic: show real code of signatures in tooltips
* added new location type * refactored old recording code * record signature locations for cxx functions and java methods * added signature locations to sample project indexer tests * ignore signature locations in ui * signatures in tooltip with qualified name of the function/method * added test for finding signature location of constructor with initializer list
This commit is contained in:
@@ -346,6 +346,11 @@ void QtCodeField::createAnnotations(std::shared_ptr<SourceLocationFile> location
|
||||
locationFile->forEachSourceLocation(
|
||||
[&](const SourceLocation* location)
|
||||
{
|
||||
if (location->getType() == LOCATION_SIGNATURE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (location->getLocationId() && locationIds.find(location->getLocationId()) != locationIds.end())
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user