/build/blueprint/ |
D | live_tracker.go | 45 ruleDef, err := l.addRule(def.Rule) 46 if err != nil { 47 return err 51 err = l.addNinjaStringListDeps(def.Outputs) 52 if err != nil { 53 return err 56 err = l.addNinjaStringListDeps(def.Inputs) 57 if err != nil { 58 return err 61 err = l.addNinjaStringListDeps(def.Implicits) [all …]
|
D | ninja_defs.go | 109 err := nw.Comment(p.Comment) 110 if err != nil { 111 return err 115 err := nw.Pool(name) 116 if err != nil { 117 return err 150 value, err := parseNinjaString(scope, params.Command) 151 if err != nil { 152 return nil, fmt.Errorf("error parsing Command param: %s", err) 157 value, err = parseNinjaString(scope, params.Depfile) [all …]
|
D | package_ctx.go | 103 err := validateNinjaName(pkgName) 104 if err != nil { 105 panic(err) 234 err := p.scope.AddImport(importPkg.shortName, importPkg.scope) 235 if err != nil { 236 panic(err) 250 err := validateNinjaName(as) 251 if err != nil { 252 panic(err) 255 err = p.scope.AddImport(as, importPkg.scope) [all …]
|
D | ninja_strings_test.go | 26 err string 75 err: "invalid character after '$' at byte offset 5", 79 err: "unexpected end of string after '$'", 83 err: "empty variable name at byte offset 6", 87 err: "invalid character in variable name at byte offset 9", 91 err: "unexpected end of string in variable name", 100 v, err := scope.LookupVariable(varName) 101 if err != nil { 102 v, err = scope.AddLocalVariable(varName, "") 103 if err != nil { [all …]
|
D | ninja_writer.go | 75 _, err := io.WriteString(n.writer, line) 76 if err != nil { 77 return err 85 _, err := fmt.Fprintf(n.writer, "# %s\n", line) 86 if err != nil { 87 return err 96 _, err := fmt.Fprintf(n.writer, "pool %s\n", name) 97 return err 102 _, err := fmt.Fprintf(n.writer, "rule %s\n", name) 103 return err [all …]
|
/build/kati/ |
D | func.go | 112 n, err := strconv.Atoi(v) 113 if err != nil || n < 0 { 173 err := assertArity("subst", 3, len(f.args)) 174 if err != nil { 175 return err 178 fargs, err := ev.args(abuf, f.args[1:]...) 179 if err != nil { 180 return err 202 err := assertArity("patsubst", 3, len(f.args)) 203 if err != nil { [all …]
|
D | serialize.go | 68 err error member 72 if d.err != nil { 76 d.err = binary.Write(&d.w, binary.LittleEndian, &v) 80 if d.err != nil { 84 if d.err != nil { 87 _, d.err = io.WriteString(&d.w, s) 91 if d.err != nil { 95 if d.err != nil { 98 _, d.err = d.w.Write(b) 102 if d.err != nil { [all …]
|
D | pathutil.go | 178 d, err := os.Open(dir) 179 if err != nil { 186 fi, err := d.Stat() 187 if err != nil { 202 fi, err := os.Lstat(path) 203 if err != nil { 204 glog.Warningf("readdir %s: %v", name, err) 215 fi, err = os.Stat(path) 216 if err != nil { 217 glog.Warningf("readdir %s: %v", name, err) [all …]
|
D | depgraph.go | 92 mk, err := defaultMakefile() 93 if err != nil { 94 glog.Warningf("default makefile: %v", err) 121 var err error 123 req.Makefile, err = defaultMakefile() 124 if err != nil { 125 return nil, err 130 g, err := loadCache(req.Makefile, req.Targets) 131 if err == nil { 136 bmk, err := bootstrapMakefile(req.Targets) [all …]
|
D | eval.go | 140 func (p srcpos) error(err error) error { 141 if _, ok := err.(EvalError); ok { 142 return err 147 Err: err, 187 err := arg.Eval(buf, ev) 188 if err != nil { 189 return nil, err 205 lhs, rhs, err := ev.evalAssignAST(ast) 206 if err != nil { 207 return err [all …]
|
D | parser.go | 64 err error member 99 buf, err := p.rd.ReadBytes('\n') 103 if err == io.EOF { 105 } else if err != nil { 106 p.err = fmt.Errorf("readline %s: %v", p.srcpos(), err) 127 lhs, _, err := parseExpr(lhsBytes, nil, parseOp{alloc: true}) 128 if err != nil { 129 return nil, err 131 rhs, _, err := parseExpr(rhsBytes, nil, parseOp{alloc: true}) 132 if err != nil { [all …]
|
/build/blueprint/bpfmt/ |
D | bpfmt.go | 32 func report(err error) { 33 fmt.Fprintln(os.Stderr, err) 46 f, err := os.Open(filename) 47 if err != nil { 48 return err 54 src, err := ioutil.ReadAll(in) 55 if err != nil { 56 return err 63 for _, err := range errs { 64 fmt.Fprintln(os.Stderr, err) [all …]
|
/build/soong/cmd/soong_jar/ |
D | soong_jar.go | 95 err := w.write(*out, listFiles, *manifest) 96 if err != nil { 97 fmt.Fprintln(os.Stderr, err.Error()) 103 f, err := os.Create(out) 104 if err != nil { 105 return err 110 if err != nil { 119 err = z.writeListFile(listFile) 120 if err != nil { 121 return err [all …]
|
/build/blueprint/choosestage/ |
D | choosestage.go | 58 aData, err := ioutil.ReadFile(a) 59 if err != nil { 60 return false, err 63 bData, err := ioutil.ReadFile(b) 64 if err != nil { 65 return false, err 79 bootstrapStat, err := os.Stat(bootstrapFile) 80 if err != nil { 81 return false, err 84 fileStat, err := os.Stat(filename) [all …]
|
/build/blueprint/pathtools/ |
D | glob.go | 32 func Glob(pattern string) (matches, dirs []string, err error) { 41 func GlobWithExcludes(pattern string, excludes []string) (matches, dirs []string, err error) { 45 matches, dirs, err = glob(pattern, false) 48 if err != nil { 49 return nil, nil, err 52 matches, err = filterExcludes(matches, excludes) 53 if err != nil { 54 return nil, nil, err 62 func glob(pattern string, hasRecursive bool) (matches, dirs []string, err error) { 67 matches, err = filepath.Glob(pattern) [all …]
|
/build/blueprint/bootstrap/ |
D | cleanup.go | 36 ninjaBuildDir, err := ctx.NinjaBuildDir() 37 if err != nil { 38 return err 41 targetRules, err := ctx.AllTargets() 42 if err != nil { 43 return fmt.Errorf("error determining target list: %s", err) 57 filePaths, err := parseNinjaLog(ninjaBuildDir) 58 if err != nil { 59 return err 65 err = removeFileAndEmptyDirs(filePath) [all …]
|
D | command.go | 64 f, err := os.Create(cpuprofile) 65 if err != nil { 66 fatalf("error opening cpuprofile: %s", err) 114 err := writeDocs(ctx, filepath.Dir(bootstrapConfig.topLevelBlueprintsFile), docFile) 115 if err != nil { 116 fatalErrors([]error{err}) 128 err := ctx.WriteBuildFile(buf) 129 if err != nil { 130 fatalf("error generating Ninja file contents: %s", err) 135 err := ioutil.WriteFile(timestampFile, []byte{}, outFilePermissions) [all …]
|
/build/soong/common/ |
D | config.go | 75 err := loadFromConfigFile(&config.FileConfigurableOptions, config.ConfigFileName) 76 if err != nil { 77 return err 86 configFileReader, err := os.Open(filename) 88 if os.IsNotExist(err) { 94 err = saveToConfigFile(configurable, filename) 95 if err != nil { 96 return err 101 err = jsonDecoder.Decode(configurable) 102 if err != nil { [all …]
|
/build/kati/cmd/kati/ |
D | main.go | 106 f, err := os.Create(heapprofile) 107 if err != nil { 108 panic(err) 122 err := t.Template.Execute(&buf, ms) 124 if err != nil { 125 panic(err) 131 g, err := kati.GOB.Load(loadGOB) 132 return g, err 135 g, err := kati.JSON.Load(loadJSON) 136 return g, err [all …]
|
/build/blueprint/bpmodify/ |
D | bpmodify.go | 44 func report(err error) { 45 fmt.Fprintln(os.Stderr, err) 58 f, err := os.Open(filename) 59 if err != nil { 60 return err 66 src, err := ioutil.ReadAll(in) 67 if err != nil { 68 return err 75 for _, err := range errs { 76 fmt.Fprintln(os.Stderr, err) [all …]
|
/build/soong/androidmk/cmd/androidmk/ |
D | android.go | 132 func splitLocalGlobal(file *bpFile, val *bpparser.Value) (local, global *bpparser.Value, err error)… 141 localA, globalA, err := splitLocalGlobal(file, &val.Expression.Args[0]) 142 if err != nil { 143 return nil, nil, err 146 localB, globalB, err := splitLocalGlobal(file, &val.Expression.Args[1]) 147 if err != nil { 148 return nil, nil, err 181 localPath, err := localAbsPath(v) 182 if err != nil { 183 return nil, nil, err [all …]
|
/build/soong/glob/ |
D | glob.go | 39 func GlobWithDepFile(glob, fileListFile, depFile string, excludes []string) (files []string, err er… 40 files, dirs, err := pathtools.GlobWithExcludes(glob, excludes) 41 if err != nil { 42 return nil, err 57 err := os.MkdirAll(dir, 0777) 58 if err != nil { 59 return err 62 info, err := os.Stat(filename) 63 if err != nil { 64 if os.IsNotExist(err) { [all …]
|
/build/kati/testcase/ |
D | parse_benchcmp.go | 33 err := cmd.Run() 34 if err != nil { 35 panic(err) 41 out, err := cmd.CombinedOutput() 42 if err != nil { 43 panic(err) 50 f, err := os.Create(fname) 51 if err != nil { 52 panic(err) 55 err = f.Close() [all …]
|
D | gen_testcase_parse_benchmark.go | 41 data, err := ioutil.ReadFile({{.Filename | printf "%q"}}) 42 if err != nil { 43 b.Fatal(err) 72 err := tmpl.Execute(w, struct { 79 if err != nil { 80 panic(err) 85 f, err := os.Create("testcase_parse_benchmark_test.go") 86 if err != nil { 87 panic(err) 90 err := f.Close() [all …]
|
/build/blueprint/gotestrunner/ |
D | gotestrunner.go | 57 test, err := filepath.Abs(flag.Arg(0)) 58 if err != nil { 59 fmt.Fprintf(os.Stderr, "error: Failed to locate test binary: %s", err) 68 stdout, err := cmd.StdoutPipe() 69 if err != nil { 70 fmt.Fprintln(os.Stderr, err) 74 err = cmd.Start() 75 if err != nil { 76 fmt.Fprintln(os.Stderr, err) 82 if err = cmd.Wait(); err != nil { [all …]
|