From d6f5a5050b942cc0ec08bdc39900b8231957e18c Mon Sep 17 00:00:00 2001 From: "Fan, ZhijuX" Date: Wed, 4 Sep 2019 17:54:12 +0800 Subject: BaseTools:ECC need to handle lower case 'static' BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1778 We are going to add keyword (lower case) 'static' for functions and global variables which are not referenced outside their current C file. However, the ECC tool only recognizes upper case 'STATIC' at this moment. This will lead to issue reports for new codes that follow the above coding style. This patch is going to handle lower case 'static' Cc: Liming Gao Cc: Bob Feng Signed-off-by: Zhiju.Fan Reviewed-by: Bob Feng --- BaseTools/Source/Python/Ecc/Configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/Ecc/Configuration.py') diff --git a/BaseTools/Source/Python/Ecc/Configuration.py b/BaseTools/Source/Python/Ecc/Configuration.py index 57ae932ed2..9d9feaca5e 100644 --- a/BaseTools/Source/Python/Ecc/Configuration.py +++ b/BaseTools/Source/Python/Ecc/Configuration.py @@ -256,7 +256,7 @@ class Configuration(object): ## Declarations and Data Types Checking self.DeclarationDataTypeCheckAll = 0 - # Check whether no use of int, unsigned, char, void, static, long in any .c, .h or .asl files. + # Check whether no use of int, unsigned, char, void, long in any .c, .h or .asl files. self.DeclarationDataTypeCheckNoUseCType = 1 # Check whether the modifiers IN, OUT, OPTIONAL, and UNALIGNED are used only to qualify arguments to a function and should not appear in a data type declaration self.DeclarationDataTypeCheckInOutModifier = 1 -- cgit v1.2.3