[clang] [analyzer][NFC] Clean up `MemRegion.cpp` and align with llvm coding style (PR #218860)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 26 03:08:32 PDT 2026
================
@@ -808,13 +808,11 @@ std::string MemRegion::getDescriptiveName(bool UseQuotes,
SourceRange MemRegion::sourceRange() const {
// Check for more specific regions first.
- if (auto *FR = dyn_cast<FieldRegion>(this)) {
+ if (auto *FR = dyn_cast<FieldRegion>(this))
return FR->getDecl()->getSourceRange();
- }
- if (auto *VR = dyn_cast<VarRegion>(this->getBaseRegion())) {
+ if (auto *VR = dyn_cast<VarRegion>(this->getBaseRegion()))
----------------
steakhal wrote:
These brace changes doesn't really pull their weight.
https://github.com/llvm/llvm-project/pull/218860
More information about the cfe-commits
mailing list