]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Ecc/c.py
BaseTools: ECC tool Python3 adaption
authorFeng, Bob C <bob.c.feng@intel.com>
Fri, 4 Jan 2019 09:35:10 +0000 (17:35 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Fri, 1 Feb 2019 03:09:25 +0000 (11:09 +0800)
commitc60377d7f9ec80ecc7fe76c38b81ffd98b7ef2e4
treeca1900169f93b4b97d9d833fe8975ca4a467f00d
parentd943b0c339fe3d35ffdf9f580ccb7a55915c6854
BaseTools: ECC tool Python3 adaption

v2:
The python files under CParser4 are generated by antlr4 and for
python3 usage. They have python3 specific syntax, for example
the data type declaration for the arguments of a function. That
is not compitable with python2. this patch is to remove these syntax.

ECC tool Python3 adaption.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
19 files changed:
BaseTools/Source/Python/Ecc/CLexer.py [deleted file]
BaseTools/Source/Python/Ecc/CParser.py [deleted file]
BaseTools/Source/Python/Ecc/CParser3/CLexer.py [new file with mode: 0644]
BaseTools/Source/Python/Ecc/CParser3/CParser.py [new file with mode: 0644]
BaseTools/Source/Python/Ecc/CParser3/__init__.py [new file with mode: 0644]
BaseTools/Source/Python/Ecc/CParser4/C.g4 [new file with mode: 0644]
BaseTools/Source/Python/Ecc/CParser4/CLexer.py [new file with mode: 0644]
BaseTools/Source/Python/Ecc/CParser4/CListener.py [new file with mode: 0644]
BaseTools/Source/Python/Ecc/CParser4/CParser.py [new file with mode: 0644]
BaseTools/Source/Python/Ecc/CParser4/__init__.py [new file with mode: 0644]
BaseTools/Source/Python/Ecc/Check.py
BaseTools/Source/Python/Ecc/CodeFragmentCollector.py
BaseTools/Source/Python/Ecc/Configuration.py
BaseTools/Source/Python/Ecc/EccMain.py
BaseTools/Source/Python/Ecc/EccToolError.py
BaseTools/Source/Python/Ecc/FileProfile.py
BaseTools/Source/Python/Ecc/MetaDataParser.py
BaseTools/Source/Python/Ecc/c.py
BaseTools/Source/Python/Ecc/config.ini