[PATCH] D80940: [clang-format] [PR46159] Linux kernel 'C' code uses 'try' as a variable name, allow clang-format to handle such cases
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 3 07:06:13 PDT 2020
curdeius accepted this revision.
curdeius added a comment.
This revision is now accepted and ready to land.
LGTM.
For a second, I thought that you could simplify the code by removing this @try condition (and calling the function `FormatTokenLexer::tryTransformTryUsageForC()` only if `isCppOnly`, but given that Objective is a superset of C, it's probably safer to keep it the way it's done now.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80940/new/
https://reviews.llvm.org/D80940
More information about the cfe-commits
mailing list