Skip to content

Commit 19766c2

Browse files
committed
v1.1.3c
1 parent 3e397ae commit 19766c2

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# visualizer (v1.1.3b)
1+
# visualizer (v1.1.3c)
22

33
This project aims to make a quick visual representation for a C++ project (though Python support is planned).
44

@@ -77,6 +77,10 @@ Bravo patch:
7777

7878
* Made better command line arguments for verbose and bruteforce modes
7979

80+
Charlie patch:
81+
82+
* Moved printing what files are detected to verbose output
83+
8084
# Known bugs // missing features:
8185
* Function calls inside Loop and If conditions are not registered
8286
* No way to see actual code from visualizer

visualizer/tree_objects.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def parse_cursor(children_nodes, cursor: clang.cindex.Cursor, parent_node, brute
4545
'CXX_TRY_STMT',
4646
'COMPOUND_ASSIGNMENT_OPERATOR',
4747
'CXX_UNARY_EXPR',
48+
'DECL_REF_EXPR',
49+
'SWITCH_STMT', # FIXME: parse switch statement
4850
]:
4951
if len(children_nodes) == 0 or type(children_nodes[-1]) != CodeBlock:
5052
children_nodes.append(CodeBlock(parent_node, bruteforce, verbose))

visualizer/visualizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ def parse_cpp(self) -> None:
7373
red_on_black_print('Given target is not a directory')
7474
sys.exit(1)
7575

76-
print("Processing DIR:\t", self.target)
76+
output_verbose(self.verbose, "Processing DIR:\t", self.target)
7777

7878
for root, subdirs, files in os.walk(self.target):
7979
for file_name in files:
8080
if file_name.endswith('.cpp'):
81-
print("Found C++:\t\t", root + '/' + file_name)
81+
output_verbose(self.verbose, "Found C++:\t\t", root + '/' + file_name)
8282
self.parse_cpp_file(root + '/' + file_name)
8383
else:
84-
print("Found Not C++:\t", root + '/' + file_name)
84+
output_verbose(self.verbose, "Found Not C++:\t", root + '/' + file_name)
8585

8686
def parse_cpp_file(self, file_path: str) -> None:
8787
index = clang.cindex.Index.create()

0 commit comments

Comments
 (0)