1
0
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:
dpasukhi
2025-01-25 20:15:22 +00:00
parent dbba6f1289
commit a5a7b3185b
14005 changed files with 1273539 additions and 1195567 deletions

View File

@@ -11,7 +11,7 @@
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
// commercial license or contractual agreement.
#ifndef View_PreviewParameters_H
#define View_PreviewParameters_H
@@ -31,9 +31,8 @@
class View_PreviewParameters
{
public:
//! Constructor
Standard_EXPORT View_PreviewParameters (const Standard_Boolean theToTransparent = Standard_True);
Standard_EXPORT View_PreviewParameters(const Standard_Boolean theToTransparent = Standard_True);
//! Destructor
virtual ~View_PreviewParameters() {}
@@ -47,10 +46,14 @@ public:
//! \param theTreeView a view instance
//! \param[out] theItems properties
//! \param thePrefix preference item prefix
static void SaveState (View_PreviewParameters* theParameters,
QMap<QString, QString>& theItems,
const QString& thePrefix = QString())
{ (void)theParameters; (void)theItems; (void)thePrefix; }
static void SaveState(View_PreviewParameters* theParameters,
QMap<QString, QString>& theItems,
const QString& thePrefix = QString())
{
(void)theParameters;
(void)theItems;
(void)thePrefix;
}
//! Restores state of preview parameters by a container
//! \param theTreeView a view instance
@@ -58,13 +61,19 @@ public:
//! \param theValue property value
//! \param thePrefix preference item prefix
//! \return boolean value whether the property is applied to the tree view
static bool RestoreState (View_PreviewParameters* theParameters,
const QString& theKey, const QString& theValue,
const QString& thePrefix = QString())
{ (void)theParameters; (void)theKey; (void)theValue; (void)thePrefix; return false; }
static bool RestoreState(View_PreviewParameters* theParameters,
const QString& theKey,
const QString& theValue,
const QString& thePrefix = QString())
{
(void)theParameters;
(void)theKey;
(void)theValue;
(void)thePrefix;
return false;
}
private:
Handle(Prs3d_Drawer) myDrawer; //!< attributes for preview presentation
};