Lines Matching refs:ID
42 int ID; variable
44 FileID() : ID(0) {} in FileID()
46 bool isValid() const { return ID != 0; } in isValid()
47 bool isInvalid() const { return ID == 0; } in isInvalid()
49 bool operator==(const FileID &RHS) const { return ID == RHS.ID; }
50 bool operator<(const FileID &RHS) const { return ID < RHS.ID; }
51 bool operator<=(const FileID &RHS) const { return ID <= RHS.ID; }
57 unsigned getHashValue() const { return static_cast<unsigned>(ID); } in getHashValue()
66 F.ID = V; in get()
69 int getOpaqueValue() const { return ID; } in getOpaqueValue()
89 unsigned ID; variable
98 SourceLocation() : ID(0) {} in SourceLocation()
100 bool isFileID() const { return (ID & MacroIDBit) == 0; } in isFileID()
101 bool isMacroID() const { return (ID & MacroIDBit) != 0; } in isMacroID()
108 bool isValid() const { return ID != 0; } in isValid()
109 bool isInvalid() const { return ID == 0; } in isInvalid()
114 return ID & ~MacroIDBit; in getOffset()
117 static SourceLocation getFileLoc(unsigned ID) { in getFileLoc() argument
118 assert((ID & MacroIDBit) == 0 && "Ran out of source locations!"); in getFileLoc()
120 L.ID = ID; in getFileLoc()
124 static SourceLocation getMacroLoc(unsigned ID) { in getMacroLoc() argument
125 assert((ID & MacroIDBit) == 0 && "Ran out of source locations!"); in getMacroLoc()
127 L.ID = MacroIDBit | ID; in getMacroLoc()
137 L.ID = ID+Offset; in getLocWithOffset()
146 unsigned getRawEncoding() const { return ID; } in getRawEncoding()
154 X.ID = Encoding; in getFromRawEncoding()