Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 23 of 23) sorted by relevance

/build/kati/
Dlog.h91 #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()); \
Dlog.go31 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)
Dstmt.cc31 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()
Drule.cc67 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()
Ddep.cc182 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 …]
Drule.h36 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()
Dexpr.cc291 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 …]
Dparser.h29 void Parse(StringPiece buf, const Loc& loc, vector<Stmt*>* out_asts);
31 const Loc& loc,
Deval.cc127 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 …]
Dstmt.h54 Loc loc() const { return loc_; } in loc() function
55 void set_loc(Loc loc) { loc_ = loc; } in set_loc()
Dexpr.h65 Value* ParseExprImpl(const Loc& loc,
71 Value* ParseExpr(const Loc& loc,
Deval.h56 const Loc& loc() const { return loc_; } in loc() function
57 void set_loc(const Loc& loc) { loc_ = loc; } in set_loc() argument
Dfind.cc143 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 …]
Dfind.h67 const Loc& loc,
Dfunc.cc472 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 …]
Ddep.h54 Loc loc; member
Dparser.go739 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)
Dparser.cc59 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()
Dmain.cc203 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()
Dninja.cc490 *o << "# " << (node->loc.filename ? node->loc.filename : "(null)") << ':' in EmitNode()
491 << node->loc.lineno << "\n"; in EmitNode()
Dvar.cc76 WARN_LOC(ev->loc(), "%s has been deprecated%s.", sym.c_str(), in Used()
Dcommand.cc187 ev_->set_loc(n->loc); in Eval()
/build/make/tools/releasetools/
Dtest_common.py1053 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: