Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions pkgs/tools/nix/nixos-option/.clang-tidy

This file was deleted.

1 change: 0 additions & 1 deletion pkgs/tools/nix/nixos-option/.envrc

This file was deleted.

7 changes: 0 additions & 7 deletions pkgs/tools/nix/nixos-option/shell.nix

This file was deleted.

7 changes: 2 additions & 5 deletions pkgs/tools/nix/nixos-option/src/libnix-copy-paste.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
// Since they are not, copy/paste them here.
// TODO: Delete these and use the ones in the library as they become available.

#include <string_view>
#include "libnix-copy-paste.hh"
#include <nix/print.hh>
#include <nix/print.hh> // for Strings

// NOLINTBEGIN
// From nix/src/nix/repl.cc
bool isVarName(std::string_view s)
bool isVarName(const std::string_view & s)
{
if (s.size() == 0) return false;
if (nix::isReservedKeyword(s)) return false;
Expand All @@ -22,4 +20,3 @@ bool isVarName(std::string_view s)
return false;
return true;
}
// NOLINTEND
4 changes: 2 additions & 2 deletions pkgs/tools/nix/nixos-option/src/libnix-copy-paste.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once

#include <string_view>
#include <nix/types.hh>

bool isVarName(std::string_view s);
bool isVarName(const std::string_view & s);
Loading