ECC: skip doxygen tag check for functions with VOID parameter.
authorjlin16 <jlin16@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 8 May 2008 06:15:31 +0000 (06:15 +0000)
committerjlin16 <jlin16@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 8 May 2008 06:15:31 +0000 (06:15 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1199 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Ecc/c.py

index 91b5605..3d7ead9 100644 (file)
@@ -1608,6 +1608,9 @@ def CheckFunctionHeaderConsistentWithDoxygenComment(FuncModifier, FuncHeader, Fu
         PrintErrorMsg(ERROR_DOXYGEN_CHECK_COMMENT_DESCRIPTION, 'Comment description should end with period \'.\'', TableName, CommentId)\r
     DoxygenTagNumber = len(DoxygenStrList)\r
     ParamNumber = len(ParamList)\r
+    for Param in ParamList:\r
+        if Param.Name.upper() == 'VOID':\r
+            ParamNumber -= 1\r
     Index = 0\r
     if ParamNumber > 0 and DoxygenTagNumber > 0:\r
         while Index < ParamNumber and Index < DoxygenTagNumber:\r