Skip to content

Commit ed5fcfe

Browse files
committed
nix: update flake lock
This comes with some formatting changes due to a `clang-format` update.
1 parent 8306c37 commit ed5fcfe

8 files changed

+91
-82
lines changed

extern/shim-folly-config.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define _FOLLY_CONFIG_H 1
1919

2020
#ifdef __APPLE__
21-
#include <TargetConditionals.h> // @manual
21+
#include <TargetConditionals.h> // @manual
2222
#endif
2323

2424
#include <time.h>
@@ -31,7 +31,7 @@
3131
#else
3232
#define FOLLY_MOBILE 0
3333
#endif
34-
#endif // FOLLY_MOBILE
34+
#endif // FOLLY_MOBILE
3535

3636
/* define if the Boost library is available */
3737
#ifndef FOLLY_HAVE_BOOST
@@ -387,13 +387,13 @@
387387
#else
388388
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 0
389389
#endif
390-
#else // defined(__has_feature)
390+
#else // defined(__has_feature)
391391
#if __SANITIZE_ADDRESS__
392392
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 1
393393
#else
394394
#define FOLLY_LIBRARY_SANITIZE_ADDRESS 0
395395
#endif
396-
#endif // defined(__has_feature)
396+
#endif // defined(__has_feature)
397397

398398
// We depend on JEMalloc headers in fbcode, so use them (note that when using
399399
// sanitizers, `#ifdef` gates in the code will not use JEMalloc headers,

flake.lock

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+14-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@
1010
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
1111
};
1212

13-
outputs = { self, nixpkgs, flake-utils, treefmt-nix, ... }@inputs:
14-
flake-utils.lib.eachDefaultSystem (system:
13+
outputs =
14+
{
15+
self,
16+
nixpkgs,
17+
flake-utils,
18+
treefmt-nix,
19+
...
20+
}@inputs:
21+
flake-utils.lib.eachDefaultSystem (
22+
system:
1523
let
1624
pkgs = nixpkgs.legacyPackages.${system};
1725
treefmtEval = treefmt-nix.lib.evalModule pkgs (pkgs: {
@@ -23,8 +31,10 @@
2331
programs.black.enable = true;
2432
programs.isort.enable = true;
2533
});
26-
in {
34+
in
35+
{
2736
formatter = treefmtEval.config.build.wrapper;
2837
checks.formatting = treefmtEval.config.build.check self;
29-
});
38+
}
39+
);
3040
}

oi/DrgnUtils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func_iterator::func_iterator(drgn_program* prog) {
5454
iter.reset(ret, Deleter());
5555
}
5656

57-
func_iterator::func_iterator(program& prog) : func_iterator(prog.get()){};
57+
func_iterator::func_iterator(program& prog) : func_iterator(prog.get()) {};
5858

5959
void func_iterator::Deleter::operator()(drgn_func_iterator* _iter) noexcept {
6060
drgn_func_iterator_destroy(_iter);

oi/DrgnUtils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class error : public std::exception {
4141
struct Deleter {
4242
void operator()(drgn_error* err) noexcept;
4343
};
44-
error(drgn_error* err) : ptr(err){};
44+
error(drgn_error* err) : ptr(err) {};
4545

4646
operator bool() const {
4747
return static_cast<bool>(ptr);
@@ -65,7 +65,7 @@ class program {
6565
};
6666

6767
program();
68-
program(drgn_program* prog) : ptr(prog){};
68+
program(drgn_program* prog) : ptr(prog) {};
6969

7070
symbols find_all_symbols();
7171

oi/IntrospectionResult.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ IntrospectionResult::const_iterator::operator++() {
8383

8484
for (const auto& [dy, handler] : ty.processors) {
8585
auto parsed = exporters::ParsedData::parse(data_, dy);
86-
handler(
87-
*next_, [this](auto i) { stack_.emplace(i); }, parsed);
86+
handler(*next_, [this](auto i) { stack_.emplace(i); }, parsed);
8887
}
8988

9089
if (auto new_name = genNameFromData(next_->data)) {

oi/OILexer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ namespace oi::detail {
3131

3232
class OIScanner : public yyFlexLexer {
3333
public:
34-
OIScanner(std::istream* in) : yyFlexLexer(in){};
34+
OIScanner(std::istream* in) : yyFlexLexer(in) {};
3535

36-
virtual ~OIScanner(){};
36+
virtual ~OIScanner() {};
3737

3838
// get rid of override virtual function warning
3939
using FlexLexer::yylex;

0 commit comments

Comments
 (0)