Bug 279847 - code completion not working in ifdef block with a cmake definition
Summary: code completion not working in ifdef block with a cmake definition
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: 4.2.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 22:09 UTC by sobik.szymon
Modified: 2012-02-12 16:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
sample project (939 bytes, application/x-gzip)
2011-08-10 22:09 UTC, sobik.szymon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sobik.szymon 2011-08-10 22:09:10 UTC
Created attachment 62734 [details]
sample project

Version:           4.2.3 (using KDE 4.7.0) 
OS:                Linux

the parser probably does not see the add_definitions in the top CMakeLists.txt so code completion does not work in a subdirectory in an ifdef block

Reproducible: Always

Steps to Reproduce:
see attached project to reproduce
proper is in main.cpp
wrong in src/other.cpp

Actual Results:  
greyed out, code completion not working

Expected Results:  
working as in the top level main.cpp file

Also doesn't work right on kdevelop 4.2.2 + kde 4.6.2 in kubuntu
Comment 1 Benjamin Eikel 2011-10-30 09:57:32 UTC
This sounds similar to a problem that I have (see bug 275648).
Comment 2 Aleix Pol 2011-12-02 19:14:11 UTC
This was fixed recently by Andreas.
Comment 3 Aleix Pol 2012-02-12 16:07:26 UTC
apparently, I said it was fixed...