Lines Matching refs: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;
146 /// \brief Completely forget that the given ID was ever considered a builtin,
148 void ForgetBuiltin(unsigned ID, IdentifierTable &Table);
152 const char *getHeaderName(unsigned ID) const {
153 return GetRecord(ID).HeaderName;
159 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
164 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
170 bool isConstWithoutErrno(unsigned ID) const {
171 return strchr(GetRecord(ID).Attributes, 'e') != nullptr;
175 const Info &GetRecord(unsigned ID) const;
182 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,