Bug 427002 - Parser fails to parse headers precompiled by CMake
Summary: Parser fails to parse headers precompiled by CMake
Status: RESOLVED DUPLICATE of bug 407444
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 5.6.0
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-26 18:32 UTC by krzysio.kurek
Modified: 2022-01-19 19:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example project using precompiled headers, note that std::cout and std::endl are not highlighted (346 bytes, application/gzip)
2020-09-26 18:32 UTC, krzysio.kurek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description krzysio.kurek 2020-09-26 18:32:45 UTC
Created attachment 131950 [details]
Example project using precompiled headers, note that std::cout and std::endl are not highlighted

SUMMARY
Headers which are being precompiled using CMake's `target_precompile_header` option are not parsed and result in broken syntax highlighting.

STEPS TO REPRODUCE
1. Use functions / classes from a header in a source file
2. Configure the project to precompile the header
3. Open project with KDevelop and observe the syntax highlighting

OBSERVED RESULT
Objects defined in the precompiled headers are missing highlights and from the autocomplete.

EXPECTED RESULT
KDevelop ignores the precompiled headers and parses the included ones as normal.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed 5.8.10
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Comment 1 Justus Ranvier 2022-01-19 19:14:21 UTC
*** This bug has been marked as a duplicate of bug 407444 ***