From 3ae73218ca922df2d04ef1d84f4ea598b3afd9d5 Mon Sep 17 00:00:00 2001
From: Ralf Jung <jung@mpi-sws.org>
Date: Fri, 8 Jan 2021 14:24:58 +0100
Subject: [PATCH] make sure all Instance/Argument/Hint are qualified

---
 Makefile.coq.local | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.coq.local b/Makefile.coq.local
index 40fea9f7..95db31bf 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 stdpp Require Import options.' "$$FILE"; then echo "ERROR: $$FILE does not import 'options'."; echo; exit 1; fi \
+	  if ! fgrep -q 'From stdpp 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
 
-- 
GitLab