Coding - Apply Clang-Tidy automatic fixes (#1245)

Flags:
aChecks="modernize-deprecated-headers,modernize-redundant-void-arg,modernize-use-bool-literals,modernize-use-equals-default,modernize-use-equals-delete,modernize-use-nullptr,modernize-use-override,performance-avoid-endl,performance-move-constructor-init,readability-braces-around-statements,readability-delete-null-pointer,readability-redundant-control-flow,readability-redundant-declaration,readability-redundant-function-ptr-dereference,readability-redundant-member-init,readability-redundant-string-init,readability-static-accessed-through-instance"

clang-tidy version: 22.1.3
This commit is contained in:
Pasukhin Dmitry
2026-04-29 15:04:38 +01:00
committed by GitHub
parent 2cafd4fa58
commit 1db8025677
3436 changed files with 95768 additions and 2933 deletions
@@ -20,7 +20,9 @@
int BRepGraph_LayerRegistry::RegisterLayer(const occ::handle<BRepGraph_Layer>& theLayer)
{
if (theLayer.IsNull())
{
return -1;
}
const Standard_GUID& aGUID = theLayer->ID();
const uint32_t* aSlot = myGuidToSlot.Seek(aGUID);
@@ -52,7 +54,9 @@ void BRepGraph_LayerRegistry::UnregisterLayer(const Standard_GUID& theGUID)
{
const uint32_t* aSlotPtr = myGuidToSlot.Seek(theGUID);
if (aSlotPtr == nullptr)
{
return;
}
const uint32_t aSlot = *aSlotPtr;
const uint32_t aLastSlot = static_cast<uint32_t>(myLayers.Size()) - 1;
@@ -81,7 +85,9 @@ void BRepGraph_LayerRegistry::SetOwningGraph(BRepGraph* theGraph) noexcept
for (const occ::handle<BRepGraph_Layer>& aLayer : myLayers)
{
if (!aLayer.IsNull())
{
aLayer->setOwningGraph(theGraph);
}
}
}
@@ -127,13 +133,17 @@ void BRepGraph_LayerRegistry::DispatchOnNodeRemoved(const BRepGraph_NodeId theNo
void BRepGraph_LayerRegistry::DispatchNodeModified(const BRepGraph_NodeId theNode) noexcept
{
if (!HasModificationSubscribers())
{
return;
}
const int aKindBit = BRepGraph_Layer::KindBit(theNode.NodeKind);
for (const occ::handle<BRepGraph_Layer>& aLayer : myLayers)
{
if ((aLayer->SubscribedKinds() & aKindBit) != 0)
{
aLayer->OnNodeModified(theNode);
}
}
}
@@ -144,12 +154,16 @@ void BRepGraph_LayerRegistry::DispatchNodesModified(
const int theModifiedKindsMask) noexcept
{
if (!HasModificationSubscribers() || theModifiedKindsMask == 0)
{
return;
}
for (const occ::handle<BRepGraph_Layer>& aLayer : myLayers)
{
if ((aLayer->SubscribedKinds() & theModifiedKindsMask) != 0)
{
aLayer->OnNodesModified(theModifiedNodes);
}
}
}
@@ -199,13 +213,17 @@ void BRepGraph_LayerRegistry::DispatchOnRefRemoved(const BRepGraph_RefId theRef)
void BRepGraph_LayerRegistry::DispatchRefModified(const BRepGraph_RefId theRef) noexcept
{
if (!HasRefModificationSubscribers())
{
return;
}
const int aRefKindBit = BRepGraph_Layer::RefKindBit(theRef.RefKind);
for (const occ::handle<BRepGraph_Layer>& aLayer : myLayers)
{
if ((aLayer->SubscribedRefKinds() & aRefKindBit) != 0)
{
aLayer->OnRefModified(theRef);
}
}
}
@@ -216,12 +234,16 @@ void BRepGraph_LayerRegistry::DispatchRefsModified(
const int theModifiedRefKindsMask) noexcept
{
if (!HasRefModificationSubscribers() || theModifiedRefKindsMask == 0)
{
return;
}
for (const occ::handle<BRepGraph_Layer>& aLayer : myLayers)
{
if ((aLayer->SubscribedRefKinds() & theModifiedRefKindsMask) != 0)
{
aLayer->OnRefsModified(theModifiedRefs, theModifiedRefKindsMask);
}
}
}