Bug 427002

Summary: Parser fails to parse headers precompiled by CMake
Product: [Applications] kdevelop Reporter: krzysio.kurek
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: minor CC: justusranvier
Priority: NOR    
Version First Reported In: 5.6.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Example project using precompiled headers, note that std::cout and std::endl are not highlighted

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 ***