Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/build/soong/cc/
Dcheck.go31 flag = strings.TrimSpace(flag)
33 if !strings.HasPrefix(flag, "-") {
35 } else if strings.HasPrefix(flag, "-I") || strings.HasPrefix(flag, "-isystem") {
48 } else if strings.Contains(flag, " ") {
49 args := strings.Split(flag, " ")
55 if strings.HasPrefix("/", path) {
57 } else if strings.HasPrefix("../", path) {
60 } else if strings.HasPrefix(flag, "-D") && strings.Contains(flag, "=") {
76 flag = strings.TrimSpace(flag)
78 if !strings.HasPrefix(flag, "-") {
[all …]
Dutil.go58 globalCommonFlags: strings.Join(in.Global.CommonFlags, " "),
59 globalAsFlags: strings.Join(in.Global.AsFlags, " "),
60 globalYasmFlags: strings.Join(in.Global.YasmFlags, " "),
61 globalCFlags: strings.Join(in.Global.CFlags, " "),
62 globalToolingCFlags: strings.Join(in.Global.ToolingCFlags, " "),
63 globalToolingCppFlags: strings.Join(in.Global.ToolingCppFlags, " "),
64 globalConlyFlags: strings.Join(in.Global.ConlyFlags, " "),
65 globalCppFlags: strings.Join(in.Global.CppFlags, " "),
66 globalLdFlags: strings.Join(in.Global.LdFlags, " "),
68 localCommonFlags: strings.Join(in.Local.CommonFlags, " "),
[all …]
Dmakevars.go51 return strings.Join(keys, " ")
60 return strings.Join(allProjects, "% ") + "%"
85 ctx.StrictSorted("CLANG_CONFIG_UNKNOWN_CFLAGS", strings.Join(config.ClangUnknownCflags, " "))
115 ctx.Strict("VENDOR_PUBLIC_LIBRARIES", strings.Join(exportedVendorPublicLibraries, " "))
118 ctx.Strict("LSDUMP_PATHS", strings.Join(lsdumpPaths, " "))
125 ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS", strings.Join(asanCflags, " "))
126 ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS", strings.Join(asanLdflags, " "))
128 ctx.Strict("HWADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS", strings.Join(hwasanCflags, " "))
129 ctx.Strict("HWADDRESS_SANITIZER_GLOBAL_OPTIONS", strings.Join(hwasanGlobalOptions, ","))
131 ctx.Strict("CFI_EXTRA_CFLAGS", strings.Join(cfiCflags, " "))
[all …]
Dcmakelists.go108 dst := strings.Replace(path, cLionAggregateProjectsDirectory, cLionOutputProjectsDirectory, 1)
207 return strings.Replace(s, "@", "-", -1)
304 if strings.HasPrefix(parameter, "-I") {
307 if strings.HasPrefix(parameter, "$") {
310 if strings.HasPrefix(parameter, "-isystem") {
313 if strings.HasPrefix(parameter, "-isysroot") {
316 if strings.HasPrefix(parameter, "--sysroot") {
319 if strings.HasPrefix(parameter, "-fsanitize-blacklist") {
322 if strings.HasPrefix(parameter, "-fprofile-sample-use") {
333 s = strings.Trim(s, " ")
[all …]
Dvendor_public_library_test.go73 …cc := ctx.ModuleForTests("libsystem", strings.Replace(coreVariant, "_shared", "_static", 1)).Rule(…
75 if !strings.Contains(cflags, "-Imy_include") {
83 if !strings.Contains(libflags, stubPaths[0].String()) {
91 if !strings.Contains(libflags, stubPaths[0].String()) {
99 if !strings.Contains(libflags, stubPaths[0].String()) {
/build/soong/cc/config/
Darm_device.go175 pctx.StaticVariable("ArmLdflags", strings.Join(armLdflags, " "))
176 pctx.StaticVariable("ArmLldflags", strings.Join(armLldflags, " "))
179 …pctx.StaticVariable("ArmToolchainClangCflags", strings.Join(ClangFilterUnknownCflags(armToolchainC…
180 pctx.StaticVariable("ArmClangCflags", strings.Join(ClangFilterUnknownCflags(armCflags), " "))
181 pctx.StaticVariable("ArmClangLdflags", strings.Join(ClangFilterUnknownCflags(armLdflags), " "))
182 pctx.StaticVariable("ArmClangLldflags", strings.Join(ClangFilterUnknownCflags(armLldflags), " "))
183 pctx.StaticVariable("ArmClangCppflags", strings.Join(ClangFilterUnknownCflags(armCppflags), " "))
186 pctx.StaticVariable("ArmClangArmCflags", strings.Join(ClangFilterUnknownCflags(armArmCflags), " "))
187 …pctx.StaticVariable("ArmClangThumbCflags", strings.Join(ClangFilterUnknownCflags(armThumbCflags), …
191 strings.Join(armClangArchVariantCflags["armv7-a"], " "))
[all …]
Darm64_device.go99 pctx.StaticVariable("Arm64Ldflags", strings.Join(arm64Ldflags, " "))
100 pctx.StaticVariable("Arm64Lldflags", strings.Join(arm64Lldflags, " "))
102 pctx.StaticVariable("Arm64ClangCflags", strings.Join(ClangFilterUnknownCflags(arm64Cflags), " "))
103 pctx.StaticVariable("Arm64ClangLdflags", strings.Join(ClangFilterUnknownCflags(arm64Ldflags), " "))
104 …pctx.StaticVariable("Arm64ClangLldflags", strings.Join(ClangFilterUnknownCflags(arm64Lldflags), " …
105 …pctx.StaticVariable("Arm64ClangCppflags", strings.Join(ClangFilterUnknownCflags(arm64Cppflags), " …
107 pctx.StaticVariable("Arm64ClangArmv8ACflags", strings.Join(arm64ArchVariantCflags["armv8-a"], " "))
108 …pctx.StaticVariable("Arm64ClangArmv8ABranchProtCflags", strings.Join(arm64ArchVariantCflags["armv8…
109 …pctx.StaticVariable("Arm64ClangArmv82ACflags", strings.Join(arm64ArchVariantCflags["armv8-2a"], " …
110 …pctx.StaticVariable("Arm64ClangArmv82ADotprodCflags", strings.Join(arm64ArchVariantCflags["armv8-2…
[all …]
Dx86_windows_host.go141 pctx.StaticVariable("WindowsClangCflags", strings.Join(windowsClangCflags, " "))
142 pctx.StaticVariable("WindowsClangLdflags", strings.Join(windowsClangLdflags, " "))
143 pctx.StaticVariable("WindowsClangLldflags", strings.Join(windowsClangLldflags, " "))
144 pctx.StaticVariable("WindowsClangCppflags", strings.Join(windowsClangCppflags, " "))
147 strings.Join(ClangFilterUnknownCflags(windowsX86Cflags), " "))
149 strings.Join(ClangFilterUnknownCflags(windowsX8664Cflags), " "))
150 pctx.StaticVariable("WindowsX86ClangLdflags", strings.Join(windowsX86ClangLdflags, " "))
151 pctx.StaticVariable("WindowsX86ClangLldflags", strings.Join(windowsX86ClangLldflags, " "))
152 pctx.StaticVariable("WindowsX8664ClangLdflags", strings.Join(windowsX8664ClangLdflags, " "))
153 pctx.StaticVariable("WindowsX8664ClangLldflags", strings.Join(windowsX8664ClangLldflags, " "))
[all …]
Dx86_linux_host.go122 if p := strings.Split(linuxGccVersion, "."); len(p) > 2 {
123 pctx.StaticVariable("ShortLinuxGccVersion", strings.Join(p[:2], "."))
133 pctx.StaticVariable("LinuxClangCflags", strings.Join(linuxClangCflags, " "))
134 pctx.StaticVariable("LinuxClangLdflags", strings.Join(linuxClangLdflags, " "))
135 pctx.StaticVariable("LinuxClangLldflags", strings.Join(linuxClangLldflags, " "))
138 strings.Join(ClangFilterUnknownCflags(linuxX86Cflags), " "))
140 strings.Join(ClangFilterUnknownCflags(linuxX8664Cflags), " "))
141 pctx.StaticVariable("LinuxX86ClangLdflags", strings.Join(linuxX86ClangLdflags, " "))
142 pctx.StaticVariable("LinuxX86ClangLldflags", strings.Join(linuxX86ClangLldflags, " "))
143 pctx.StaticVariable("LinuxX8664ClangLdflags", strings.Join(linuxX8664ClangLdflags, " "))
[all …]
Dx86_device.go115 pctx.StaticVariable("X86Ldflags", strings.Join(x86Ldflags, " "))
116 pctx.StaticVariable("X86Lldflags", strings.Join(x86Lldflags, " "))
119 pctx.StaticVariable("X86ClangCflags", strings.Join(ClangFilterUnknownCflags(x86ClangCflags), " "))
120 pctx.StaticVariable("X86ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86Ldflags), " "))
121 pctx.StaticVariable("X86ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86Lldflags), " "))
122 pctx.StaticVariable("X86ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86Cppflags), " "))
132 strings.Join(ClangFilterUnknownCflags(cflags), " "))
208 toolchainClangCflags: strings.Join(toolchainClangCflags, " "),
Dx86_64_device.go104 pctx.StaticVariable("X86_64Ldflags", strings.Join(x86_64Ldflags, " "))
105 pctx.StaticVariable("X86_64Lldflags", strings.Join(x86_64Lldflags, " "))
108 pctx.StaticVariable("X86_64ClangCflags", strings.Join(ClangFilterUnknownCflags(x86_64Cflags), " "))
109 …pctx.StaticVariable("X86_64ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86_64Ldflags), " …
110 …pctx.StaticVariable("X86_64ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86_64Lldflags), …
111 …pctx.StaticVariable("X86_64ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86_64Cppflags), …
121 strings.Join(ClangFilterUnknownCflags(cflags), " "))
197 toolchainClangCflags: strings.Join(toolchainClangCflags, " "),
Darm64_linux_host.go51 pctx.StaticVariable("LinuxBionicArm64Cflags", strings.Join(linuxCrossCflags, " "))
52 pctx.StaticVariable("LinuxBionicArm64Ldflags", strings.Join(linuxCrossLdflags, " "))
82 ret.toolchainArm64.ldflags = strings.Join([]string{
87 ret.toolchainArm64.lldflags = strings.Join([]string{
92 ret.toolchainArm64.toolchainClangCflags = strings.Join(toolchainClangCflags, " ")
/build/soong/rust/
Dcoverage_test.go64 if !strings.Contains(fizzCov.Args["rustcFlags"], flag) {
67 if !strings.Contains(libfooCov.Args["rustcFlags"], flag) {
70 if strings.Contains(buzzNoCov.Args["rustcFlags"], flag) {
73 if strings.Contains(libbarNoCov.Args["rustcFlags"], flag) {
83 if !strings.Contains(fizzCov.Args["linkFlags"], flag) {
86 if !strings.Contains(libfooCov.Args["linkFlags"], flag) {
89 if strings.Contains(buzzNoCov.Args["linkFlags"], flag) {
92 if strings.Contains(libbarNoCov.Args["linkFlags"], flag) {
107 if !strings.Contains(fizz.Args["linkFlags"], "libprofile-clang-extras.a") {
Dfuzz_test.go49 if !strings.Contains(fuzz_libtest.Args["rustcFlags"], "-Z sanitizer=hwaddress") ||
50 !strings.Contains(fuzz_libtest.Args["rustcFlags"], "-C passes='sancov'") ||
51 !strings.Contains(fuzz_libtest.Args["rustcFlags"], "--cfg fuzzing") {
58 if !strings.Contains(libtest_fuzzer.Args["rustcFlags"], "-Z sanitizer=hwaddress") ||
59 !strings.Contains(libtest_fuzzer.Args["rustcFlags"], "-C passes='sancov'") ||
60 !strings.Contains(libtest_fuzzer.Args["rustcFlags"], "--cfg fuzzing") {
Dbindgen_test.go56 if !strings.Contains(libbindgen.Args["flags"], "'--bindgen-flag.*'") {
59 if !strings.Contains(libbindgen.Args["cflags"], "'--clang-flag()'") {
62 if !strings.Contains(libbindgen.Args["cflags"], "-Ishared_include") {
65 if !strings.Contains(libbindgen.Args["cflags"], "-Istatic_include") {
68 if !strings.Contains(libbindgen.Args["cflags"], "-Iheader_include") {
71 if !strings.Contains(libbindgen.Args["cflags"], "--default-flag") {
96 if !strings.Contains(libbindgen.Description, "my_bindgen") {
137 if !strings.Contains(libbindgen_cstd.Args["cflags"], "-std=foo") {
141 if !strings.Contains(libbindgen_cppstd.Args["cflags"], "-std=foo") {
/build/blueprint/
Dninja_strings.go27 defaultEscaper = strings.NewReplacer(
29 inputEscaper = strings.NewReplacer(
32 outputEscaper = strings.NewReplacer(
40 ValueWithEscaper(w io.StringWriter, pkgNames map[*packageContext]string, escaper *strings.Replacer)
46 strings []string member
72 if len(ps.result.variables) == len(ps.result.strings) {
74 ps.result.strings = append(ps.result.strings, "")
83 if len(ps.result.strings) != len(ps.result.variables) {
86 ps.result.strings = append(ps.result.strings, ps.pendingStr+s)
97 n := strings.Count(str, "$")
[all …]
/build/soong/remoteexec/
Dremoteexec.go115 args += " --labels=" + strings.Join(kvs, ",")
129 args += " --platform=\"" + strings.Join(platform, ",") + "\""
139 args += " --inputs=" + strings.Join(r.Inputs, ",")
143 args += " --input_list_paths=" + strings.Join(r.RSPFiles, ",")
147 args += " --output_files=" + strings.Join(r.OutputFiles, ",")
151 args += " --output_directories=" + strings.Join(r.OutputDirectories, ",")
155 args += " --toolchain_inputs=" + strings.Join(r.ToolchainInputs, ",")
161 args += " --env_var_allowlist=" + strings.Join(envVarAllowlist, ",")
/build/soong/java/
Dlint_test.go43 if !strings.Contains(*sboxProto.Commands[0].Command, "--baseline lint-baseline.xml") {
65 if strings.Contains(*sboxProto.Commands[0].Command, "--baseline") {
112 if !strings.Contains(*sboxProto.Commands[0].Command, "--baseline mybaseline.xml") {
116 if !strings.Contains(*sboxProto.Commands[0].Command, "--error_check NewApi") {
120 if !strings.Contains(*sboxProto.Commands[0].Command, "--error_check SomeCheck") {
210 if !strings.Contains(*sboxProto.Commands[0].Command,
217 if !strings.Contains(*sboxProto.Commands[0].Command,
241 thisBp := strings.Replace(bp, "XXX", testCase, 1)
251 if strings.Contains(*sboxProto.Commands[0].Command,
255 if !strings.Contains(*sboxProto.Commands[0].Command,
[all …]
Djacoco.go95 specs += strings.Join(includes, " ")
115 recursiveWildcard := strings.HasSuffix(filter, "**")
118 nonRecursiveWildcard = strings.HasSuffix(filter, "*")
119 filter = strings.TrimSuffix(filter, "*")
121 filter = strings.TrimSuffix(filter, "**")
124 if recursiveWildcard && !(strings.HasSuffix(filter, ".") || filter == "") {
128 if strings.ContainsRune(filter, '*') {
132 spec := strings.Replace(filter, ".", "/", -1)
Dsupport_libraries.go34 case strings.HasPrefix(dir, "prebuilts/sdk/current/extras"),
46 if strings.HasSuffix(name, "-nodeps") {
61 ctx.Strict("SUPPORT_LIBRARIES_AARS", strings.Join(supportAars, " "))
62 ctx.Strict("SUPPORT_LIBRARIES_JARS", strings.Join(supportJars, " "))
/build/soong/ui/metrics/proc/
Dstatus_linux.go33 for _, l := range strings.Split(string(data), "\n") {
36 if !strings.Contains(l, ":") {
41 kv := strings.SplitN(l, ":", 2)
42 fillProcStatus(s, strings.TrimSpace(kv[0]), strings.TrimSpace(kv[1]))
/build/soong/rust/config/
Dx86_linux_host.go40 pctx.StaticVariable("LinuxToolchainRustFlags", strings.Join(LinuxRustFlags, " "))
41 pctx.StaticVariable("LinuxToolchainLinkFlags", strings.Join(LinuxRustLinkFlags, " "))
42 pctx.StaticVariable("LinuxToolchainX86RustFlags", strings.Join(linuxX86Rustflags, " "))
43 pctx.StaticVariable("LinuxToolchainX86LinkFlags", strings.Join(linuxX86Linkflags, " "))
44 pctx.StaticVariable("LinuxToolchainX8664RustFlags", strings.Join(linuxX8664Rustflags, " "))
45 pctx.StaticVariable("LinuxToolchainX8664LinkFlags", strings.Join(linuxX8664Linkflags, " "))
Dlints.go87 return strings.Join(defaultRustcLints, " ")
93 return strings.Join(defaultClippyLints, " ")
101 return strings.Join(defaultRustcVendorLints, " ")
107 return strings.Join(defaultClippyVendorLints, " ")
109 pctx.StaticVariable("RustAllowAllLints", strings.Join(allowAllLints, " "))
167 if strings.HasPrefix(dir, p.prefix) {
188 if strings.HasPrefix(dir, p.prefix) {
Dx86_darwin_host.go34 pctx.StaticVariable("DarwinToolchainRustFlags", strings.Join(DarwinRustFlags, " "))
35 pctx.StaticVariable("DarwinToolchainLinkFlags", strings.Join(DarwinRustLinkFlags, " "))
36 pctx.StaticVariable("DarwinToolchainX8664RustFlags", strings.Join(darwinX8664Rustflags, " "))
37 pctx.StaticVariable("DarwinToolchainX8664LinkFlags", strings.Join(darwinX8664Linkflags, " "))
/build/soong/cmd/diff_target_files/
Dtarget_files.go57 if strings.HasPrefix(f.Name, p) {
58 f.Name = strings.ToLower(p) + strings.TrimPrefix(f.Name, p)
63 if strings.HasPrefix(f.Name, filter) {

12345678910>>...13