diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-21 06:51:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-21 06:51:45 +0200 |
commit | 995cd7946bf605804603fe79c6cef1ddf6db83b5 (patch) | |
tree | bf30105941c5fba32ac2e0cc696d6b1146f42c04 /libbuild2/parser.cxx | |
parent | a7a3cf206851b5896d938efa34a142aa1f0649b0 (diff) |
Ban module names that start with underscore
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index bec3230..b76bb18 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -3348,6 +3348,9 @@ namespace build2 n = move (i->value); + if (n[0] == '_') + fail (l) << "module name '" << n << "' starts with underscore"; + if (i->pair) try { |