diff options
Diffstat (limited to 'ppapi/generators')
-rw-r--r-- | ppapi/generators/idl_lint.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ppapi/generators/idl_lint.py b/ppapi/generators/idl_lint.py index 34fc62d..d60f7e3 100644 --- a/ppapi/generators/idl_lint.py +++ b/ppapi/generators/idl_lint.py @@ -43,6 +43,12 @@ class IDLLinter(IDLVisitor): node.Warning('Expecting a comment.') warnings += 1 + if node.IsA('File'): + labels = node.GetListOf('Label') + interfaces = node.GetListOf('Interface') + if interfaces and not labels: + node.Warning('Expecting a label in a file containing interfaces.') + if node.IsA('Struct', 'Typedef') and not node.GetProperty('wpass'): if node.GetProperty('passByValue'): pbv = 'is' |