clang-format

pull/11/head
A. R. Shajii 2022-01-07 11:06:09 -05:00
parent a51a4eb0bd
commit d238ee4656
2 changed files with 4 additions and 5 deletions

View File

@ -46,9 +46,8 @@ std::string StaticValue::toString() const {
return "";
if (!evaluated)
return type == StaticValue::STRING ? "str" : "int";
return type == StaticValue::STRING
? "'" + escape(std::get<std::string>(value)) + "'"
: std::to_string(std::get<int64_t>(value));
return type == StaticValue::STRING ? "'" + escape(std::get<std::string>(value)) + "'"
: std::to_string(std::get<int64_t>(value));
}
int64_t StaticValue::getInt() const {
seqassert(type == StaticValue::INT, "not an int");

View File

@ -716,8 +716,8 @@ ExprPtr SimplifyVisitor::transformInt(const std::string &value,
}
/// Custom suffix sfx: use int.__suffix_sfx__(str) call.
/// NOTE: you cannot neither use binary (0bXXX) format here.
return transform(N<CallExpr>(N<DotExpr>("int", format("__suffix_{}__", suffix)),
N<IntExpr>(val)));
return transform(
N<CallExpr>(N<DotExpr>("int", format("__suffix_{}__", suffix)), N<IntExpr>(val)));
}
ExprPtr SimplifyVisitor::transformFloat(const std::string &value,