Lines Matching defs:ID
45 enum ID {
47 #define BUILTIN(ID, TYPE, ATTRS) BI##ID,
76 /// appropriate builtin ID # and mark any non-portable builtin identifiers as
85 const char *GetName(unsigned ID) const {
86 return GetRecord(ID).Name;
90 const char *GetTypeString(unsigned ID) const {
91 return GetRecord(ID).Type;
96 bool isConst(unsigned ID) const {
97 return strchr(GetRecord(ID).Attributes, 'c') != nullptr;
101 bool isNoThrow(unsigned ID) const {
102 return strchr(GetRecord(ID).Attributes, 'n') != nullptr;
106 bool isNoReturn(unsigned ID) const {
107 return strchr(GetRecord(ID).Attributes, 'r') != nullptr;
111 bool isReturnsTwice(unsigned ID) const {
112 return strchr(GetRecord(ID).Attributes, 'j') != nullptr;
117 bool isUnevaluated(unsigned ID) const {
118 return strchr(GetRecord(ID).Attributes, 'u') != nullptr;
123 bool isLibFunction(unsigned ID) const {
124 return strchr(GetRecord(ID).Attributes, 'F') != nullptr;
130 bool isPredefinedLibFunction(unsigned ID) const {
131 return strchr(GetRecord(ID).Attributes, 'f') != nullptr;
137 bool isPredefinedRuntimeFunction(unsigned ID) const {
138 return strchr(GetRecord(ID).Attributes, 'i') != nullptr;
142 bool hasCustomTypechecking(unsigned ID) const {
143 return strchr(GetRecord(ID).Attributes, 't') != nullptr;
148 bool hasPtrArgsOrResult(unsigned ID) const {
149 return strchr(GetRecord(ID).Type, '*') != nullptr;
152 /// \brief Completely forget that the given ID was ever considered a builtin,
154 void ForgetBuiltin(unsigned ID, IdentifierTable &Table);
158 const char *getHeaderName(unsigned ID) const {
159 return GetRecord(ID).HeaderName;
165 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
170 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
176 bool isConstWithoutErrno(unsigned ID) const {
177 return strchr(GetRecord(ID).Attributes, 'e') != nullptr;
181 const Info &GetRecord(unsigned ID) const;
188 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,