diff options
author | Hess Chen <hesheng.chen@intel.com> | 2018-10-16 13:49:35 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-24 08:41:04 +0800 |
commit | 7a57490c2ebafa5411d7fef62710d8778f17c9b1 (patch) | |
tree | 43b542cbdd4bdef19cfd7b3ac3693050224157a7 /BaseTools/Source/Python/Ecc/Check.py | |
parent | 3a244b8db4e76a7c945b58f49746152dd8787172 (diff) | |
download | edk2-7a57490c2ebafa5411d7fef62710d8778f17c9b1.tar.gz edk2-7a57490c2ebafa5411d7fef62710d8778f17c9b1.tar.bz2 edk2-7a57490c2ebafa5411d7fef62710d8778f17c9b1.zip |
BaseTools/Ecc: Update a checkpoint criteria.
Change the criteria of the checkpoint of "#ifndef" to remove the requirement of prefix '_'.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <hesheng.chen@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/Check.py')
-rw-r--r-- | BaseTools/Source/Python/Ecc/Check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Ecc/Check.py b/BaseTools/Source/Python/Ecc/Check.py index 268e02126c..dfcc0302bc 100644 --- a/BaseTools/Source/Python/Ecc/Check.py +++ b/BaseTools/Source/Python/Ecc/Check.py @@ -1444,7 +1444,7 @@ class Check(object): RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)
for Record in RecordSet:
Name = Record[1].replace('#ifndef', '').strip()
- if Name[0] != '_' or Name[-1] != '_':
+ if Name[-1] != '_':
if not EccGlobalData.gException.IsException(ERROR_NAMING_CONVENTION_CHECK_IFNDEF_STATEMENT, Name):
EccGlobalData.gDb.TblReport.Insert(ERROR_NAMING_CONVENTION_CHECK_IFNDEF_STATEMENT, OtherMsg="The #ifndef name [%s] does not follow the rules" % (Name), BelongsToTable=FileTable, BelongsToItem=Record[0])
|