From bcad7a3d90bfde3d9a2dcf713c3ecce931137b26 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Mon, 8 Apr 2024 15:07:57 -0700 Subject: [PATCH] pragma once and ///@file everything missing it Change-Id: Ia1a72348336794b5fb9f2694dd750266089b904e --- src/libcmd/built-path.hh | 2 ++ src/libexpr/eval-error.hh | 1 + src/libexpr/eval-settings.hh | 1 + src/libexpr/gc-small-vector.hh | 1 + src/libexpr/pos-idx.hh | 1 + src/libexpr/pos-table.hh | 1 + src/libexpr/print-ambiguous.hh | 1 + src/libexpr/repl-exit-status.hh | 1 + src/libfetchers/fetch-to-store.hh | 1 + src/libstore/derived-path-map.hh | 1 + src/libstore/path-references.hh | 1 + src/libstore/remote-store-connection.hh | 3 +++ src/libutil/args/root.hh | 1 + src/libutil/english.hh | 1 + src/libutil/escape-char.hh | 2 ++ src/libutil/escape-string.hh | 1 + src/libutil/exit.hh | 1 + src/libutil/print-elided.hh | 1 + src/libutil/shlex.hh | 1 + 19 files changed, 23 insertions(+) diff --git a/src/libcmd/built-path.hh b/src/libcmd/built-path.hh index e677bc810..da87a33b0 100644 --- a/src/libcmd/built-path.hh +++ b/src/libcmd/built-path.hh @@ -1,3 +1,5 @@ +#pragma once +///@file #include "derived-path.hh" #include "realisation.hh" diff --git a/src/libexpr/eval-error.hh b/src/libexpr/eval-error.hh index 2fb6bcf41..4f0e0d24c 100644 --- a/src/libexpr/eval-error.hh +++ b/src/libexpr/eval-error.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include diff --git a/src/libexpr/eval-settings.hh b/src/libexpr/eval-settings.hh index c78213255..c264b521f 100644 --- a/src/libexpr/eval-settings.hh +++ b/src/libexpr/eval-settings.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include "config.hh" namespace nix { diff --git a/src/libexpr/gc-small-vector.hh b/src/libexpr/gc-small-vector.hh index 94c3ad28b..c4bd1db26 100644 --- a/src/libexpr/gc-small-vector.hh +++ b/src/libexpr/gc-small-vector.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include diff --git a/src/libexpr/pos-idx.hh b/src/libexpr/pos-idx.hh index e94fd85c6..406fc1b36 100644 --- a/src/libexpr/pos-idx.hh +++ b/src/libexpr/pos-idx.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include diff --git a/src/libexpr/pos-table.hh b/src/libexpr/pos-table.hh index 0b60c4f6d..704f24696 100644 --- a/src/libexpr/pos-table.hh +++ b/src/libexpr/pos-table.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include #include diff --git a/src/libexpr/print-ambiguous.hh b/src/libexpr/print-ambiguous.hh index 50c260a9b..b615d1e5a 100644 --- a/src/libexpr/print-ambiguous.hh +++ b/src/libexpr/print-ambiguous.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include "value.hh" diff --git a/src/libexpr/repl-exit-status.hh b/src/libexpr/repl-exit-status.hh index 08299ff61..f150b9597 100644 --- a/src/libexpr/repl-exit-status.hh +++ b/src/libexpr/repl-exit-status.hh @@ -1,4 +1,5 @@ #pragma once +///@file namespace nix { diff --git a/src/libfetchers/fetch-to-store.hh b/src/libfetchers/fetch-to-store.hh index eef269071..717450944 100644 --- a/src/libfetchers/fetch-to-store.hh +++ b/src/libfetchers/fetch-to-store.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include "source-path.hh" #include "store-api.hh" diff --git a/src/libstore/derived-path-map.hh b/src/libstore/derived-path-map.hh index 4d72b301e..393cdedf7 100644 --- a/src/libstore/derived-path-map.hh +++ b/src/libstore/derived-path-map.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include "types.hh" #include "derived-path.hh" diff --git a/src/libstore/path-references.hh b/src/libstore/path-references.hh index 7b44e3261..0553003f8 100644 --- a/src/libstore/path-references.hh +++ b/src/libstore/path-references.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include "references.hh" #include "path.hh" diff --git a/src/libstore/remote-store-connection.hh b/src/libstore/remote-store-connection.hh index e4a9cacb9..44328b06b 100644 --- a/src/libstore/remote-store-connection.hh +++ b/src/libstore/remote-store-connection.hh @@ -1,3 +1,6 @@ +#pragma once +///@file + #include "remote-store.hh" #include "worker-protocol.hh" #include "pool.hh" diff --git a/src/libutil/args/root.hh b/src/libutil/args/root.hh index bb98732a1..f8124eaff 100644 --- a/src/libutil/args/root.hh +++ b/src/libutil/args/root.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include "args.hh" diff --git a/src/libutil/english.hh b/src/libutil/english.hh index 9c6c93571..d9289c663 100644 --- a/src/libutil/english.hh +++ b/src/libutil/english.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include diff --git a/src/libutil/escape-char.hh b/src/libutil/escape-char.hh index c7bae7ec0..e4b9da8ed 100644 --- a/src/libutil/escape-char.hh +++ b/src/libutil/escape-char.hh @@ -1,4 +1,6 @@ #pragma once +///@file + #include namespace nix { diff --git a/src/libutil/escape-string.hh b/src/libutil/escape-string.hh index 7f0a9e701..2b06893dc 100644 --- a/src/libutil/escape-string.hh +++ b/src/libutil/escape-string.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include #include diff --git a/src/libutil/exit.hh b/src/libutil/exit.hh index 55f33e62f..27abc6a89 100644 --- a/src/libutil/exit.hh +++ b/src/libutil/exit.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include diff --git a/src/libutil/print-elided.hh b/src/libutil/print-elided.hh index a99b15ca1..21bbf741c 100644 --- a/src/libutil/print-elided.hh +++ b/src/libutil/print-elided.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include diff --git a/src/libutil/shlex.hh b/src/libutil/shlex.hh index 4e7a48597..6ebe272ad 100644 --- a/src/libutil/shlex.hh +++ b/src/libutil/shlex.hh @@ -1,4 +1,5 @@ #pragma once +///@file #include #include