Example #1
0
def warnMissing( symbols, insertions, warn, warnCommon, commonSuppressions, fatal, matchSyms=[], excludeSyms=[]):
    if warn:
        for i in symbols:
            if not Misc.symbolContainsListItem(i, matchSyms):
                continue
            if len(excludeSyms) > 0 and Misc.symbolContainsListItem(i, excludeSyms):
                continue
            p = insertions.get(i, None)
            if  p == None and \
                (warnCommon or not Misc.isCommon(i, commonSuppressions)):
                msg = "No block or splice found for output symbol " + i
                warnMessage(msg,fatal)