ECC: Fix array type variable doxygen comment check
authorjlin16 <jlin16@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 9 Jul 2008 10:08:47 +0000 (10:08 +0000)
committerjlin16 <jlin16@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 9 Jul 2008 10:08:47 +0000 (10:08 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1282 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Ecc/c.py

index 4056000..427b9d3 100644 (file)
@@ -299,6 +299,10 @@ def GetParamList(FuncDeclarator, FuncNameLine = 0, FuncNameOffset = 0):
             ParamModifier += ' ' + '*'\r
             DeclText = DeclText.lstrip('*').strip()\r
         ParamName = DeclText\r
+        # ignore array length if exists.\r
+        LBIndex = ParamName.find('[')\r
+        if LBIndex != -1:\r
+            ParamName = ParamName[0:LBIndex]\r
         \r
         Start = RightSpacePos\r
         Index = 0\r