]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools:ECC need to handle lower case 'static'
authorFan, ZhijuX <zhijux.fan@intel.com>
Wed, 4 Sep 2019 09:54:12 +0000 (17:54 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Mon, 9 Sep 2019 03:14:42 +0000 (11:14 +0800)
commitd6f5a5050b942cc0ec08bdc39900b8231957e18c
tree8257ebe476c560c270eec7f0a7c7daf6369ea720
parent03ad3d889c64978c31a8ccd70f1862558bdb0a2d
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 <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/Ecc/Check.py
BaseTools/Source/Python/Ecc/Configuration.py
BaseTools/Source/Python/Ecc/EccToolError.py
BaseTools/Source/Python/Ecc/c.py