astyle format

This commit is contained in:
Ben Burdette 2020-04-27 15:15:08 -06:00
parent 1ff42722ce
commit e51a757720

View file

@ -24,7 +24,8 @@ namespace nix {
using std::list; using std::list;
using std::vector; using std::vector;
typedef enum { typedef enum
{
lvlError = 0, lvlError = 0,
lvlWarn, lvlWarn,
lvlInfo, lvlInfo,
@ -52,7 +53,7 @@ struct ErrPos
template <class P> template <class P>
ErrPos(const P &p) ErrPos(const P &p)
{ {
*this = p; *this = p;
} }
}; };
@ -87,7 +88,7 @@ protected:
string prefix_; // used for location traces etc. string prefix_; // used for location traces etc.
ErrorInfo err; ErrorInfo err;
string what_; string what_;
void initWhat() void initWhat()
{ {
std::ostringstream oss; std::ostringstream oss;
oss << err; oss << err;
@ -106,7 +107,7 @@ public:
template<typename... Args> template<typename... Args>
BaseError(const Args & ... args) BaseError(const Args & ... args)
: err { .level = lvlError, : err { .level = lvlError,
.hint = hintfmt(args...) .hint = hintfmt(args...)
} }
{ initWhat(); } { initWhat(); }
@ -146,7 +147,7 @@ public:
template<typename... Args> template<typename... Args>
SysError(const Args & ... args) SysError(const Args & ... args)
: Error(args...) // TODO addErrNo for hintfmt : Error(args...) // TODO addErrNo for hintfmt
// : Error(addErrno(hintfmt(args...))) // : Error(addErrno(hintfmt(args...)))
{ } { }
private: private: