BaseTools/ECC: Add a checkpoint to check no usage for deprecated functions.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen <hesheng.chen@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@ -34,6 +34,7 @@ _ConfigFileToInternalTranslation = {
|
||||
"CFunctionLayoutCheckFunctionBody":"CFunctionLayoutCheckFunctionBody",
|
||||
"CFunctionLayoutCheckFunctionName":"CFunctionLayoutCheckFunctionName",
|
||||
"CFunctionLayoutCheckFunctionPrototype":"CFunctionLayoutCheckFunctionPrototype",
|
||||
"CFunctionLayoutCheckNoDeprecated":"CFunctionLayoutCheckNoDeprecated",
|
||||
"CFunctionLayoutCheckNoInitOfVariable":"CFunctionLayoutCheckNoInitOfVariable",
|
||||
"CFunctionLayoutCheckNoStatic":"CFunctionLayoutCheckNoStatic",
|
||||
"CFunctionLayoutCheckOptionalFunctionalModifier":"CFunctionLayoutCheckOptionalFunctionalModifier",
|
||||
@ -242,6 +243,8 @@ class Configuration(object):
|
||||
self.CFunctionLayoutCheckNoInitOfVariable = 1
|
||||
# Check whether no use of STATIC for functions
|
||||
self.CFunctionLayoutCheckNoStatic = 1
|
||||
# Check whether no use of Deprecated functions
|
||||
self.CFunctionLayoutCheckNoDeprecated = 1
|
||||
|
||||
## Include Files Checking
|
||||
self.IncludeFileCheckAll = 0
|
||||
|
Reference in New Issue
Block a user