@@ -47,42 +47,10 @@ def preprocess(filename,
4747 return _iter_lines (text , filename , samefiles , cwd )
4848
4949
50- # Reasons:
51- # py_curses related have a stack return in unusual order for /include/curses.h
52- CLANG_IGNORES = (
53- '/Include/py_curses.h' ,
54- '/Modules/_cursesmodule.c' ,
55- '/Modules/_curses_panel.c'
56- )
57-
58- EXPERIMENTAL_PRINTED = False
59-
60- CLANG_EXPERIMENTAL = """
61-
62- WARNING
63- =======
64- clang preprocessor is in experimental state.
65- a) There might be false positives
66- b) Following files are skipped
67- {}
68-
69- """ .format ('\n ' .join ([' ' + fn for fn in CLANG_IGNORES ]))
70-
71-
7250EXIT_MARKERS = {'# 2 "<built-in>" 2' , '# 3 "<built-in>" 2' , '# 4 "<built-in>" 2' }
7351
7452
7553def _iter_lines (text , reqfile , samefiles , cwd , raw = False ):
76- global EXPERIMENTAL_PRINTED
77- if not EXPERIMENTAL_PRINTED :
78- print (CLANG_EXPERIMENTAL , flush = True )
79- EXPERIMENTAL_PRINTED = True
80-
81- # NOTE:clang specific
82- if reqfile .endswith (CLANG_IGNORES ):
83- print (f'\n Skipping: { reqfile } ' , flush = True )
84- return
85-
8654 lines = iter (text .splitlines ())
8755
8856 # The first line is special.
0 commit comments