mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Coding - Apply .clang-format formatting #286
Update empty method guards to new style with regex (see PR). Used clang-format 18.1.8. New actions to validate code formatting is added. Update .clang-format with disabling of include sorting. It is temporary changes, then include will be sorted. Apply formatting for /src and /tools folder. The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
@@ -29,70 +29,69 @@
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_ShareTool.hxx>
|
||||
|
||||
IGESSolid_ToolSolidInstance::IGESSolid_ToolSolidInstance () { }
|
||||
IGESSolid_ToolSolidInstance::IGESSolid_ToolSolidInstance() {}
|
||||
|
||||
|
||||
void IGESSolid_ToolSolidInstance::ReadOwnParams
|
||||
(const Handle(IGESSolid_SolidInstance)& ent,
|
||||
const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const
|
||||
void IGESSolid_ToolSolidInstance::ReadOwnParams(const Handle(IGESSolid_SolidInstance)& ent,
|
||||
const Handle(IGESData_IGESReaderData)& IR,
|
||||
IGESData_ParamReader& PR) const
|
||||
{
|
||||
Handle(IGESData_IGESEntity) tempEntity;
|
||||
//Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
|
||||
// Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
|
||||
|
||||
// clang-format off
|
||||
// clang-format off
|
||||
PR.ReadEntity(IR, PR.Current(), "Solid Entity", tempEntity); //szv#4:S4163:12Mar99 `st=` not needed
|
||||
// clang-format on
|
||||
// clang-format on
|
||||
|
||||
DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
|
||||
DirChecker(ent).CheckTypeAndForm(PR.CCheck(), ent);
|
||||
ent->Init(tempEntity);
|
||||
}
|
||||
|
||||
void IGESSolid_ToolSolidInstance::WriteOwnParams
|
||||
(const Handle(IGESSolid_SolidInstance)& ent, IGESData_IGESWriter& IW) const
|
||||
void IGESSolid_ToolSolidInstance::WriteOwnParams(const Handle(IGESSolid_SolidInstance)& ent,
|
||||
IGESData_IGESWriter& IW) const
|
||||
{
|
||||
IW.Send(ent->Entity());
|
||||
}
|
||||
|
||||
void IGESSolid_ToolSolidInstance::OwnShared
|
||||
(const Handle(IGESSolid_SolidInstance)& ent, Interface_EntityIterator& iter) const
|
||||
void IGESSolid_ToolSolidInstance::OwnShared(const Handle(IGESSolid_SolidInstance)& ent,
|
||||
Interface_EntityIterator& iter) const
|
||||
{
|
||||
iter.GetOneItem(ent->Entity());
|
||||
}
|
||||
|
||||
void IGESSolid_ToolSolidInstance::OwnCopy
|
||||
(const Handle(IGESSolid_SolidInstance)& another,
|
||||
const Handle(IGESSolid_SolidInstance)& ent, Interface_CopyTool& TC) const
|
||||
void IGESSolid_ToolSolidInstance::OwnCopy(const Handle(IGESSolid_SolidInstance)& another,
|
||||
const Handle(IGESSolid_SolidInstance)& ent,
|
||||
Interface_CopyTool& TC) const
|
||||
{
|
||||
DeclareAndCast(IGESData_IGESEntity, tempEntity,
|
||||
TC.Transferred(another->Entity()));
|
||||
ent->Init (tempEntity);
|
||||
DeclareAndCast(IGESData_IGESEntity, tempEntity, TC.Transferred(another->Entity()));
|
||||
ent->Init(tempEntity);
|
||||
}
|
||||
|
||||
IGESData_DirChecker IGESSolid_ToolSolidInstance::DirChecker
|
||||
(const Handle(IGESSolid_SolidInstance)& /*ent*/) const
|
||||
IGESData_DirChecker IGESSolid_ToolSolidInstance::DirChecker(
|
||||
const Handle(IGESSolid_SolidInstance)& /*ent*/) const
|
||||
{
|
||||
IGESData_DirChecker DC(430, 0,1);
|
||||
IGESData_DirChecker DC(430, 0, 1);
|
||||
|
||||
DC.Structure (IGESData_DefVoid);
|
||||
DC.LineFont (IGESData_DefAny);
|
||||
DC.Color (IGESData_DefAny);
|
||||
DC.Structure(IGESData_DefVoid);
|
||||
DC.LineFont(IGESData_DefAny);
|
||||
DC.Color(IGESData_DefAny);
|
||||
|
||||
DC.GraphicsIgnored (1);
|
||||
DC.GraphicsIgnored(1);
|
||||
return DC;
|
||||
}
|
||||
|
||||
void IGESSolid_ToolSolidInstance::OwnCheck
|
||||
(const Handle(IGESSolid_SolidInstance)& /*ent*/,
|
||||
const Interface_ShareTool& , Handle(Interface_Check)& /*ach*/) const
|
||||
void IGESSolid_ToolSolidInstance::OwnCheck(const Handle(IGESSolid_SolidInstance)& /*ent*/,
|
||||
const Interface_ShareTool&,
|
||||
Handle(Interface_Check)& /*ach*/) const
|
||||
{
|
||||
}
|
||||
|
||||
void IGESSolid_ToolSolidInstance::OwnDump
|
||||
(const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper,
|
||||
Standard_OStream& S, const Standard_Integer level) const
|
||||
void IGESSolid_ToolSolidInstance::OwnDump(const Handle(IGESSolid_SolidInstance)& ent,
|
||||
const IGESData_IGESDumper& dumper,
|
||||
Standard_OStream& S,
|
||||
const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESSolid_SolidInstance\n"
|
||||
<< "Solid entity : ";
|
||||
dumper.Dump(ent->Entity(),S, (level <= 4) ? 0 : 1);
|
||||
dumper.Dump(ent->Entity(), S, (level <= 4) ? 0 : 1);
|
||||
S << std::endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user