Summary: | KDevelop errors out on user-defined string literal operators | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Alexander <ashaduri> |
Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | kfunk |
Priority: | NOR | Keywords: | junior-jobs |
Version: | git master | ||
Target Milestone: | 5.0.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Alexander
2012-06-25 14:35:59 UTC
Patch in progress: https://git.reviewboard.kde.org/r/103485/ Works in principal in KDevelop 5, using the Clang backend. But there's a bug. Example: ``` #include <chrono> constexpr std::chrono::nanoseconds operator"" _nsec(unsigned long long val) { return std::chrono::nanoseconds(val); } auto i = 123_nsec ``` Highlight the second '_nsec'. Issue: Definition is the range 'operator', not the first '_nsec' Upstream issue. Patch at http://reviews.llvm.org/D18462 |