|
|
Log in / Subscribe / Register

The 5.7 kernel is out

The 5.7 kernel is out

Posted Jun 1, 2020 15:29 UTC (Mon) by pharm (guest, #22305)
In reply to: The 5.7 kernel is out by adobriyan
Parent article: The 5.7 kernel is out

I bet it thinks try is part of a try .. catch statement. C formatting is not well separated from C++ formatting in clang-format.


to post comments

The 5.7 kernel is out

Posted Jun 1, 2020 15:47 UTC (Mon) by pharm (guest, #22305) [Link] (1 responses)

Yup. Try switching the variable name from "try" to "try1". I’ve made a bug report: it really shouldn’t regard try as a keyword in C code.

The 5.7 kernel is out

Posted Jun 1, 2020 19:19 UTC (Mon) by pharm (guest, #22305) [Link]

That was quick! Looks like this will hopefully be fixed in the next release of clang-format: https://reviews.llvm.org/D80940


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds