style(3p/nix/libexpr): Reformat with clang-format

This commit is contained in:
Vincent Ambo 2020-05-19 04:51:01 +01:00
parent f8deeb1442
commit c7be956f3f
5 changed files with 7 additions and 6 deletions

View file

@ -1,4 +1,5 @@
#include "eval.hh"
#include <glog/logging.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <unistd.h>
@ -16,7 +17,6 @@
#include "json.hh"
#include "store-api.hh"
#include "util.hh"
#include <glog/logging.h>
#if HAVE_BOEHMGC

View file

@ -1,10 +1,10 @@
#include "get-drvs.hh"
#include <glog/logging.h>
#include <cstring>
#include <regex>
#include "derivations.hh"
#include "eval-inline.hh"
#include "util.hh"
#include <glog/logging.h>
namespace nix {

View file

@ -1,5 +1,6 @@
#include "primops.hh"
#include <dlfcn.h>
#include <glog/logging.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@ -19,7 +20,6 @@
#include "util.hh"
#include "value-to-json.hh"
#include "value-to-xml.hh"
#include <glog/logging.h>
namespace nix {
@ -508,7 +508,7 @@ static void prim_trace(EvalState& state, const Pos& pos, Value** args,
if (args[0]->type == tString) {
DLOG(INFO) << "trace: " << args[0]->string.s;
} else {
DLOG(INFO)<< "trace: " << *args[0];
DLOG(INFO) << "trace: " << *args[0];
}
state.forceValue(*args[1]);
v = *args[1];

View file

@ -1,3 +1,4 @@
#include <glog/logging.h>
#include <sys/time.h>
#include <nlohmann/json.hpp>
#include <regex>
@ -7,7 +8,6 @@
#include "pathlocks.hh"
#include "primops.hh"
#include "store-api.hh"
#include <glog/logging.h>
using namespace std::string_literals;

View file

@ -141,7 +141,8 @@ HgInfo exportMercurial(ref<Store> store, const std::string& uri,
hgInfo.storePath = json["storePath"];
if (store->isValidPath(hgInfo.storePath)) {
DLOG(INFO) << "using cached Mercurial store path '" << hgInfo.storePath << "'";
DLOG(INFO) << "using cached Mercurial store path '" << hgInfo.storePath
<< "'";
return hgInfo;
}