commit | 5a545440766886a1bbd09ed7221bb337705e5d14 | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Wed Aug 03 10:44:56 2016 -0700 |
committer | Iliyan Malchev <malchev@google.com> | Sat Aug 06 09:02:59 2016 -0700 |
tree | 7a4c1f4b4e557528a5493f22bc5518761719cac2 | |
parent | e61e3f7b138a992047a60c4b8c27f1c752ed57ba [diff] [blame] |
Better validation. Check that unions contain no fixup types and structs contain no references to interfaces (hwBinders).
diff --git a/AST.h b/AST.h index 5c18991..8dfaa69 100644 --- a/AST.h +++ b/AST.h
@@ -34,7 +34,9 @@ void enterScope(Scope *container); void leaveScope(); Scope *scope(); - void addScopedType(const char *localName, NamedType *type); + + // Returns true iff successful. + bool addScopedType(const char *localName, NamedType *type); void *scanner(); void setScanner(void *scanner);