aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/args.hh26
-rw-r--r--src/libutil/serialise.hh2
-rw-r--r--src/libutil/thread-pool.hh2
-rw-r--r--src/libutil/types.hh4
-rw-r--r--src/libutil/util.hh6
5 files changed, 20 insertions, 20 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh
index ad5fcca39..f8df39b5c 100644
--- a/src/libutil/args.hh
+++ b/src/libutil/args.hh
@@ -70,23 +70,23 @@ public:
Args & args;
Flag::ptr flag;
friend class Args;
- FlagMaker(Args & args) : args(args), flag(std::make_shared<Flag>()) { };
+ FlagMaker(Args & args) : args(args), flag(std::make_shared<Flag>()) { }
public:
~FlagMaker();
- FlagMaker & longName(const std::string & s) { flag->longName = s; return *this; };
- FlagMaker & shortName(char s) { flag->shortName = s; return *this; };
- FlagMaker & description(const std::string & s) { flag->description = s; return *this; };
- FlagMaker & label(const std::string & l) { flag->arity = 1; flag->labels = {l}; return *this; };
- FlagMaker & labels(const Strings & ls) { flag->arity = ls.size(); flag->labels = ls; return *this; };
- FlagMaker & arity(size_t arity) { flag->arity = arity; return *this; };
- FlagMaker & handler(std::function<void(std::vector<std::string>)> handler) { flag->handler = handler; return *this; };
- FlagMaker & handler(std::function<void()> handler) { flag->handler = [handler](std::vector<std::string>) { handler(); }; return *this; };
+ FlagMaker & longName(const std::string & s) { flag->longName = s; return *this; }
+ FlagMaker & shortName(char s) { flag->shortName = s; return *this; }
+ FlagMaker & description(const std::string & s) { flag->description = s; return *this; }
+ FlagMaker & label(const std::string & l) { flag->arity = 1; flag->labels = {l}; return *this; }
+ FlagMaker & labels(const Strings & ls) { flag->arity = ls.size(); flag->labels = ls; return *this; }
+ FlagMaker & arity(size_t arity) { flag->arity = arity; return *this; }
+ FlagMaker & handler(std::function<void(std::vector<std::string>)> handler) { flag->handler = handler; return *this; }
+ FlagMaker & handler(std::function<void()> handler) { flag->handler = [handler](std::vector<std::string>) { handler(); }; return *this; }
FlagMaker & handler(std::function<void(std::string)> handler) {
flag->arity = 1;
flag->handler = [handler](std::vector<std::string> ss) { handler(std::move(ss[0])); };
return *this;
- };
- FlagMaker & category(const std::string & s) { flag->category = s; return *this; };
+ }
+ FlagMaker & category(const std::string & s) { flag->category = s; return *this; }
template<class T>
FlagMaker & dest(T * dest)
@@ -94,7 +94,7 @@ public:
flag->arity = 1;
flag->handler = [=](std::vector<std::string> ss) { *dest = ss[0]; };
return *this;
- };
+ }
template<class T>
FlagMaker & set(T * dest, const T & val)
@@ -102,7 +102,7 @@ public:
flag->arity = 0;
flag->handler = [=](std::vector<std::string> ss) { *dest = val; };
return *this;
- };
+ }
FlagMaker & mkHashTypeFlag(HashType * ht);
};
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh
index 0120aeecb..128e287f3 100644
--- a/src/libutil/serialise.hh
+++ b/src/libutil/serialise.hh
@@ -274,7 +274,7 @@ Sink & operator << (Sink & sink, const Strings & s);
Sink & operator << (Sink & sink, const StringSet & s);
-MakeError(SerialisationError, Error)
+MakeError(SerialisationError, Error);
template<typename T>
diff --git a/src/libutil/thread-pool.hh b/src/libutil/thread-pool.hh
index bb16b639a..b22e0d162 100644
--- a/src/libutil/thread-pool.hh
+++ b/src/libutil/thread-pool.hh
@@ -11,7 +11,7 @@
namespace nix {
-MakeError(ThreadPoolShutDown, Error)
+MakeError(ThreadPoolShutDown, Error);
/* A simple thread pool that executes a queue of work items
(lambdas). */
diff --git a/src/libutil/types.hh b/src/libutil/types.hh
index 92bf469b5..4bc91828b 100644
--- a/src/libutil/types.hh
+++ b/src/libutil/types.hh
@@ -116,9 +116,9 @@ public:
{ \
public: \
using superClass::superClass; \
- };
+ }
-MakeError(Error, BaseError)
+MakeError(Error, BaseError);
class SysError : public Error
{
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 0bb171268..e8fed353c 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -160,7 +160,7 @@ void readFull(int fd, unsigned char * buf, size_t count);
void writeFull(int fd, const unsigned char * buf, size_t count, bool allowInterrupts = true);
void writeFull(int fd, const string & s, bool allowInterrupts = true);
-MakeError(EndOfFile, Error)
+MakeError(EndOfFile, Error);
/* Read a file descriptor until EOF occurs. */
@@ -333,10 +333,10 @@ void inline checkInterrupt()
_interrupted();
}
-MakeError(Interrupted, BaseError)
+MakeError(Interrupted, BaseError);
-MakeError(FormatError, Error)
+MakeError(FormatError, Error);
/* String tokenizer. */