/build/kati/ |
D | log.h | 91 #define WARN_LOC(loc, ...) \ argument 93 ColorWarnLog(LOCF(loc), StringPrintf(__VA_ARGS__).c_str()); \ 96 #define KATI_WARN_LOC(loc, ...) \ argument 99 ColorWarnLog(LOCF(loc), StringPrintf(__VA_ARGS__).c_str()); \ 102 #define ERROR_LOC(loc, ...) \ argument 104 ColorErrorLog(LOCF(loc), StringPrintf(__VA_ARGS__).c_str()); \
|
D | log.go | 31 func warn(loc srcpos, f string, a ...interface{}) { 32 f = fmt.Sprintf("%s: warning: %s\n", loc, f) 36 func warnNoPrefix(loc srcpos, f string, a ...interface{}) { 37 f = fmt.Sprintf("%s: %s\n", loc, f)
|
D | stmt.cc | 31 Value::DebugString(rhs).c_str(), LOCF(loc())); in DebugString() 66 NoLineBreak(orig_rhs.as_string()).c_str(), opstr, dirstr, LOCF(loc())); in DebugString() 84 Value::DebugString(expr).c_str(), LOCF(loc())); in DebugString() 106 false_stmts.size(), LOCF(loc())); in DebugString() 111 Value::DebugString(expr).c_str(), LOCF(loc())); in DebugString() 116 Value::DebugString(expr).c_str(), is_export, LOCF(loc())); in DebugString() 121 LOCF(loc())); in DebugString() 178 ev->set_loc(loc()); in Eval()
|
D | rule.cc | 67 ERROR_LOC(loc, "*** mixed implicit and normal rules: deprecated syntax"); in ParsePrerequisites() 83 WARN_LOC(loc, "target `%s' doesn't match the target pattern", in ParsePrerequisites() 91 ERROR_LOC(loc, "*** missing target pattern."); in ParsePrerequisites() 94 ERROR_LOC(loc, "*** multiple target patterns."); in ParsePrerequisites() 97 ERROR_LOC(loc, "*** target pattern contains no '%%'."); in ParsePrerequisites()
|
D | dep.cc | 182 ERROR_LOC(r->loc, "*** target file `%s' has both : and :: entries.", in AddRule() 224 n->loc = r->loc; in FillDepNodeLoc() 226 n->loc.lineno = r->cmd_lineno; in FillDepNodeLoc() 245 if (n->loc.filename == NULL) in FillDepNode() 246 n->loc = r->loc; in FillDepNode() 295 Loc loc; in HandleSpecialTargets() local 298 if (GetRuleInputs(Intern(".PHONY"), &targets, &loc)) { in HandleSpecialTargets() 302 if (GetRuleInputs(Intern(".KATI_RESTAT"), &targets, &loc)) { in HandleSpecialTargets() 306 if (GetRuleInputs(Intern(".SUFFIXES"), &targets, &loc)) { in HandleSpecialTargets() 310 WARN_LOC(loc, "kati doesn't support .SUFFIXES with prerequisites"); in HandleSpecialTargets() [all …]
|
D | rule.h | 36 Loc cmd_loc() const { return Loc(loc.filename, cmd_lineno); } in cmd_loc() 57 Loc loc; variable 61 void Error(const string& msg) { ERROR_LOC(loc, "%s", msg.c_str()); } in Error()
|
D | expr.cc | 291 void ParseFunc(const Loc& loc, in ParseFunc() argument 326 Value* v = ParseExprImpl(loc, s.substr(i), terms, ParseExprOpt::FUNC, &n, in ParseFunc() 332 ERROR_LOC(loc, in ParseFunc() 348 ERROR_LOC(loc, in ParseFunc() 357 Value* ParseDollar(const Loc& loc, StringPiece s, size_t* index_out) { in ParseDollar() argument 372 ParseExprImpl(loc, s.substr(i), terms, ParseExprOpt::NORMAL, &n); in ParseDollar() 382 KATI_WARN_LOC(loc, "*warning*: variable lookup with '%c': %.*s", in ParseDollar() 400 ParseFunc(loc, func, s, i + 1, terms, index_out); in ParseDollar() 403 KATI_WARN_LOC(loc, "*warning*: unknown make function '%.*s': %.*s", in ParseDollar() 422 ParseExprImpl(loc, s.substr(i + 1), terms, ParseExprOpt::NORMAL, &n); in ParseDollar() [all …]
|
D | parser.h | 29 void Parse(StringPiece buf, const Loc& loc, vector<Stmt*>* out_asts); 31 const Loc& loc,
|
D | eval.cc | 127 loc_ = stmt->loc(); in EvalAssign() 170 static StringPiece ParseRuleTargets(const Loc& loc, in ParseRuleTargets() argument 176 ERROR_LOC(loc, "*** missing separator."); in ParseRuleTargets() 189 ERROR_LOC(loc, "*** mixed implicit and normal rules: deprecated syntax"); in ParseRuleTargets() 260 loc_ = stmt->loc(); in EvalRule() 325 rule->loc = loc_; in EvalRule() 349 loc_ = stmt->loc(); in EvalCommand() 353 ParseNotAfterRule(stmt->orig, stmt->loc(), &stmts); in EvalCommand() 361 last_rule_->cmd_lineno = stmt->loc().lineno; in EvalCommand() 366 loc_ = stmt->loc(); in EvalIf() [all …]
|
D | stmt.h | 54 Loc loc() const { return loc_; } in loc() function 55 void set_loc(Loc loc) { loc_ = loc; } in set_loc()
|
D | expr.h | 65 Value* ParseExprImpl(const Loc& loc, 71 Value* ParseExpr(const Loc& loc,
|
D | eval.h | 56 const Loc& loc() const { return loc_; } in loc() function 57 void set_loc(const Loc& loc) { loc_ = loc; } in set_loc() argument
|
D | find.cc | 143 const Loc& loc, 252 const Loc& loc, in RunFind() argument 259 FIND_WARN_LOC(loc, in RunFind() 291 if (!c->RunFind(fc, loc, d + 1, path, cur_read_dirs, out)) in RunFind() 319 if (!c->RunFind(fc, loc, d + 1, path, cur_read_dirs, out)) in RunFind() 329 if (!c->RunFind(fc, loc, d + 1, path, cur_read_dirs, out)) in RunFind() 359 const Loc& loc, in RunFind() argument 368 FIND_WARN_LOC(loc, "FindEmulator: find: `%s': %s", path->c_str(), in RunFind() 379 return to_->RunFind(fc, loc, d, path, cur_read_dirs, out); in RunFind() 793 const Loc& loc, in HandleFind() argument [all …]
|
D | find.h | 67 const Loc& loc,
|
D | func.cc | 472 KATI_WARN_LOC(ev->loc(), in EvalFunc() 477 Parse(*text, ev->loc(), &stmts); in EvalFunc() 503 const Loc& loc, in ShellFuncImpl() argument 516 if (FindEmulator::Get()->HandleFind(cmd, **fc, loc, &out2)) { in ShellFuncImpl() 520 if (FindEmulator::Get()->HandleFind(cmd, **fc, loc, s)) { in ShellFuncImpl() 566 ERROR_LOC(ev->loc(), in ShellFunc() 583 ShellFuncImpl(shell, shellflag, cmd, ev->loc(), &out, &fc); in ShellFunc() 608 KATI_WARN_LOC(ev->loc(), "*warning*: undefined user function: %s", in CallFunc() 689 "echo -e \"%s:%d: %s\" 2>&1", LOCF(ev->loc()), EchoEscape(a).c_str())); in WarningFunc() 692 WARN_LOC(ev->loc(), "%s", a.c_str()); in WarningFunc() [all …]
|
D | dep.h | 54 Loc loc; member
|
D | parser.go | 739 func parseMakefileReader(rd io.Reader, loc srcpos) (makefile, error) { 740 parser := newParser(rd, loc.filename) 741 parser.lineno = loc.lineno 742 parser.elineno = loc.lineno 747 func parseMakefileString(s string, loc srcpos) (makefile, error) { 748 return parseMakefileReader(strings.NewReader(s), loc) 751 func parseMakefileBytes(s []byte, loc srcpos) (makefile, error) { 752 return parseMakefileReader(bytes.NewReader(s), loc)
|
D | parser.cc | 59 Parser(StringPiece buf, const Loc& loc, vector<Stmt*>* stmts) in Parser() argument 65 loc_(loc), in Parser() 568 void Parse(StringPiece buf, const Loc& loc, vector<Stmt*>* out_stmts) { in Parse() argument 570 Parser parser(buf, loc, out_stmts); in Parse() 575 const Loc& loc, in ParseNotAfterRule() argument 577 Parser parser(buf, loc, out_stmts); in ParseNotAfterRule()
|
D | main.cc | 203 dumpstr(ev_->loc().filename); in handle() 205 dumpint(ev_->loc().lineno); in handle() 279 WARN_LOC(err->loc(), "warning for parse error in an unevaluated line: %s", in Run()
|
D | ninja.cc | 490 *o << "# " << (node->loc.filename ? node->loc.filename : "(null)") << ':' in EmitNode() 491 << node->loc.lineno << "\n"; in EmitNode()
|
D | var.cc | 76 WARN_LOC(ev->loc(), "%s has been deprecated%s.", sym.c_str(), in Used()
|
D | command.cc | 187 ev_->set_loc(n->loc); in Eval()
|
/build/make/tools/releasetools/ |
D | test_common.py | 1053 loc = os.path.join(self._tempdir, prefix, name) 1054 if not os.path.exists(os.path.dirname(loc)): 1055 os.makedirs(os.path.dirname(loc)) 1056 with open(loc, "w+") as f:
|