Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
f8de546c
Commit
f8de546c
authored
Oct 23, 2015
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Oct 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lint exception for Python-ast.h
That file doesn't have an include guard so it's tricky to get it working.
parent
64b7d13e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tools/lint.py
tools/lint.py
+6
-0
No files found.
tools/lint.py
View file @
f8de546c
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment