MCPcopy Create free account
hub / github.com/KDE/kdevelop / findInformation

Method findInformation

kdevplatform/language/duchain/duchain.cpp:1016–1023  ·  view source on GitHub ↗

Checks whether the information is already loaded.

Source from the content-addressed store, hash-verified

1014
1015 ///Checks whether the information is already loaded.
1016 ParsingEnvironmentFile* findInformation(uint topContextIndex)
1017 {
1018 QMutexLocker lock(&m_chainsMutex);
1019 QHash<uint, ParsingEnvironmentFilePointer>::iterator it = m_indexEnvironmentInformations.find(topContextIndex);
1020 if (it != m_indexEnvironmentInformations.end())
1021 return (*it).data();
1022 return nullptr;
1023 }
1024
1025 ///Loads/gets the environment-information for the given top-context index, or returns zero if none exists
1026 ///@warning m_chainsMutex should NOT be locked when this is called, because it triggers I/O

Callers 1

Calls 3

findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected