We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bc8369 commit 4630fc7Copy full SHA for 4630fc7
src/etc/errorck.py
@@ -23,6 +23,15 @@
23
errcode_map = {}
24
error_re = re.compile("(E\d\d\d\d)")
25
26
+# In the register_long_diagnostics! macro, entries look like this:
27
+#
28
+# EXXXX: r##"
29
+# <Long diagnostic message>
30
+# "##,
31
32
+# These two variables are for detecting the beginning and end of diagnostic
33
+# messages so that duplicate error codes are not reported when a code occurs
34
+# inside a diagnostic message
35
long_diag_begin = "r##\""
36
long_diag_end = "\"##"
37
@@ -41,6 +50,7 @@
41
50
inside_long_diag = False
42
51
for line_num, line in enumerate(f, start=1):
43
52
if inside_long_diag:
53
+ # Skip duplicate error code checking for this line
44
54
if long_diag_end in line:
45
55
46
56
continue
0 commit comments