BaseTools: Various typo

Various typo in BaseTools.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Coeur <coeur@gmx.fr>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Antoine Coeur
2019-02-06 15:44:39 +08:00
committed by Liming Gao
parent 325ad62260
commit fb0b35e05f
172 changed files with 510 additions and 515 deletions

View File

@ -176,7 +176,7 @@ class PcdClassObject(object):
## Convert the class to a string
#
# Convert each member of the class to string
# Organize to a signle line format string
# Organize to a single line format string
#
# @retval Rtn Formatted String
#

View File

@ -121,7 +121,7 @@ class DecBuildData(PackageBuildClassObject):
## Retrieve all information in [Defines] section
#
# (Retriving all [Defines] information in one-shot is just to save time.)
# (Retrieving all [Defines] information in one-shot is just to save time.)
#
def _GetHeaderInfo(self):
RecordList = self._RawData[MODEL_META_DATA_HEADER, self._Arch]
@ -167,7 +167,7 @@ class DecBuildData(PackageBuildClassObject):
if self._Protocols is None:
#
# tdict is a special kind of dict, used for selecting correct
# protocol defition for given ARCH
# protocol definition for given ARCH
#
ProtocolDict = tdict(True)
PrivateProtocolDict = tdict(True)
@ -210,7 +210,7 @@ class DecBuildData(PackageBuildClassObject):
if self._Ppis is None:
#
# tdict is a special kind of dict, used for selecting correct
# PPI defition for given ARCH
# PPI definition for given ARCH
#
PpiDict = tdict(True)
PrivatePpiDict = tdict(True)
@ -253,7 +253,7 @@ class DecBuildData(PackageBuildClassObject):
if self._Guids is None:
#
# tdict is a special kind of dict, used for selecting correct
# GUID defition for given ARCH
# GUID definition for given ARCH
#
GuidDict = tdict(True)
PrivateGuidDict = tdict(True)

View File

@ -343,7 +343,7 @@ class DscBuildData(PlatformBuildClassObject):
## Retrieve all information in [Defines] section
#
# (Retriving all [Defines] information in one-shot is just to save time.)
# (Retrieving all [Defines] information in one-shot is just to save time.)
#
def _GetHeaderInfo(self):
RecordList = self._RawData[MODEL_META_DATA_HEADER, self._Arch]

View File

@ -205,7 +205,7 @@ class InfBuildData(ModuleBuildClassObject):
## Retrieve all information in [Defines] section
#
# (Retriving all [Defines] information in one-shot is just to save time.)
# (Retrieving all [Defines] information in one-shot is just to save time.)
#
@cached_class_function
def _GetHeaderInfo(self):
@ -816,7 +816,7 @@ class InfBuildData(ModuleBuildClassObject):
RetVal[Arch, ModuleType] = TemporaryDictionary[Arch, ModuleType]
return RetVal
## Retrieve depedency expression
## Retrieve dependency expression
@cached_property
def DepexExpression(self):
RetVal = tdict(False, 2)

View File

@ -438,7 +438,7 @@ class MetaFileParser(object):
ScopeKey = tuple(ScopeKey)
#
# DecParser SectionType is a list, will contain more than one item only in Pcd Section
# As Pcd section macro usage is not alllowed, so here it is safe
# As Pcd section macro usage is not allowed, so here it is safe
#
if isinstance(self, DecParser):
SectionDictKey = self._SectionType[0], ScopeKey

View File

@ -247,7 +247,7 @@ def GetModuleLibInstances(Module, Platform, BuildDatabase, Arch, Target, Toolcha
SortedLibraryList.append(Item)
#
# Build the list of constructor and destructir names
# Build the list of constructor and destructor names
# The DAG Topo sort produces the destructor order, so the list of constructors must generated in the reverse order
#
SortedLibraryList.reverse()

View File

@ -37,7 +37,7 @@ from Workspace.InfBuildData import InfBuildData
#
# @param DbPath Path of database file
# @param GlobalMacros Global macros used for replacement during file parsing
# @prarm RenewDb=False Create new database file if it's already there
# @param RenewDb=False Create new database file if it's already there
#
class WorkspaceDatabase(object):
@ -82,7 +82,7 @@ class WorkspaceDatabase(object):
Arch = None
return (FilePath, Arch) in self._CACHE_
# key = (FilePath, Arch=None, Target=None, Toochain=None)
# key = (FilePath, Arch=None, Target=None, Toolchain=None)
def __getitem__(self, Key):
FilePath = Key[0]
KeyLength = len(Key)
@ -123,7 +123,7 @@ class WorkspaceDatabase(object):
Arch,
MetaFileStorage(self.WorkspaceDb, FilePath, FileType)
)
# alwasy do post-process, in case of macros change
# always do post-process, in case of macros change
MetaFile.DoPostProcess()
# object the build is based on
BuildObject = self._GENERATOR_[FileType](
@ -149,7 +149,7 @@ class WorkspaceDatabase(object):
#
# @param DbPath Path of database file
# @param GlobalMacros Global macros used for replacement during file parsing
# @prarm RenewDb=False Create new database file if it's already there
# @param RenewDb=False Create new database file if it's already there
#
def __init__(self):
self.DB = dict()