Commit f8de546c authored by Kevin Modzelewski's avatar Kevin Modzelewski Committed by Kevin Modzelewski

Lint exception for Python-ast.h

That file doesn't have an include guard so it's tricky to get it working.
parent 64b7d13e
......@@ -76,6 +76,12 @@ def verify_include_order(_, dir, files):
m = include_re.match(l)
if m:
# Python-ast.h is a tricky include file since it 1) doesn't have include guards, and 2)
# it doesn't include its dependencies. Let it (and cpython_ast.h which includes it)
# avoid the lint rules.
if m.group(1) == '"Python-ast.h"' or m.group(1) == '"cpython_ast.h"':
continue
if section is None:
section = []
section.append(m.group(1))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment