Bug 398147 - #ifdef is undelined when followed by a symbol starting with underscore
Summary: #ifdef is undelined when followed by a symbol starting with underscore
Status: RESOLVED DUPLICATE of bug 397766
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-02 10:11 UTC by Petr
Modified: 2018-09-05 07:31 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr 2018-09-02 10:11:24 UTC
I have a following code:

#ifdef __cplusplus
// ... Bla bla ...
#endif

KDevelop underlines the whole '#ifdef' line (and makes it red) because of "__cplusplus". I figured out it will always do when the definition I'm checking starts with underscore.

I think this is a bug as many system headers have definitions that start with underscores and __cplusplus checks are pretty common in C headers.
Comment 1 Sven Brauch 2018-09-05 07:27:46 UTC
I'll move this to frameworks/syntax-highlighting, the bug is there.
Comment 2 Christoph Cullmann 2018-09-05 07:31:19 UTC
Yes, should be fixed with 5.50

*** This bug has been marked as a duplicate of bug 397766 ***