From adcd4b1c0bd43c89e579bf07daff7ffb02848012 Mon Sep 17 00:00:00 2001 From: Denys Petrov Date: Thu, 11 Aug 2022 20:58:39 +0300 Subject: [PATCH] [analyzer] [NFC] Fix comments into more regular form. --- clang/lib/StaticAnalyzer/Core/MemRegion.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Core/MemRegion.cpp b/clang/lib/StaticAnalyzer/Core/MemRegion.cpp index 81c11099e93f..bb64cbc4b71c 100644 --- a/clang/lib/StaticAnalyzer/Core/MemRegion.cpp +++ b/clang/lib/StaticAnalyzer/Core/MemRegion.cpp @@ -1286,8 +1286,8 @@ bool MemRegion::hasGlobalsOrParametersStorage() const { return isa(getMemorySpace()); } -// getBaseRegion strips away all elements and fields, and get the base region -// of them. +// Strips away all elements and fields. +// Returns the base region of them. const MemRegion *MemRegion::getBaseRegion() const { const MemRegion *R = this; while (true) { @@ -1307,8 +1307,7 @@ const MemRegion *MemRegion::getBaseRegion() const { return R; } -// getgetMostDerivedObjectRegion gets the region of the root class of a C++ -// class hierarchy. +// Returns the region of the root class of a C++ class hierarchy. const MemRegion *MemRegion::getMostDerivedObjectRegion() const { const MemRegion *R = this; while (const auto *BR = dyn_cast(R))