https://bugs.kde.org/show_bug.cgi?id=387272

--- Comment #7 from Tristan Porteries <republicthunderbo...@gmail.com> ---
The bug still exists in recent version. I tried to get closer from its source
and noticed that clang parsing wasn't detecting file guarded. So I reproduce
the parsing in a simple project (this is the attached archive).

In this project similar flags with kdevelop are used, and in this case
CXTranslationUnit_CreatePreambleOnFirstParse flag is causing file to be not
considered guarded, otherwise it is always guarded.

I'm kind of lost with this argument, it seems to be an optimization, but I
don't know if it's the expected behaviour of this flag…

To execute the project :
- build with cmake in a different directory
- execute clangTest test.h  ;see message "file guarded" or "file not guarded",
 you can comment flag in code.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to