Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
7db2f20f
Commit
7db2f20f
authored
3 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[bin][common] make header filter affirmative
parent
a28aefef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2816
Feature/bin common affirmative filter
Pipeline
#8227
passed
3 years ago
Stage: trigger
Stage: downstream modules
+2
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/util/common.py
+3
-3
3 additions, 3 deletions
bin/util/common.py
with
3 additions
and
3 deletions
bin/util/common.py
+
3
−
3
View file @
7db2f20f
...
...
@@ -198,9 +198,9 @@ def queryYesNo(question, default="yes"):
def
cppHeaderFilter
():
"""
Filter out source files that are not headers
(
sources are determined by looking
for config.h)
(
consider everything except
for config.h)
"""
return
lambda
fileName
:
fileName
=
=
"
config.h
"
return
lambda
fileName
:
fileName
!
=
"
config.h
"
def
includedCppProjectHeaders
(
file
,
projectBase
,
headers
=
None
,
headerFilter
=
cppHeaderFilter
()):
...
...
@@ -219,7 +219,7 @@ def includedCppProjectHeaders(file, projectBase, headers=None, headerFilter=cppH
def
process
(
pathInProject
):
headerPath
=
os
.
path
.
join
(
projectBase
,
pathInProject
)
if
os
.
path
.
exists
(
headerPath
):
if
not
headerFilter
(
pathInProject
):
if
headerFilter
(
pathInProject
):
if
headerPath
not
in
headers
:
headers
.
append
(
headerPath
)
includedCppProjectHeaders
(
headerPath
,
projectBase
,
headers
,
headerFilter
)
...
...
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