[PATCH] D115066: [clang-format][NFC] Reorder conditions
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 4 12:30:35 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4483e9b5279b: [clang-format][NFC] Reorder conditions (authored by HazardyKnusperkeks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115066/new/
https://reviews.llvm.org/D115066
Files:
clang/lib/Format/TokenAnnotator.cpp
Index: clang/lib/Format/TokenAnnotator.cpp
===================================================================
--- clang/lib/Format/TokenAnnotator.cpp
+++ clang/lib/Format/TokenAnnotator.cpp
@@ -2173,8 +2173,8 @@
int CurrentPrecedence = getCurrentPrecedence();
- if (Current && Current->is(TT_SelectorName) &&
- Precedence == CurrentPrecedence) {
+ if (Precedence == CurrentPrecedence && Current &&
+ Current->is(TT_SelectorName)) {
if (LatestOperator)
addFakeParenthesis(Start, prec::Level(Precedence));
Start = Current;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115066.391861.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211204/39ee3c65/attachment.bin>
More information about the cfe-commits
mailing list