Skip to content

Commit

Permalink
Add tidy file to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kursatyurt committed Mar 31, 2023
1 parent cb1c3d1 commit 822b092
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Checks: '-*,modernize-avoid-bind,modernize-deprecated-headers,modernize-deprecated-ios-base-aliases,modernize-macro-to-enum,modernize-pass-by-value,modernize-raw-string-literal,modernize-redundant-void-arg,modernize-replace-auto-ptr,modernize-replace-disallow-copy-and-assign-macro,modernize-replace-random-shuffle,modernize-return-braced-init-list,modernize-shrink-to-fit,modernize-unary-static-assert,modernize-use-auto,modernize-use-bool-literals,modernize-use-default-member-init,modernize-use-emplace,modernize-use-equals-default,modernize-use-equals-delete,modernize-use-noexcept,modernize-use-nullptr,modernize-use-override,modernize-use-transparent-functors,modernize-use-using,readability-const-return-type,readability-avoid-const-params-in-decls,readability-container-data-pointer,readability-container-size-empty,readability-delete-null-pointer,readability-duplicate-include,readability-non-const-parameter,readability-redundant-access-specifiers,readability-redundant-control-flow,readability-redundant-declaration,readability-redundant-function-ptr-dereference,readability-redundant-smartptr-get,readability-redundant-string-cstr,readability-redundant-string-init,readability-simplify-boolean-expr,readability-simplify-subscript-expr,performance-*'
CheckOptions:
- {key: modernize-use-override.AllowOverrideAndFinal, value: 'true'}
- {key: performance-unnecessary-copy-initialization.AllowedTypes, value: 'su2double'}
- {key: performance-unnecessary-value-param.AllowedTypes, value: 'su2double'}
8 changes: 4 additions & 4 deletions Common/include/geometry/CGeometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ extern "C" {
#include <sstream>
#include <cmath>
#include <algorithm>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <climits>
#include <memory>
#include <unordered_map>
Expand Down Expand Up @@ -1678,7 +1678,7 @@ class CGeometry {
/*!
* \brief Compute and store the volume of the primal elements.
*/
void SetElemVolume() const;
void SetElemVolume();

/*!
* \brief Set the multigrid index for the current geometry object.
Expand Down
20 changes: 10 additions & 10 deletions Common/src/grid_movement/CFreeFormDefBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void CFreeFormDefBox::SetUnitCornerPoints() {
delete[] coord;
}

void CFreeFormDefBox::SetControlPoints_Parallelepiped() const {
void CFreeFormDefBox::SetControlPoints_Parallelepiped() {
unsigned short iDim, iDegree, jDegree, kDegree;

/*--- Set base control points according to the notation of Vtk for hexahedrons ---*/
Expand Down Expand Up @@ -265,7 +265,7 @@ void CFreeFormDefBox::SetSupportCP(CFreeFormDefBox* FFDBox) {
}
}

void CFreeFormDefBox::SetSupportCPChange(CFreeFormDefBox* FFDBox) const {
void CFreeFormDefBox::SetSupportCPChange(CFreeFormDefBox* FFDBox) {
unsigned short iDim, iOrder, jOrder, kOrder;
su2double *CartCoordNew, *ParamCoord;
unsigned short lOrder = FFDBox->GetlOrder();
Expand Down Expand Up @@ -310,7 +310,7 @@ void CFreeFormDefBox::SetSupportCPChange(CFreeFormDefBox* FFDBox) const {
}
}

void CFreeFormDefBox::SetCart2Cyl_ControlPoints(CConfig* config) const {
void CFreeFormDefBox::SetCart2Cyl_ControlPoints(CConfig* config) {
unsigned short iDegree, jDegree, kDegree;
su2double CartCoord[3];
su2double X_0, Y_0, Z_0, Xbar, Ybar, Zbar;
Expand Down Expand Up @@ -354,7 +354,7 @@ void CFreeFormDefBox::SetCart2Cyl_ControlPoints(CConfig* config) const {
}
}

void CFreeFormDefBox::SetCyl2Cart_ControlPoints(CConfig* config) const {
void CFreeFormDefBox::SetCyl2Cart_ControlPoints(CConfig* config) {
unsigned short iDegree, jDegree, kDegree;
su2double PolarCoord[3];

Expand Down Expand Up @@ -386,7 +386,7 @@ void CFreeFormDefBox::SetCyl2Cart_ControlPoints(CConfig* config) const {
}
}

void CFreeFormDefBox::SetCart2Cyl_CornerPoints(CConfig* config) const {
void CFreeFormDefBox::SetCart2Cyl_CornerPoints(CConfig* config) {
unsigned short iCornerPoint;
su2double* CartCoord;
su2double X_0, Y_0, Z_0, Xbar, Ybar, Zbar;
Expand All @@ -408,7 +408,7 @@ void CFreeFormDefBox::SetCart2Cyl_CornerPoints(CConfig* config) const {
}
}

void CFreeFormDefBox::SetCyl2Cart_CornerPoints(CConfig* config) const {
void CFreeFormDefBox::SetCyl2Cart_CornerPoints(CConfig* config) {
unsigned short iCornerPoint;
su2double* PolarCoord;
su2double X_0, Y_0, Z_0, Xbar, Ybar, Zbar;
Expand All @@ -430,7 +430,7 @@ void CFreeFormDefBox::SetCyl2Cart_CornerPoints(CConfig* config) const {
}
}

void CFreeFormDefBox::SetCart2Sphe_ControlPoints(CConfig* config) const {
void CFreeFormDefBox::SetCart2Sphe_ControlPoints(CConfig* config) {
unsigned short iDegree, jDegree, kDegree;
su2double CartCoord[3];
su2double X_0, Y_0, Z_0, Xbar, Ybar, Zbar;
Expand Down Expand Up @@ -476,7 +476,7 @@ void CFreeFormDefBox::SetCart2Sphe_ControlPoints(CConfig* config) const {
}
}

void CFreeFormDefBox::SetSphe2Cart_ControlPoints(CConfig* config) const {
void CFreeFormDefBox::SetSphe2Cart_ControlPoints(CConfig* config) {
unsigned short iDegree, jDegree, kDegree;
su2double PolarCoord[3];

Expand Down Expand Up @@ -508,7 +508,7 @@ void CFreeFormDefBox::SetSphe2Cart_ControlPoints(CConfig* config) const {
}
}

void CFreeFormDefBox::SetCart2Sphe_CornerPoints(CConfig* config) const {
void CFreeFormDefBox::SetCart2Sphe_CornerPoints(CConfig* config) {
unsigned short iCornerPoint;
su2double* CartCoord;
su2double X_0, Y_0, Z_0, Xbar, Ybar, Zbar;
Expand All @@ -530,7 +530,7 @@ void CFreeFormDefBox::SetCart2Sphe_CornerPoints(CConfig* config) const {
}
}

void CFreeFormDefBox::SetSphe2Cart_CornerPoints(CConfig* config) const {
void CFreeFormDefBox::SetSphe2Cart_CornerPoints(CConfig* config) {
unsigned short iCornerPoint;
su2double* PolarCoord;
su2double X_0, Y_0, Z_0, Xbar, Ybar, Zbar;
Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/src/numerics/CNumerics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ void CNumerics::GetPrimitive2Conservative (const su2double *val_Mean_PrimVar,
}
}

void CNumerics::CreateBasis(const su2double *val_Normal, su2double* l, su2double* m) const {
void CNumerics::CreateBasis(const su2double *val_Normal, su2double* l, su2double* m) {

unsigned short iDim;
su2double modm, modl;
Expand Down

0 comments on commit 822b092

Please sign in to comment.