This cleans up includes that clangd reports as unused, usually by deleting the offending include. The process was to delete an include and see if it still builds. If not, try to find a more specific include(s) that works, that was previously transitively included. If the original include seems intended to re-export said transitive include, mark the transitive include as `// IWYU pragma: export`. Otherwise, replace the original include with the transitive include(s). If none of the above applies, because the original file depends on code directly in the include somehow, or the direct include is an external dependency that cannot be modified, restore the original include and mark it as `// IWYU pragma: keep`. Change-Id: I5ce3d34dad76b0cad0a6a7990fea13add393aad3
17 lines
447 B
C++
17 lines
447 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "lix/libexpr/nixexpr.hh"
|
|
#include "lix/libexpr/eval.hh"
|
|
#include "lix/libutil/json-fwd.hh"
|
|
|
|
namespace nix {
|
|
|
|
JSON printValueAsJSON(EvalState & state, bool strict,
|
|
Value & v, const PosIdx pos, NixStringContext & context, bool copyToStore = true);
|
|
|
|
void printValueAsJSON(EvalState & state, bool strict,
|
|
Value & v, const PosIdx pos, std::ostream & str, NixStringContext & context, bool copyToStore = true);
|
|
|
|
}
|