about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/names.hh
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-17T15·31+0100
committerVincent Ambo <tazjin@google.com>2020-05-17T15·31+0100
commit0f2cf531f705d370321843e5ba9135b2ebdb5d19 (patch)
tree256feb13963a849ed96e89228fa05454c2a22363 /third_party/nix/src/libexpr/names.hh
parent65a1aae98ce5a237c9643e639e550c8b0c0be7f1 (diff)
style(3p/nix): Reformat project in Google C++ style r/740
Reformatted with:

    fd . -e hh -e cc | xargs clang-format -i
Diffstat (limited to 'third_party/nix/src/libexpr/names.hh')
-rw-r--r--third_party/nix/src/libexpr/names.hh34
1 files changed, 16 insertions, 18 deletions
diff --git a/third_party/nix/src/libexpr/names.hh b/third_party/nix/src/libexpr/names.hh
index 13c3093e77b0..219a595d15e2 100644
--- a/third_party/nix/src/libexpr/names.hh
+++ b/third_party/nix/src/libexpr/names.hh
@@ -1,32 +1,30 @@
 #pragma once
 
 #include <memory>
-
-#include "types.hh"
 #include <regex>
+#include "types.hh"
 
 namespace nix {
 
-struct DrvName
-{
-    string fullName;
-    string name;
-    string version;
-    unsigned int hits;
+struct DrvName {
+  string fullName;
+  string name;
+  string version;
+  unsigned int hits;
 
-    DrvName();
-    DrvName(const string & s);
-    bool matches(DrvName & n);
+  DrvName();
+  DrvName(const string& s);
+  bool matches(DrvName& n);
 
-private:
-    std::unique_ptr<std::regex> regex;
+ private:
+  std::unique_ptr<std::regex> regex;
 };
 
 typedef list<DrvName> DrvNames;
 
-string nextComponent(string::const_iterator & p,
-    const string::const_iterator end);
-int compareVersions(const string & v1, const string & v2);
-DrvNames drvNamesFromArgs(const Strings & opArgs);
+string nextComponent(string::const_iterator& p,
+                     const string::const_iterator end);
+int compareVersions(const string& v1, const string& v2);
+DrvNames drvNamesFromArgs(const Strings& opArgs);
 
-}
+}  // namespace nix