fix new Clang 20 Waring -Wdeprecated-literal-operator#160
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #160 +/- ##
==========================================
- Coverage 74.01% 73.99% -0.03%
==========================================
Files 257 257
Lines 9191 9191
Branches 804 808 +4
==========================================
- Hits 6803 6801 -2
Misses 1785 1785
- Partials 603 605 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Found the change in the Clang Release Notes: https://releases.llvm.org/20.1.0/tools/clang/docs/ReleaseNotes.html
// Now diagnoses by default.
unsigned operator"" _udl_name(unsigned long long);
// Fixed version:
unsigned operator""_udl_name(unsigned long long); |
(remove space between "" and _)
new Clang 20 compiler warning: -Wdeprecated-literal-operator
Generate warning (and with -Werror errors) like: