Permalink
Browse files

ClangComplexityBear: Make ``cursor_kinds`` private

  • Loading branch information...
arafsheikh committed Jul 5, 2016
1 parent 11301e9 commit 9e5b42fa14b50d91840a67646ed6779d8f5c22ae
Showing with 2 additions and 2 deletions.
  1. +2 −2 bears/c_languages/ClangComplexityBear.py
@@ -20,7 +20,7 @@ class ClangComplexityBear(LocalBear):
CAN_DETECT = {'Complexity'}
check_prerequisites = classmethod(clang_available)
decisive_cursor_kinds = {
_decisive_cursor_kinds = {
CursorKind.IF_STMT, CursorKind.WHILE_STMT, CursorKind.FOR_STMT,
CursorKind.DEFAULT_STMT, CursorKind.CASE_STMT}
@@ -34,7 +34,7 @@ def function_key_points(self, cursor, top_function_level=False):
decisions, exits = 0, 0
for child in cursor.get_children():
if child.kind in self.decisive_cursor_kinds:
if child.kind in self._decisive_cursor_kinds:
decisions += 1
elif child.kind == CursorKind.RETURN_STMT:
exits += 1

0 comments on commit 9e5b42f

Please sign in to comment.