IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
corsika
Commits
302ecef0
Commit
302ecef0
authored
3 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
clang-format
parent
7fac117c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/FindCONEX.cmake
+0
-0
0 additions, 0 deletions
cmake/FindCONEX.cmake
corsika/framework/process/ContinuousProcessIndex.hpp
+1
-5
1 addition, 5 deletions
corsika/framework/process/ContinuousProcessIndex.hpp
do-clang-format.py
+12
-1
12 additions, 1 deletion
do-clang-format.py
with
13 additions
and
6 deletions
CM
ake
Modules
/FindCONEX.cmake
→
cm
ake/FindCONEX.cmake
+
0
−
0
View file @
302ecef0
File moved
This diff is collapsed.
Click to expand it.
corsika/framework/process/ContinuousProcessIndex.hpp
+
1
−
5
View file @
302ecef0
...
...
@@ -24,11 +24,7 @@ namespace corsika {
:
id_
(
id
)
{}
void
setIndex
(
int
const
id
)
{
id_
=
id
;
}
int
getIndex
()
const
{
return
id_
;
}
bool
operator
==
(
ContinuousProcessIndex
const
v
)
const
{
return
id_
==
v
.
id_
;
}
bool
operator
==
(
ContinuousProcessIndex
const
v
)
const
{
return
id_
==
v
.
id_
;
}
bool
operator
!=
(
ContinuousProcessIndex
const
v
)
const
{
return
id_
!=
v
.
id_
;
}
private
:
...
...
This diff is collapsed.
Click to expand it.
do-clang-format.py
+
12
−
1
View file @
302ecef0
...
...
@@ -10,6 +10,7 @@ import os
import
sys
import
re
debug
=
False
do_progress
=
False
try
:
from
progress.bar
import
ChargingBar
...
...
@@ -77,6 +78,9 @@ else:
filelist_clean
.
append
(
f
)
filelist
=
filelist_clean
if
debug
:
print
(
"
filelist:
"
,
filelist
)
cmd
=
"
clang-format
"
if
"
CLANG_FORMAT
"
in
os
.
environ
:
cmd
=
os
.
environ
[
"
CLANG_FORMAT
"
]
...
...
@@ -99,11 +103,18 @@ if do_progress:
bar
=
ChargingBar
(
'
Processing
'
,
max
=
len
(
filelist
))
if
args
.
apply
:
changed
=
[]
for
filename
in
filelist
:
if
bar
:
bar
.
next
()
a
=
open
(
filename
,
"
rb
"
).
read
()
subp
.
check_call
(
cmd
.
split
()
+
[
"
-i
"
,
filename
])
b
=
open
(
filename
,
"
rb
"
).
read
()
if
a
!=
b
:
changed
.
append
(
filename
)
if
bar
:
bar
.
finish
()
if
debug
:
print
(
"
changed:
"
,
changed
)
else
:
# only print files which need formatting
files_need_formatting
=
0
...
...
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