[PATCH] D116318: [clang-format][NFC] Fix a bug in getPreviousToken() in the parser
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 29 01:09:53 PST 2021
curdeius added a comment.
I'm in the same position as @hazardyknusperkeks.
If you need something to simplify the code you can add a helper `getPreviousTokenOrNull` or something like that in your patch.
But we certainly don't want to pay for the `if` check each time we call `getPreviousToken`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116318/new/
https://reviews.llvm.org/D116318
More information about the cfe-commits
mailing list