Skip to content

Commit

Permalink
Fix codegen regex
Browse files Browse the repository at this point in the history
  • Loading branch information
samkellerhals committed Nov 17, 2023
1 parent 0583c30 commit e3e16a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tests/icon4pygen/test_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def check_header_codegen(fname: str) -> None:

def check_gridtools_codegen(fname: str) -> None:
stencil_name = fname.replace(".hpp", "")
patterns = ["#include <.*>", "using .*;", f"inline auto {stencil_name}"]
patterns = ["#include <.*>", "using .*;", f"inline\s+auto\s+{stencil_name}"]
check_for_matches(fname, patterns)


Expand Down

0 comments on commit e3e16a5

Please sign in to comment.