diff --git a/Makefile.coq.local b/Makefile.coq.local index c84026256919ada4c9e4a0aab9dfe2f30878fe47..2e0ca1e6da3b65c94a29b4b6e8b476d4da5bcc92 100644 --- a/Makefile.coq.local +++ b/Makefile.coq.local @@ -12,9 +12,10 @@ TESTFILES:=$(shell find tests -name "*.v") NORMALIZER:=test-normalizer.sed test: $(TESTFILES:.v=.vo) -# Make sure everything imports the options. +# Make sure everything imports the options, and all Instance/Argument/Hint are qualified. $(HIDE)for FILE in $(VFILES); do \ - if ! fgrep -q 'From iris.prelude Require Import options.' "$$FILE"; then echo "ERROR: $$FILE does not import 'options'."; echo; exit 1; fi \ + if ! fgrep -q 'From iris.prelude Require Import options.' "$$FILE"; then echo "ERROR: $$FILE does not import 'options'."; echo; exit 1; fi ; \ + if egrep '^\s*(Instance|Arguments|Hint (Extern|Constructors|Resolve|Immediate|Mode|Opaque|Transparent|Unfold))\s' "$$FILE"; then echo "ERROR: $$FILE contains unqualified 'Instance'/'Arguments'/'Hint'."; echo; exit 1; fi \ done .PHONY: test