Skip to content

Commit 7514980

Browse files
committed
v1.1.1 beta patch
1 parent 25f2352 commit 7514980

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# visualizer (v1.1.1a)
1+
# visualizer (v1.1.1b)
22

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

visualizer/tree_objects.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,14 @@ def parse_cpp(self, cursor: clang.cindex.Cursor, code_tree: CodeTree, bruteforce
221221
code_tree.methods[i.get_usr()] = Function(self)
222222
self.body_nodes.append(code_tree.methods[i.get_usr()])
223223
code_tree.methods[i.get_usr()].parse_cpp(i, bruteforce, verbose)
224+
elif i.kind.name == 'CXX_BASE_SPECIFIER':
225+
pass
226+
# TODO: parse base specifier
227+
elif i.kind.name == 'USING_DECLARATION':
228+
pass
229+
# TODO: parse using declarations
224230
else:
225-
output_error(False, "Unknown structure field: ", i.kind.name)
231+
output_error(bruteforce, "Unknown structure field: ", i.kind.name, " location: ", i.location)
226232

227233
# TODO: add print method
228234

visualizer/visualizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def parse_cpp(self) -> None:
8484

8585
def parse_cpp_file(self, file_path: str) -> None:
8686
index = clang.cindex.Index.create()
87-
translation_unit = index.parse(file_path, args=[])
87+
translation_unit = index.parse(file_path, args=['-std=c++2a'])
8888

8989
diagnostics = list(translation_unit.diagnostics)
9090
if len(diagnostics):

0 commit comments

Comments
 (0)