MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / GetTableID

Function GetTableID

BaseTools/Source/Python/Ecc/c.py:551–571  ·  view source on GitHub ↗
(FullFileName, ErrorMsgList=None)

Source from the content-addressed store, hash-verified

549 Db.UpdateIdentifierBelongsToFunction()
550
551def GetTableID(FullFileName, ErrorMsgList=None):
552 if ErrorMsgList is None:
553 ErrorMsgList = []
554
555 Db = GetDB()
556 SqlStatement = """ select ID
557 from File
558 where FullPath like '%s'
559 """ % FullFileName
560 ResultSet = Db.TblFile.Exec(SqlStatement)
561
562 FileID = -1
563 for Result in ResultSet:
564 if FileID != -1:
565 ErrorMsgList.append('Duplicate file ID found in DB for file %s' % FullFileName)
566 return - 2
567 FileID = Result[0]
568 if FileID == -1:
569 ErrorMsgList.append('NO file ID found in DB for file %s' % FullFileName)
570 return - 1
571 return FileID
572
573def GetIncludeFileList(FullFileName):
574 if os.path.splitext(FullFileName)[1].upper() not in ('.H'):

Callers 15

GetIncludeFileListFunction · 0.85
GetTypedefDictFunction · 0.85
GetSUDictFunction · 0.85
GetVarInfoFunction · 0.85
CheckFuncLayoutModifierFunction · 0.85
CheckFuncLayoutNameFunction · 0.85
CheckFuncLayoutPrototypeFunction · 0.85
CheckFuncLayoutBodyFunction · 0.85
CheckDeclTypedefFormatFunction · 0.85
CheckDeclArgModifierFunction · 0.85

Calls 2

GetDBFunction · 0.70
ExecMethod · 0.45

Tested by

no test coverage detected