]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools:Fix a ECC issue
authorFan, ZhijuX <zhijux.fan@intel.com>
Mon, 18 Feb 2019 06:23:30 +0000 (14:23 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Tue, 19 Feb 2019 12:32:42 +0000 (20:32 +0800)
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1522

A property error occurred because the property of the
function was not defined. a property is now redefined.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
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

index 21fed59cadb8dd8f55d75f46a3c34690c30d2af0..f844b4a0b3dc531116c898137b4749291ea690e0 100644 (file)
@@ -27,7 +27,7 @@ if sys.version_info.major == 3:
     from Ecc.CParser4.CParser import CParser\r
 else:\r
     import antlr3 as antlr\r
-    antlr.InputString = antlr.StringStream\r
+    antlr.InputStream = antlr.StringStream\r
     from Ecc.CParser3.CLexer import CLexer\r
     from Ecc.CParser3.CParser import CParser\r
 \r
index c19a3990c74e113855d37747f2f4dc4bdc9efca7..66c8dd788097f7e2a254b6ab116201e1e43c1f2d 100644 (file)
@@ -193,6 +193,8 @@ class Configuration(object):
         # Check if there is no trailing white space in one line.\r
         self.GeneralCheckTrailingWhiteSpaceLine = 1\r
 \r
+        self.CFunctionLayoutCheckNoDeprecated = 1\r
+\r
         ## Space Checking\r
         self.SpaceCheckAll = 1\r
 \r