Bug 498819

Summary: Syntax Highlighting and Jump To Declaration of macro arguments broken with clang 19
Product: [Applications] kdevelop Reporter: git.ceeac
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: igorkuo
Priority: NOR    
Version First Reported In: 6.1.241201   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description git.ceeac 2025-01-17 22:12:52 UTC
STEPS TO REPRODUCE
1. Find a *use* of a macro with 1 or more arguments
2. Hover over one of the arguments with the mouse
3. Optionally, open the context menu using right-click and select 'Jump to Declaration'

EXPECTED RESULT
In step 2, only the macro argument should be highlighed
In step 3, should switch to the actual declaration of the argument

OBSERVED RESULT
In step 2, all macros are highlighted, not just the current macro argument
In step 3, Jump to declaration switches to a totally different code location

The bug does not occur when KDevelop is downgraded to 24.12.0-1 with Clang 18

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Stable
KDE Plasma Version: 6.2.5
KDevelop package version: 24.12.1-2
clang package version: 19.1.6-1
Comment 1 Igor Kushnir 2025-01-18 06:48:18 UTC

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