forked from lix-project/lix
uncrustify formatting
This commit is contained in:
parent
22e6490311
commit
e2f61263eb
2989
.uncrustify.cfg
Normal file
2989
.uncrustify.cfg
Normal file
File diff suppressed because it is too large
Load diff
|
@ -234,7 +234,8 @@ struct ExprLambda : Expr
|
|||
: pos(pos), arg(arg), matchAttrs(matchAttrs), formals(formals), body(body)
|
||||
{
|
||||
if (!arg.empty() && formals && formals->argNames.find(arg) != formals->argNames.end())
|
||||
throw ParseError("duplicate formal function argument '%1%' at %2%", arg, pos); };
|
||||
throw ParseError("duplicate formal function argument '%1%' at %2%", arg, pos);
|
||||
};
|
||||
void setName(Symbol & name);
|
||||
string showNamePos() const;
|
||||
COMMON_METHODS
|
||||
|
|
|
@ -111,8 +111,7 @@ Activity::Activity(Logger & logger, Verbosity lvl, ActivityType type,
|
|||
logger.startActivity(id, lvl, type, s, fields, parent);
|
||||
}
|
||||
|
||||
struct JSONLogger : Logger
|
||||
{
|
||||
struct JSONLogger : Logger {
|
||||
Logger & prevLogger;
|
||||
|
||||
JSONLogger(Logger & prevLogger) : prevLogger(prevLogger) { }
|
||||
|
@ -160,12 +159,10 @@ struct JSONLogger : Logger
|
|||
// TODO: make a json obj that goes into json["msg"]?
|
||||
json["name"] = ei.name;
|
||||
json["description"] = ei.description;
|
||||
if (ei.hint.has_value())
|
||||
{
|
||||
if (ei.hint.has_value()) {
|
||||
json["hint"] = ei.hint->str();
|
||||
}
|
||||
if (ei.nixCode.has_value())
|
||||
{
|
||||
if (ei.nixCode.has_value()) {
|
||||
if (ei.nixCode->errPos.line != 0)
|
||||
json["line"] = ei.nixCode->errPos.line;
|
||||
if (ei.nixCode->errPos.column != 0)
|
||||
|
@ -278,7 +275,8 @@ bool handleJSONLogMessage(const std::string & msg,
|
|||
return true;
|
||||
}
|
||||
|
||||
Activity::~Activity() {
|
||||
Activity::~Activity()
|
||||
{
|
||||
try {
|
||||
logger.stopActivity(id);
|
||||
} catch (...) {
|
||||
|
|
Loading…
Reference in a new issue