mirror of https://github.com/exaloop/codon
Format
parent
dd5f8783cd
commit
dcf1e9ba33
|
@ -173,8 +173,7 @@ struct BoolExpr : public Expr {
|
|||
/// @li 13u
|
||||
/// @li 000_010b
|
||||
struct IntExpr : public Expr {
|
||||
/// Expression value is stored as a string that is parsed during the simplify
|
||||
/// stage.
|
||||
/// Expression value is stored as a string that is parsed during the simplify stage.
|
||||
std::string value;
|
||||
/// Number suffix (e.g. "u" for "123u").
|
||||
std::string suffix;
|
||||
|
@ -197,8 +196,7 @@ struct IntExpr : public Expr {
|
|||
/// @li 13.15z
|
||||
/// @li e-12
|
||||
struct FloatExpr : public Expr {
|
||||
/// Expression value is stored as a string that is parsed during the simplify
|
||||
/// stage.
|
||||
/// Expression value is stored as a string that is parsed during the simplify stage.
|
||||
std::string value;
|
||||
/// Number suffix (e.g. "u" for "123u").
|
||||
std::string suffix;
|
||||
|
|
|
@ -316,7 +316,7 @@ int TypeContext::reorderNamedArgs(types::FuncType *func,
|
|||
"bad 'known' string");
|
||||
std::vector<int> extra;
|
||||
std::map<std::string, int> namedArgs,
|
||||
extraNamedArgs; // keep the std::map--- we need it sorted!
|
||||
extraNamedArgs; // keep the map--- we need it sorted!
|
||||
for (int ai = 0, si = 0; ai < args.size() - partial; ai++) {
|
||||
if (args[ai].name.empty()) {
|
||||
while (!known.empty() && si < slots.size() && known[si])
|
||||
|
|
Loading…
Reference in New Issue