summaryrefslogtreecommitdiff
path: root/src/theory/mktheorytraits
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2020-09-02 22:15:30 +0200
committerGitHub <noreply@github.com>2020-09-02 15:15:30 -0500
commitf845c04a147021937f1b0a942ee2080df950cda3 (patch)
tree4b88acf9730f489904cade66cb3f9fec8969dab7 /src/theory/mktheorytraits
parentf9a4549c3dab3cd91f0d9973b24b7891048ed1d9 (diff)
Remove #line directives from generated files. (#5005)
This PR removes any usage of the #line directive. We no longer consider it particularly useful, and it obstructs reproducible builds (see #4980). Fixes #4980.
Diffstat (limited to 'src/theory/mktheorytraits')
-rwxr-xr-xsrc/theory/mktheorytraits9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/theory/mktheorytraits b/src/theory/mktheorytraits
index a87203015..1b1350abe 100755
--- a/src/theory/mktheorytraits
+++ b/src/theory/mktheorytraits
@@ -214,20 +214,15 @@ function enumerator {
lineno=${BASH_LINENO[0]}
check_theory_seen
type_enumerator_includes="${type_enumerator_includes}
-#line $lineno \"$kf\"
#include \"$3\""
if expr "$type_constants" : '.* '"$1"' ' &>/dev/null; then
mk_type_enumerator_type_constant_cases="${mk_type_enumerator_type_constant_cases}
-#line $lineno \"$kf\"
case $1:
-#line $lineno \"$kf\"
return new $2(type, tep);
"
elif expr "$type_kinds" : '.* '"$1"' ' &>/dev/null; then
mk_type_enumerator_cases="${mk_type_enumerator_cases}
-#line $lineno \"$kf\"
case kind::$1:
-#line $lineno \"$kf\"
return new $2(type, tep);
"
else
@@ -395,10 +390,6 @@ check_builtin_theory_seen
eval "theory_constructors=\"$theory_constructors\""
-# generate warnings about incorrect #line annotations in templates
-nl -ba -s' ' "$template" | grep '^ *[0-9][0-9]* # *line' |
- awk '{OFS="";if($1+1!=$3) print "'"$template"':",$1,": warning: incorrect annotation \"#line ",$3,"\" (it should be \"#line ",($1+1),"\")"}' >&2
-
text=$(cat "$template")
for var in \
theory_traits \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback