mirror of
https://github.com/NixOS/nix.git
synced 2025-12-21 08:21:08 +01:00
Apply clang-format universally.
* It is tough to contribute to a project that doesn't use a formatter, * It is extra hard to contribute to a project which has configured the formatter, but ignores it for some files * Code formatting makes it harder to hide obscure / weird bugs by accident or on purpose, Let's rip the bandaid off? Note that PRs currently in flight should be able to be merged relatively easily by applying `clang-format` to their tip prior to merge. Co-authored-by: Graham Christensen <graham@grahamc.com>
This commit is contained in:
parent
a5cfab671b
commit
0e35cd6f3e
573 changed files with 23551 additions and 23346 deletions
|
|
@ -57,22 +57,14 @@ std::string_view renderFileSerialisationMethod(FileSerialisationMethod method);
|
|||
* Dump a serialization of the given file system object.
|
||||
*/
|
||||
void dumpPath(
|
||||
const SourcePath & path,
|
||||
Sink & sink,
|
||||
FileSerialisationMethod method,
|
||||
PathFilter & filter = defaultPathFilter);
|
||||
const SourcePath & path, Sink & sink, FileSerialisationMethod method, PathFilter & filter = defaultPathFilter);
|
||||
|
||||
/**
|
||||
* Restore a serialisation of the given file system object.
|
||||
*
|
||||
* \todo use an arbitrary `FileSystemObjectSink`.
|
||||
*/
|
||||
void restorePath(
|
||||
const Path & path,
|
||||
Source & source,
|
||||
FileSerialisationMethod method,
|
||||
bool startFsync = false);
|
||||
|
||||
void restorePath(const Path & path, Source & source, FileSerialisationMethod method, bool startFsync = false);
|
||||
|
||||
/**
|
||||
* Compute the hash of the given file system object according to the
|
||||
|
|
@ -85,9 +77,7 @@ void restorePath(
|
|||
* ```
|
||||
*/
|
||||
HashResult hashPath(
|
||||
const SourcePath & path,
|
||||
FileSerialisationMethod method, HashAlgorithm ha,
|
||||
PathFilter & filter = defaultPathFilter);
|
||||
const SourcePath & path, FileSerialisationMethod method, HashAlgorithm ha, PathFilter & filter = defaultPathFilter);
|
||||
|
||||
/**
|
||||
* An enumeration of the ways we can ingest file system
|
||||
|
|
@ -153,8 +143,6 @@ std::string_view renderFileIngestionMethod(FileIngestionMethod method);
|
|||
* useful defined for a merkle format.
|
||||
*/
|
||||
std::pair<Hash, std::optional<uint64_t>> hashPath(
|
||||
const SourcePath & path,
|
||||
FileIngestionMethod method, HashAlgorithm ha,
|
||||
PathFilter & filter = defaultPathFilter);
|
||||
const SourcePath & path, FileIngestionMethod method, HashAlgorithm ha, PathFilter & filter = defaultPathFilter);
|
||||
|
||||
}
|
||||
} // namespace nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue