summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorHess Chen <hesheng.chen@intel.com>2015-06-25 08:10:51 +0000
committerhchen30 <hchen30@Edk2>2015-06-25 08:10:51 +0000
commit83461d2ce88bdeb12b25c74beaca84dcd457e5a3 (patch)
treeee6f1e66952c93250e5df50a783a179b0d62521c /BaseTools
parente84d2b709b82d2cbcb2b5b0fe2a58858af2ac01b (diff)
downloadedk2-83461d2ce88bdeb12b25c74beaca84dcd457e5a3.tar.gz
edk2-83461d2ce88bdeb12b25c74beaca84dcd457e5a3.tar.bz2
edk2-83461d2ce88bdeb12b25c74beaca84dcd457e5a3.zip
BaseTools/Ecc: Fix a bug of determining boolean variable incorrectly
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
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/Ecc/c.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Ecc/c.py b/BaseTools/Source/Python/Ecc/c.py
index a25532af06..997e631c97 100644
--- a/BaseTools/Source/Python/Ecc/c.py
+++ b/BaseTools/Source/Python/Ecc/c.py
@@ -1172,6 +1172,8 @@ def GetVarInfo(PredVarList, FuncRecord, FullFileName, IsFuncCall=False, TargetTy
else:
TypeList = GetDataTypeFromModifier(Param.Modifier).split()
Type = TypeList[-1]
+ if Type == '*' and len(TypeList) >= 2:
+ Type = TypeList[-2]
if len(TypeList) > 1 and StarList != None:
for Star in StarList:
Type = Type.strip()