| Summary: | KDevelop doesn't highlight friend class members | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Pedro Ferreira <arkangath> |
| Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | ogoffart |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Just tested, works. You rock, Olivier! Way to go. Using libclang 4.0 will fix this issue. |
The source was reduced by Milian to: class LockableHolder { friend void swap(LockableHolder a, LockableHolder b) { a = b; } }; Execution of clang-parser yields: clang-parser -a /tmp/test.cpp AST tree successfully generated ClassDecl (4) | type: "LockableHolder" (105) | display: "LockableHolder" | loc: /tmp/test.cpp@[(1,1),(7,2)] | isDecl UnexposedDecl (1) | loc: /tmp/test.cpp@[(3,5),(6,6)] | isDecl no problems encountered during parsing Reproducible: Always This is likely an upstream issue.