Lines Matching refs:strVal
510 # Entries are [ Element, numVal, strVal ] matching name or value
518 (numVal, strVal) = self.enumToValue(elem, True)
527 if (strVal2 == strVal or (numVal is not None
531 # ') found with the same value:' + strVal)
534 + ') found with different values:' + strVal
545 name, name2.get('name'), strVal)
549 nameMap[name] = [elem, numVal, strVal]
551 valueMap[numVal] = [elem, numVal, strVal]
652 (numVal, strVal) = self.enumToValue(elem, True, bitwidth, True)
657 self.logMsg('error', 'Allowable range for flag types in C is [', minValidValue, ',', maxValidValue, '], but', name, 'flag has a value outside of this (', strVal, ')\n')
668 decl += "#define {} {}\n".format(name, strVal)
670 decl += "static constexpr {} {} {{{}}};\n".format(flagTypeName, name, strVal)
676 alias = self.registry.tree.find("enums/enum[@name='" + strVal + "']")
678 (numVal, strVal) = self.enumToValue(alias, True, bitwidth, True)
680 self.logMsg('error', 'No such alias {} for enum {}'.format(strVal, name))
681 decl += "static const {} {} = {};\n".format(flagTypeName, name, strVal)
749 (numVal, strVal) = self.enumToValue(elem, True)
765 decl += ' {} = {},'.format(name, strVal)
777 self.logMsg('error', 'Allowable range for C enum types is [', minValidValue, ',', maxValidValue, '], but', name, 'has a value outside of this (', strVal, ')\n')
825 (_, strVal) = self.enumToValue(enuminfo.elem, False)
831 invert = '~' in strVal
832 number = strVal.strip("()~UL")
835 strVal = "~" if invert else ""
836 strVal += "static_cast<" + typeStr + ">(" + number + ")"
837 body = 'static constexpr ' + typeStr.ljust(9) + name.ljust(33) + ' {' + strVal + '};'
841 invert = '~' in strVal
842 paren = '(' in strVal
843 number = strVal.strip("()~UL")
849 strVal = "~" if invert else ""
850 strVal += number
852 strVal = "(" + strVal + ")";
853 body = '#define ' + name.ljust(33) + ' ' + strVal;
855 body = '#define ' + name.ljust(33) + ' ' + strVal