Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
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
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
Main Repositories
otb
Commits
39dd9921
Commit
39dd9921
authored
8 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Mantis-1181: handle hxx and txx in header tests
parent
a5bb28a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Utilities/Maintenance/BuildHeaderTest.py
+5
-1
5 additions, 1 deletion
Utilities/Maintenance/BuildHeaderTest.py
with
5 additions
and
1 deletion
Utilities/Maintenance/BuildHeaderTest.py
+
5
−
1
View file @
39dd9921
...
...
@@ -108,14 +108,18 @@ def main():
else
:
max_idx
=
added_header_idx
+
maximum_number_of_headers
for
i
in
range
(
added_header_idx
,
max_idx
):
# Use the .hxx if possible.
# Use the .hxx
or .txx
if possible.
hxx_file
=
h_files
[
i
][:
-
1
]
+
'
hxx
'
txx_file
=
h_files
[
i
][:
-
1
]
+
'
txx
'
# Files that include VTK headers need to link to VTK.
if
h_files
[
i
]
in
BANNED_HEADERS
or
h_files
[
i
].
lower
().
find
(
'
vtk
'
)
!=
-
1
:
to_include
=
'
// #include
"'
+
h_files
[
i
]
+
'"
// Banned in BuildHeaderTest.py
\n
'
elif
os
.
path
.
exists
(
os
.
path
.
join
(
module_source_path
,
'
include
'
,
hxx_file
)):
to_include
=
'
#include
"'
+
hxx_file
+
'"
\n
'
elif
os
.
path
.
exists
(
os
.
path
.
join
(
module_source_path
,
'
include
'
,
txx_file
)):
to_include
=
'
#include
"'
+
txx_file
+
'"
\n
'
else
:
to_include
=
'
#include
"'
+
h_files
[
i
]
+
'"
\n
'
...
...
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