(valobj)
| 137 | |
| 138 | |
| 139 | def get_string_value(valobj): |
| 140 | # Count on existing std::string visualizer to give us a summary so we don't |
| 141 | # need to do valobj.__r_.__value_.__l.__data_ |
| 142 | summary = valobj.GetSummary() |
| 143 | if summary and len(summary) >= 2 and summary[0] == '"' and summary[-1] == '"': |
| 144 | # Also count on the std::string summary being a valid python string |
| 145 | # representation. |
| 146 | return eval(summary) |
| 147 | return None |
| 148 | |
| 149 | |
| 150 | def make_synthetic_field(parent, summary, name): |
no test coverage detected
searching dependent graphs…