# Set of file Path objects previously inlined (and to ignore if reencountering).
found: Set[Path] = set()
+# Compiled regex Patern to handle "#pragma once" in various formats:
+#
+# #pragma once
+# #pragma once
+# # pragma once
+# #pragma once
+# #pragma once // comment
+#
+# Ignoring commented versions, same as include_regex.
+#
+pragma_regex: Pattern = re.compile(r'^\s*#\s*pragma\s*once\s*')
+
# Compiled regex Patern to handle the following type of file includes:
#
# #include "file"
return True
return False
-# Compiled regex Patern to handle "#pragma once" in various formats:
-#
-# #pragma once
-# #pragma once
-# # pragma once
-# #pragma once
-# #pragma once // comment
-#
-# Ignoring commented versions, same as include_regex.
-#
-pragma_regex: Pattern = re.compile(r'^\s*#\s*pragma\s*once\s*')
-
# Simple tests to prove pragma_regex's cases.
#
def text_match_pragma() -> bool: