- Timestamp:
- 07/09/2017 12:23:40 AM (7 years ago)
- Branches:
- master
- Children:
- 6dd74a9
- Parents:
- 0c834c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/check-glob.py
r0c834c5 r60288f5 13 13 self.path = None 14 14 self.decl = {} 15 self.errs = [] 15 16 16 17 def visit_Typedef(self, node): … … 32 33 33 34 elif self.decl[node.name] != decl: 34 raise Exception("mismatch for {} in {}:{}: {} <-> {}". \35 format(node.name, node.coord.file, node.coord.line, \36 self.decl[node.name], decl))35 self.errs.append("mismatch for {} in {}:{}: {} <-> {}". \ 36 format(node.name, node.coord.file, node.coord.line, \ 37 self.decl[node.name], decl)) 37 38 38 39 def visit_FuncDef(self, node): … … 46 47 self.visit(ast) 47 48 self.path = None 49 50 def show_errs(self): 51 for err in self.errs: 52 print(err) 48 53 49 54 path_ast = [] … … 75 80 76 81 print("") 82 vis.show_errs()
Note:
See TracChangeset
for help on using the changeset viewer.