Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Jan 12, 2016
1 parent 3e9fd1c commit 5031891
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ check:
--disable=missing-docstring \
--disable=too-many-arguments \
--disable=invalid-name \
--disable=redefined-variable-type \
--disable=simplifiable-if-statement \
--disable=too-many-locals \
--disable=too-many-return-statements \
Expand All @@ -18,6 +19,7 @@ check:
--disable=too-many-lines \
--disable=too-many-statements \
--disable=no-self-use \
--disable=undefined-loop-variable \
--disable=unused-argument \
--disable=too-few-public-methods \
cpp cppclean setup.py
Expand Down
2 changes: 0 additions & 2 deletions cpp/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
from __future__ import print_function
from __future__ import unicode_literals

import sys

from . import keywords
from . import tokenize

Expand Down
5 changes: 3 additions & 2 deletions cpp/find_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ def _determine_uses(self, included_files, forward_declarations):

for name, node in forward_declarations.items():
try:
file_use_node = symbol_table.lookup_symbol(node.name, node.namespace)
symbol_table.lookup_symbol(node.name, node.namespace)
decl_uses[name] |= USES_REFERENCE
except symbols.Error:
module = Module(name, None)
self.symbol_table.add_symbol(node.name, node.namespace, node, module)
self.symbol_table.add_symbol(node.name, node.namespace, node,
module)

def _add_declaration(name, namespace):
names = [n for n in namespace if n is not None]
Expand Down

0 comments on commit 5031891

Please sign in to comment.