Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
6826c645
Commit
6826c645
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
corr
parent
5b4aeab7
No related branches found
No related tags found
1 merge request
!455
clang-tidy ctd
Pipeline
#49235
passed
3 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.clang-tidy
+4
-1
4 additions, 1 deletion
.clang-tidy
Device/Mask/Polygon.cpp
+2
-2
2 additions, 2 deletions
Device/Mask/Polygon.cpp
auto/Wrap/doxygenDevice.i
+1
-1
1 addition, 1 deletion
auto/Wrap/doxygenDevice.i
with
7 additions
and
4 deletions
.clang-tidy
+
4
−
1
View file @
6826c645
...
...
@@ -97,6 +97,7 @@ Checks: '*,
-*use-auto,
-*move-const-arg,
-*use-equals-default,
-*use-nullptr,
-*use-override,
-bugprone-parent-virtual-call,
...
...
@@ -112,6 +113,7 @@ Checks: '*,
-hicpp-noexcept-move,
-llvm-qualified-auto,
-misc-non-private-member-variables-in-classes,
-misc-uniqueptr-reset-release,
-modernize-loop-convert,
-modernize-make-unique,
-modernize-pass-by-value,
...
...
@@ -120,11 +122,12 @@ Checks: '*,
-modernize-use-using,
-performance-for-range-copy,
-readability-avoid-const-params-in-decls,
-readability-const-return-type,
-readability-non-const-parameter,
-readability-container-size-empty,
-readability-delete-null-pointer,
-readability-inconsistent-declaration-parameter-name,
-readability-qualified-auto,
-readability-const-return-type,
-readability-redundant-member-init,
-readability-simplify-boolean-expr,
...
...
This diff is collapsed.
Click to expand it.
Device/Mask/Polygon.cpp
+
2
−
2
View file @
6826c645
...
...
@@ -24,7 +24,7 @@ public:
using
polygon_t
=
boost
::
geometry
::
model
::
polygon
<
point_t
>
;
polygon_t
polygon
;
void
init_from
(
const
std
::
vector
<
double
>&
x
,
const
std
::
vector
<
double
>&
y
);
void
get_points
(
const
std
::
vector
<
double
>&
xpos
,
const
std
::
vector
<
double
>&
ypos
);
void
get_points
(
std
::
vector
<
double
>&
xpos
,
std
::
vector
<
double
>&
ypos
);
// TODO const or no-&
};
void
PolygonPrivate
::
init_from
(
const
std
::
vector
<
double
>&
x
,
const
std
::
vector
<
double
>&
y
)
...
...
@@ -40,7 +40,7 @@ void PolygonPrivate::init_from(const std::vector<double>& x, const std::vector<d
boost
::
geometry
::
correct
(
polygon
);
}
void
PolygonPrivate
::
get_points
(
const
std
::
vector
<
double
>&
xpos
,
const
std
::
vector
<
double
>&
ypos
)
void
PolygonPrivate
::
get_points
(
std
::
vector
<
double
>&
xpos
,
std
::
vector
<
double
>&
ypos
)
{
xpos
.
clear
();
ypos
.
clear
();
...
...
This diff is collapsed.
Click to expand it.
auto/Wrap/doxygenDevice.i
+
1
−
1
View file @
6826c645
...
...
@@ -2261,7 +2261,7 @@ The private data for polygons to hide boost dependency from the header.
%
feature
(
"
docstring
"
)
PolygonPrivate
::
init_from
"
void PolygonPrivate::init_from(const std::vector< double > &x, const std::vector< double > &y)
"
;
%
feature
(
"
docstring
"
)
PolygonPrivate
::
get_points
"
void PolygonPrivate::get_points(std::vector< double > &xpos, std::vector< double > &ypos)
%
feature
(
"
docstring
"
)
PolygonPrivate
::
get_points
"
void PolygonPrivate::get_points(
const
std::vector< double > &xpos,
const
std::vector< double > &ypos)
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment