Lines Matching refs:ID

46 enum ID {  enum
48 #define BUILTIN(ID, TYPE, ATTRS) BI##ID, argument
83 const char *getName(unsigned ID) const { in getName() argument
84 return getRecord(ID).Name; in getName()
88 const char *getTypeString(unsigned ID) const { in getTypeString() argument
89 return getRecord(ID).Type; in getTypeString()
93 bool isTSBuiltin(unsigned ID) const { in isTSBuiltin() argument
94 return ID >= Builtin::FirstTSBuiltin; in isTSBuiltin()
98 bool isPure(unsigned ID) const { in isPure() argument
99 return strchr(getRecord(ID).Attributes, 'U') != nullptr; in isPure()
104 bool isConst(unsigned ID) const { in isConst() argument
105 return strchr(getRecord(ID).Attributes, 'c') != nullptr; in isConst()
109 bool isNoThrow(unsigned ID) const { in isNoThrow() argument
110 return strchr(getRecord(ID).Attributes, 'n') != nullptr; in isNoThrow()
114 bool isNoReturn(unsigned ID) const { in isNoReturn() argument
115 return strchr(getRecord(ID).Attributes, 'r') != nullptr; in isNoReturn()
119 bool isReturnsTwice(unsigned ID) const { in isReturnsTwice() argument
120 return strchr(getRecord(ID).Attributes, 'j') != nullptr; in isReturnsTwice()
125 bool isUnevaluated(unsigned ID) const { in isUnevaluated() argument
126 return strchr(getRecord(ID).Attributes, 'u') != nullptr; in isUnevaluated()
131 bool isLibFunction(unsigned ID) const { in isLibFunction() argument
132 return strchr(getRecord(ID).Attributes, 'F') != nullptr; in isLibFunction()
138 bool isPredefinedLibFunction(unsigned ID) const { in isPredefinedLibFunction() argument
139 return strchr(getRecord(ID).Attributes, 'f') != nullptr; in isPredefinedLibFunction()
145 bool isPredefinedRuntimeFunction(unsigned ID) const { in isPredefinedRuntimeFunction() argument
146 return strchr(getRecord(ID).Attributes, 'i') != nullptr; in isPredefinedRuntimeFunction()
150 bool hasCustomTypechecking(unsigned ID) const { in hasCustomTypechecking() argument
151 return strchr(getRecord(ID).Attributes, 't') != nullptr; in hasCustomTypechecking()
156 bool hasPtrArgsOrResult(unsigned ID) const { in hasPtrArgsOrResult() argument
157 return strchr(getRecord(ID).Type, '*') != nullptr; in hasPtrArgsOrResult()
162 void forgetBuiltin(unsigned ID, IdentifierTable &Table);
166 const char *getHeaderName(unsigned ID) const { in getHeaderName() argument
167 return getRecord(ID).HeaderName; in getHeaderName()
173 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
178 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
184 bool isConstWithoutErrno(unsigned ID) const { in isConstWithoutErrno() argument
185 return strchr(getRecord(ID).Attributes, 'e') != nullptr; in isConstWithoutErrno()
188 const char *getRequiredFeatures(unsigned ID) const { in getRequiredFeatures() argument
189 return getRecord(ID).Features; in getRequiredFeatures()
193 bool isAuxBuiltinID(unsigned ID) const { in isAuxBuiltinID() argument
194 return ID >= (Builtin::FirstTSBuiltin + TSRecords.size()); in isAuxBuiltinID()
199 unsigned getAuxBuiltinID(unsigned ID) const { return ID - TSRecords.size(); } in getAuxBuiltinID() argument
206 const Info &getRecord(unsigned ID) const;
213 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,