Skip to content
Snippets Groups Projects
Commit d2f95160 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Fixed plumedcheck

Spaces in `#include` statements where not matched correctly.

See 38eee95826f905ac20a388885523becdd9d883e5 and #570
parent 646cb382
No related branches found
No related tags found
No related merge requests found
......@@ -570,8 +570,8 @@ ENDFILE{
error("non_existing_cpp","file " file " is a header but there is no corresponding source");
}
while((getline < cppfile)>=0){
if(match($0,"^ *#include")){
sub("^ *#include","");
if(match($0,"^# *include")){
sub("^# *include","");
# DOC: :non_included_h:
# DOC: The source file corresponding to a header file (that is: with the same name) should include it as the first included file.
# DOC: This is to make sure that all the header files that we install can be individually included and compiled.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment