style(tvix): Replace remaining typedefs with using statements
Change (mostly) created via: fd . -e hh -e cc | parallel clang-tidy -p ~/builds/nix --fix "'--checks=-*,modernize-use-using'" Change-Id: I90ad6e64a5399f2005dfb9956074ec51c2c78cea Reviewed-on: https://cl.tvl.fyi/c/depot/+/1830 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
674d921202
commit
7edbe59c6c
16 changed files with 48 additions and 45 deletions
8
third_party/nix/src/libexpr/eval.hh
vendored
8
third_party/nix/src/libexpr/eval.hh
vendored
|
|
@ -54,7 +54,7 @@ void copyContext(const Value& v, PathSet& context);
|
|||
|
||||
/* Cache for calls to addToStore(); maps source paths to the store
|
||||
paths. */
|
||||
typedef std::map<Path, Path> SrcToStore;
|
||||
using SrcToStore = std::map<Path, Path>;
|
||||
|
||||
std::ostream& operator<<(std::ostream& str, const Value& v);
|
||||
|
||||
|
|
@ -298,15 +298,15 @@ class EvalState {
|
|||
std::function<void(const Path&)> file_access_trace_fn = nullptr;
|
||||
Path last_traced_file = "";
|
||||
|
||||
typedef std::map<Symbol, size_t> PrimOpCalls;
|
||||
using PrimOpCalls = std::map<Symbol, size_t>;
|
||||
PrimOpCalls primOpCalls;
|
||||
|
||||
typedef std::map<ExprLambda*, size_t> FunctionCalls;
|
||||
using FunctionCalls = std::map<ExprLambda*, size_t>;
|
||||
FunctionCalls functionCalls;
|
||||
|
||||
void incrFunctionCall(ExprLambda* fun);
|
||||
|
||||
typedef std::map<Pos, size_t> AttrSelects;
|
||||
using AttrSelects = std::map<Pos, size_t>;
|
||||
AttrSelects attrSelects;
|
||||
|
||||
friend struct ExprOpUpdate;
|
||||
|
|
|
|||
2
third_party/nix/src/libexpr/get-drvs.hh
vendored
2
third_party/nix/src/libexpr/get-drvs.hh
vendored
|
|
@ -69,7 +69,7 @@ struct DrvInfo {
|
|||
bool hasFailed() { return failed; };
|
||||
};
|
||||
|
||||
typedef std::list<DrvInfo> DrvInfos;
|
||||
using DrvInfos = std::list<DrvInfo>;
|
||||
|
||||
/* If value `v' denotes a derivation, return a DrvInfo object
|
||||
describing it. Otherwise return nothing. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue