Home
last modified time | relevance | path

Searched refs:VarOrigin (Results 1 – 7 of 7) sorted by relevance

/build/kati/
Dvar.cc25 const char* GetOriginStr(VarOrigin origin) { in GetOriginStr()
27 case VarOrigin::UNDEFINED: return "undefined"; in GetOriginStr()
28 case VarOrigin::DEFAULT: return "default"; in GetOriginStr()
29 case VarOrigin::ENVIRONMENT: return "environment"; in GetOriginStr()
30 case VarOrigin::ENVIRONMENT_OVERRIDE: return "environment override"; in GetOriginStr()
31 case VarOrigin::FILE: return "file"; in GetOriginStr()
32 case VarOrigin::COMMAND_LINE: return "command line"; in GetOriginStr()
33 case VarOrigin::OVERRIDE: return "override"; in GetOriginStr()
34 case VarOrigin::AUTOMATIC: return "automatic"; in GetOriginStr()
50 SimpleVar::SimpleVar(VarOrigin origin) in SimpleVar()
[all …]
Dvar.h32 enum struct VarOrigin { enum
43 const char* GetOriginStr(VarOrigin origin);
50 virtual VarOrigin Origin() const = 0;
65 explicit SimpleVar(VarOrigin origin);
66 SimpleVar(const string& v, VarOrigin origin);
71 virtual VarOrigin Origin() const override { in Origin()
87 VarOrigin origin_;
92 RecursiveVar(Value* v, VarOrigin origin, StringPiece orig);
97 virtual VarOrigin Origin() const override { in Origin()
111 VarOrigin origin_;
[all …]
Dsymtab.cc55 if (v->Origin() == VarOrigin::ENVIRONMENT || in GetGlobalVar()
56 v->Origin() == VarOrigin::ENVIRONMENT_OVERRIDE) { in GetGlobalVar()
67 if (orig->Origin() == VarOrigin::OVERRIDE || in SetGlobalVar()
68 orig->Origin() == VarOrigin::ENVIRONMENT_OVERRIDE) { in SetGlobalVar()
71 if (orig->Origin() == VarOrigin::AUTOMATIC) { in SetGlobalVar()
Dmain.cc108 static void SetVar(StringPiece l, VarOrigin origin) { in SetVar()
142 new SimpleVar(StringPrintf(" %s", g_flags.makefile), VarOrigin::FILE)); in Run()
144 SetVar(*p, VarOrigin::ENVIRONMENT); in Run()
158 SetVar(l, VarOrigin::COMMAND_LINE); in Run()
Deval.cc49 VarOrigin origin = ( in EvalRHS()
50 (is_bootstrap_ ? VarOrigin::DEFAULT : in EvalRHS()
51 is_override ? VarOrigin::OVERRIDE : VarOrigin::FILE)); in EvalRHS()
Dcommand.cc36 virtual VarOrigin Origin() const override { in Origin()
37 return VarOrigin::AUTOMATIC; in Origin()
Dfunc.cc595 new SimpleVar(args[i]->Eval(ev), VarOrigin::AUTOMATIC)); in CallFunc()
614 if (v->Origin() != VarOrigin::AUTOMATIC) break; in CallFunc()
616 av.emplace_back(new SimpleVar("", VarOrigin::AUTOMATIC)); in CallFunc()
633 tok.as_string(), VarOrigin::AUTOMATIC)); in ForeachFunc()