[analyzer] [NFC] Fix comments into more regular form.

This commit is contained in:
Denys Petrov 2022-08-11 20:58:39 +03:00
parent 499fca3cfc
commit adcd4b1c0b
1 changed files with 3 additions and 4 deletions

View File

@ -1286,8 +1286,8 @@ bool MemRegion::hasGlobalsOrParametersStorage() const {
return isa<StackArgumentsSpaceRegion, GlobalsSpaceRegion>(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<CXXBaseObjectRegion>(R))