Lines Matching defs:ID
40 enum ID {
42 #define BUILTIN(ID, TYPE, ATTRS) BI##ID,
71 /// appropriate builtin ID # and mark any non-portable builtin identifiers as
81 const char *GetName(unsigned ID) const {
82 return GetRecord(ID).Name;
86 const char *GetTypeString(unsigned ID) const {
87 return GetRecord(ID).Type;
92 bool isConst(unsigned ID) const {
93 return strchr(GetRecord(ID).Attributes, 'c') != 0;
97 bool isNoThrow(unsigned ID) const {
98 return strchr(GetRecord(ID).Attributes, 'n') != 0;
102 bool isNoReturn(unsigned ID) const {
103 return strchr(GetRecord(ID).Attributes, 'r') != 0;
107 bool isReturnsTwice(unsigned ID) const {
108 return strchr(GetRecord(ID).Attributes, 'j') != 0;
113 bool isLibFunction(unsigned ID) const {
114 return strchr(GetRecord(ID).Attributes, 'F') != 0;
120 bool isPredefinedLibFunction(unsigned ID) const {
121 return strchr(GetRecord(ID).Attributes, 'f') != 0;
125 bool hasCustomTypechecking(unsigned ID) const {
126 return strchr(GetRecord(ID).Attributes, 't') != 0;
129 /// \brief Completely forget that the given ID was ever considered a builtin,
131 void ForgetBuiltin(unsigned ID, IdentifierTable &Table);
135 const char *getHeaderName(unsigned ID) const {
136 return GetRecord(ID).HeaderName;
142 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
147 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
153 bool isConstWithoutErrno(unsigned ID) const {
154 return strchr(GetRecord(ID).Attributes, 'e') != 0;
158 const Info &GetRecord(unsigned ID) const;