]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/Ecc: Fix a bug of determining boolean variable incorrectly
authorHess Chen <hesheng.chen@intel.com>
Thu, 25 Jun 2015 08:10:51 +0000 (08:10 +0000)
committerhchen30 <hchen30@Edk2>
Thu, 25 Jun 2015 08:10:51 +0000 (08:10 +0000)
Fix a bug of determining boolean variable incorrectly in C parser

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <hesheng.chen@intel.com>
Reviewed-by: YangX Li <yangx.li@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17711 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Source/Python/Ecc/c.py

index a25532af06b5ffde2ae39ba70bd1326bc8983c21..997e631c97c195357eab18d4622ce9d0575732a3 100644 (file)
@@ -1172,6 +1172,8 @@ def GetVarInfo(PredVarList, FuncRecord, FullFileName, IsFuncCall=False, TargetTy
             else:\r
                 TypeList = GetDataTypeFromModifier(Param.Modifier).split()\r
                 Type = TypeList[-1]\r
+                if Type == '*' and len(TypeList) >= 2:\r
+                    Type = TypeList[-2]\r
                 if len(TypeList) > 1 and StarList != None:\r
                     for Star in StarList:\r
                         Type = Type.strip()\r