Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Martin Kurečka
Plumed AlphaFold
Commits
11397598
There was an error fetching the commit references. Please try again later.
Commit
11397598
authored
5 years ago
by
Giovanni Bussi
Browse files
Options
Downloads
Patches
Plain Diff
added include_non_module check
parent
6aa8aadf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/maketools/plumedcheck
+10
-0
10 additions, 0 deletions
src/maketools/plumedcheck
with
10 additions
and
0 deletions
src/maketools/plumedcheck
+
10
−
0
View file @
11397598
...
...
@@ -351,6 +351,16 @@ BEGINFILE{
# DOC: not installed. They should not be directly included in header files, otherwise
# DOC: those header files could be not usable once PLUMED is installed.
if
(
filetype
==
"header"
&&
h
!~
"\\.h"
)
error
(
"non_h_header"
,
"including non '.h' file "
h
" in a header file"
);
if
(
h
~
"^[A-Za-z0-9_][A-Za-z0-9_]*/"
)
{
sub
(
"/.*$"
,
""
,
h
)
# DOC: :include_non_used_module:
# DOC: When including a file in the form `"dir/file.h"`, `dir` should be an used module.
# DOC: This makes sure that we do not include system files that by chance are named as PLUMED modules.
# DOC: Indeed, when including `"file"` if the file is not found in the current path it is searched in
# DOC: system directories.
if
(
!
isarray
(
used_modules
[
module
])
||
(
h
in
used_modules
[
module
])
==
0
)
error
(
"include_non_used_module"
,
"including file in form "
h
"/file where "
h
" is not a used module"
);
}
}
# check if namespace PLMD is present
...
...
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