Bug 498983 - KDevelop built with clang/llvm 19 does not correctly highlight #define directives
Summary: KDevelop built with clang/llvm 19 does not correctly highlight #define direct...
Status: RESOLVED DUPLICATE of bug 496985
Alias: None
Product: kdevelop
Classification: Applications
Component: Code completion (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-21 22:55 UTC by zvova7890
Modified: 2025-01-22 10:31 UTC (History)
1 user (show)

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


Attachments
Correct behavior (32.79 KB, image/png)
2025-01-21 22:55 UTC, zvova7890
Details
Incorrect behavior (32.72 KB, image/png)
2025-01-21 22:56 UTC, zvova7890
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zvova7890 2025-01-21 22:55:22 UTC
Created attachment 177578 [details]
Correct behavior

SUMMARY
I noticed that after an update, KDevelop no longer correctly highlights and interprets code lines using #define directives. Strings inside these directives are not highlighted as strings, and features like jumping to declarations don't work correctly. Instead, using Ctrl + Left Click takes me to a random line unrelated to the original click.

I started downgrading and rebuilding KDevelop, and eventually, when I built it with Clang/LLVM 18, everything returned to normal.

STEPS TO REPRODUCE
1. Take the system with clang/llvm 19
2. Open in KDevelop some C++ project
3. Check lines that uses #define directive

OBSERVED RESULT
Misinterpreted 

EXPECTED RESULT
Correctly treated each variable/parameter/string/etc
Comment 1 zvova7890 2025-01-21 22:56:03 UTC
Created attachment 177579 [details]
Incorrect behavior
Comment 2 zvova7890 2025-01-21 22:57:38 UTC
In attached screenshots you can see that string highlighted not as string, also I can't jump to any variable that used in put() directive call, it just put me to the random line and highlight all lines that using this directive.
Comment 3 Igor Kushnir 2025-01-22 10:31:32 UTC

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