Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-102033: Fix syntax error in Tools/c-analyzer #102066

Merged
merged 7 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Tools/c-analyzer/c_analyzer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
configure_logger,
get_prog,
filter_filenames,
iter_marks,
)
from c_parser.info import KIND
from c_parser.match import is_type_decl
from .match import filter_forward
from . import (
analyze as _analyze,
Expand Down
4 changes: 0 additions & 4 deletions Tools/c-analyzer/c_analyzer/info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from collections import namedtuple
import os.path

from c_common import fsutil
Expand All @@ -13,9 +12,6 @@
from c_parser.match import (
is_type_decl,
)
from .match import (
is_process_global,
)


IGNORED = _misc.Labeled('IGNORED')
Expand Down
Empty file.
4 changes: 0 additions & 4 deletions Tools/c-analyzer/c_common/iterutil.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@

_NOT_SET = object()


def peek_and_iter(items):
if not items:
return None, None
Expand Down
Empty file.
4 changes: 0 additions & 4 deletions Tools/c-analyzer/c_parser/__main__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import logging
import os.path
import sys

from c_common import fsutil
from c_common.scriptutil import (
CLIArgSpec as Arg,
add_verbosity_cli,
add_traceback_cli,
add_kind_filtering_cli,
Expand All @@ -15,7 +12,6 @@
get_prog,
main_for_filenames,
)
from .preprocessor import get_preprocessor
from .preprocessor.__main__ import (
add_common_cli as add_preprocessor_cli,
)
Expand Down
244 changes: 0 additions & 244 deletions Tools/c-analyzer/c_parser/_state_machine.py

This file was deleted.

3 changes: 1 addition & 2 deletions Tools/c-analyzer/c_parser/info.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from collections import namedtuple
import enum
import os.path
import re

from c_common import fsutil
from c_common.clsutil import classonly
import c_common.misc as _misc
import c_common.strutil as _strutil
import c_common.tables as _tables
from .parser._regexes import SIMPLE_TYPE, _STORAGE
from .parser._regexes import _STORAGE


FIXED_TYPE = _misc.Labeled('FIXED_TYPE')
Expand Down
6 changes: 0 additions & 6 deletions Tools/c-analyzer/c_parser/parser/_alt.py

This file was deleted.

54 changes: 0 additions & 54 deletions Tools/c-analyzer/c_parser/parser/_delim.py

This file was deleted.

1 change: 0 additions & 1 deletion Tools/c-analyzer/c_parser/parser/_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
set_capture_groups,
)
from ._compound_decl_body import DECL_BODY_PARSERS
#from ._func_body import parse_function_body
from ._func_body import parse_function_statics as parse_function_body


Expand Down
2 changes: 0 additions & 2 deletions Tools/c-analyzer/cpython/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys
import textwrap

from c_common.fsutil import expand_filenames, iter_files_by_suffix
from c_common.scriptutil import (
VERBOSITY,
add_verbosity_cli,
Expand All @@ -11,7 +10,6 @@
add_kind_filtering_cli,
add_files_cli,
add_progress_cli,
main_for_filenames,
process_args_by_key,
configure_logger,
get_prog,
Expand Down
Loading