]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools:ECC report errors on account of analyze special characters
authorFan, ZhijuX <zhijux.fan@intel.com>
Mon, 6 May 2019 02:35:07 +0000 (10:35 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Wed, 8 May 2019 01:41:42 +0000 (09:41 +0800)
commit0cb3f77153b7fde612ed49dddd986cf8421be7ba
treea0318f804e852d7175e13d686634a6f056502a1a
parent8b4b2fb9a1839f719a8a4045fefafa66ddc52e63
BaseTools:ECC report errors on account of analyze special characters

BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1751

In case that a C function body contains the string of L'', L'\"',
L"\"", L''', L""", L"\"\"", L"\"^", L" \"", L"\" \"", ('L",\\\""')
ECC tool running under python3 interpreter will report error.
The antlr4 module misidentified this character

This patch is going to fix that issue.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/Ecc/CodeFragmentCollector.py
BaseTools/Source/Python/Ecc/Configuration.py
BaseTools/Source/Python/Ecc/c.py
BaseTools/Source/Python/Ecc/config.ini