1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

Coding - Isolate long attached comments for clang-format #259

Automatically update code with clang-format disabling for avoiding formatting.
You can check the python script in GitHub PR
This commit is contained in:
dpasukhi
2025-01-16 20:15:29 +00:00
parent 9a6854774d
commit f91655b0c5
475 changed files with 1380 additions and 8 deletions

View File

@@ -356,7 +356,9 @@ Standard_Boolean Express_Entity::GenerateClass() const
for (Standard_Integer i = 2; i <= myInherit->Length(); i++)
{
Handle(Express_Entity) anEntity = myInherit->Value (i);
// clang-format off
anOS << " Handle(" << anEntity->CPPName() << ") my" << anEntity->Name() << "; //!< supertype\n";
// clang-format on
}
for (Standard_Integer i = 1; i <= myFields->Length(); i++)
{
@@ -692,7 +694,9 @@ Standard_Boolean Express_Entity::GenerateClass() const
// write method Share
Express::WriteMethodStamp (anOS, "Share");
std::ostringstream aStringOS;
// clang-format off
Standard_Integer aNnFileds2 = writeRWShareCode (aStringOS, 1, Standard_True); // write code for filling graph of references
// clang-format on
if (aRWCPPName.Length() < 40)
{
anOS << "void " << aRWCPPName << "::Share (const Handle(" << aCPPName << ")&" << ((aNnFileds2 > 1) ? "theEnt," : ",") << "\n";