From 01b9146608b017296d9a746031642b3853bbea40 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Tue, 29 Jun 2021 19:47:40 +0000 Subject: [PATCH] [asmxygen] Warn if an element has no comment git-svn-id: svn://kolibrios.org@8980 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/asmxygen.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/trunk/asmxygen.py b/kernel/trunk/asmxygen.py index f88ebea8b9..8ec83fb278 100644 --- a/kernel/trunk/asmxygen.py +++ b/kernel/trunk/asmxygen.py @@ -1357,12 +1357,17 @@ created_files = [] class AsmElement: def __init__(self, location, name, comment): + global warnings + self.location = location self.file = self.location.split(':')[0].replace('\\', '/') self.line = self.location.split(':')[1] self.name = name self.comment = comment + if self.comment == '': + warnings += f'{self.location}: Undocumented element\n' + def dump(self): print(f"{self.comment}") print(f"{self.location}: {self.name}")