Commit 849c1a4d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fix use generation

parent 267d661b
......@@ -43,11 +43,11 @@ void UseBuilder::startVisiting(CMakeContentIterator* node)
for(; node->hasNext(); ) {
const CMakeFunctionDesc& func = node->next();
if (!s_commands->contains(func.name)) {
QString fname = func.name.toLower();
if (!s_commands->contains(fname)) {
KDevelop::DUChainWriteLocker lock;
KDevelop::Identifier nameid(func.name);
KDevelop::Identifier nameid(fname);
QList<KDevelop::Declaration*> declarations = m_ctx->findDeclarations(nameid, func.range().start);
if (!declarations.isEmpty()) {
newUse(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment