// base/location.h// Location provides basic info where of an object was constructed, or was// significantly brought to life.classBASE_EXPORT Location {// 省略// Will be nullptr for default initialized Location objects and when source// names are disabled.constchar*function_name()const{return function_name_;}// Will be nullptr for default initialized Location objects and when source// names are disabled.constchar*file_name()const{return file_name_;}// Will be -1 for default initialized Location objects and when source names// are disabled.intline_number()const{return line_number_;}// The address of the code generating this Location object. Should always be// valid except for default initialized Location objects, which will be// nullptr.constvoid*program_counter()const{return program_counter_;}// Converts to the most user-readable form possible. If function and filename// are not available, this will return "pc:<hex address>".
std::string ToString()const;}