[all-commits] [llvm/llvm-project] 01174f: Remove unneeded checks for null; NFC (#145686)
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Wed Jun 25 06:04:58 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 01174ff2babece33c9cb72452befaff835b82de8
https://github.com/llvm/llvm-project/commit/01174ff2babece33c9cb72452befaff835b82de8
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-06-25 (Wed, 25 Jun 2025)
Changed paths:
M clang/lib/Format/TokenAnnotator.cpp
Log Message:
-----------
Remove unneeded checks for null; NFC (#145686)
At the start of the case for `tok::colon`, we do an early return if
`Prev` is null. Nothing else within that case modifies the value of
`Prev`, so the checks for null are unnecessary and were confusing
static analysis tools.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list