/aosp_15_r20/external/spdx-tools/idsearcher/ |
H A D | idsearcher.go | 1 // Package idsearcher is used to search for short-form IDs in files 2 // within a directory, and to build an SPDX Document containing those 3 // license findings. 4 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 "github.com/spdx/tools-golang/spdx/v2_3" 17 "github.com/spdx/tools-golang/builder" 18 "github.com/spdx/tools-golang/spdx/v2_1" 19 "github.com/spdx/tools-golang/spdx/v2_2" 20 "github.com/spdx/tools-golang/utils" 26 // (for version 2.1 SPDX Documents). A few mandatory fields are set here [all …]
|
H A D | idsearcher_test.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 // ===== 2.1 Searcher top-level function tests ===== 14 NamespacePrefix: "https://github.com/swinslow/spdx-docs/spdx-go/testdata-", 22 t.Fatalf("expected non-nil Document, got nil") 29 t.Fatalf("expected non-nil Packages, got nil") 36 t.Fatalf("expected non-nil pkg, got nil") 40 t.Fatalf("expected non-nil Files, got nil") 48 t.Fatalf("expected non-nil LicenseInfoInFiles, got nil") 62 t.Fatalf("expected non-nil LicenseInfoInFiles, got nil") 67 if fileTrailingComment.LicenseInfoInFiles[0] != "GPL-2.0-or-later" { [all …]
|
/aosp_15_r20/external/spdx-tools/examples/4-search/ |
H A D | example_search.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 5 // This example demonstrates building an SPDX document for a directory's 7 // [SPDX short-form IDs](https://spdx.org/ids/); filling those IDs into the 8 // document's Package and File license fields; and saving the resulting document 10 // Run project: go run example_search.go project2 ../../testdata/project2/folder test.spdx 18 "github.com/spdx/tools-golang/idsearcher" 20 "github.com/spdx/tools-golang/tvsaver" 28 fmt.Printf("Usage: %v <package-name> <package-root-dir> <spdx-file-out>\n", args[0]) 29 fmt.Printf(" Build a SPDX 2.2 document with one package called <package-name>;\n") 30 fmt.Printf(" create files with hashes corresponding to the files in <package-root-dir>;\n") [all …]
|
/aosp_15_r20/external/spdx-tools/examples/ |
H A D | README.md | 1 SPDX-License-Identifier: CC-BY-4.0 3 # tools-golang Examples 6 tools-golang sub-packages. Sample commands below should be run from 9 ## 1-load/ 11 *tvloader*, *spdx* 13 This example demonstrates loading an SPDX tag-value file from disk into memory, 15 #### Run project: *go run example_load.go ../sample-docs/tv/hello.spdx* 17 ## 2-load-save/ 21 This example demonstrates loading an SPDX tag-value file from disk into memory, 22 and re-saving it to a different file on disk. [all …]
|
/aosp_15_r20/external/spdx-tools/spdxlib/ |
H A D | documents.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 7 "github.com/spdx/tools-golang/spdx/common" 8 "github.com/spdx/tools-golang/spdx/v2_1" 9 "github.com/spdx/tools-golang/spdx/v2_2" 10 "github.com/spdx/tools-golang/spdx/v2_3" 14 // Currently, this only verifies that all Element IDs mentioned in Relationships exist in the Docum… 17 // cache a map of valid package IDs for quick lookups 44 // Currently, this only verifies that all Element IDs mentioned in Relationships exist in the Docum… 47 // cache a map of package IDs for quick lookups 74 // Currently, this only verifies that all Element IDs mentioned in Relationships exist in the Docum… [all …]
|
H A D | described_elements.go | 2 // with an SPDX document that has already been created in memory. 3 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 "github.com/spdx/tools-golang/spdx/common" 10 "github.com/spdx/tools-golang/spdx/v2_1" 11 "github.com/spdx/tools-golang/spdx/v2_2" 12 "github.com/spdx/tools-golang/spdx/v2_3" 16 // in this Document that it "describes," according to SPDX rules: 17 // - If the document has only one Package, its ID is returned. 18 // - If the document has 2+ Packages, it returns the IDs of those that have 37 // valid IDs in this document's packages, and return them [all …]
|
H A D | described_elements_test.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 8 "github.com/spdx/tools-golang/spdx/common" 9 "github.com/spdx/tools-golang/spdx/v2_1" 10 "github.com/spdx/tools-golang/spdx/v2_2" 11 "github.com/spdx/tools-golang/spdx/v2_3" 19 SPDXVersion: "SPDX-2.1", 20 DataLicense: "CC0-1.0", 41 // inverse relationship -- should also get detected 56 // request IDs for DESCRIBES / DESCRIBED_BY relationships 61 // should be three of the five IDs, returned in alphabetical order [all …]
|
H A D | relationships.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 6 "github.com/spdx/tools-golang/spdx/common" 7 "github.com/spdx/tools-golang/spdx/v2_1" 8 "github.com/spdx/tools-golang/spdx/v2_2" 9 "github.com/spdx/tools-golang/spdx/v2_3" 12 // FilterRelationships2_1 returns a slice of Element IDs returned by the given filter closure. The … 26 // FilterRelationships2_2 returns a slice of Element IDs returned by the given filter closure. The … 40 // FilterRelationships2_3 returns a slice of Element IDs returned by the given filter closure. The …
|
/aosp_15_r20/external/spdx-tools/ |
H A D | RELEASE-NOTES.md | 1 SPDX-License-Identifier: CC-BY-4.0 3 # Release Notes for spdx/tools-golang 7 0.4.0 released on 2022-01-11 10 * SPDX v2.3 support #164 12 * Add reference types enumerables to SPDX pkg definition #162 #163 13 * Expand hash algorithm support to include all valid SPDX 2.2 and 2.3 algorithms #173 16 * JSON encoding and decoding not properly handling SPDXRef- prefixes #170 21 * Convert SPDX structs to versioned pkgs #146 22 * Ensure consistency between JSON struct tags across different SPDX versions #174 37 0.3.0 released on: 2022-04-03 [all …]
|
H A D | README.md | 1 [](https://github.co… 2 …Status](https://coveralls.io/repos/github/spdx/tools-golang/badge.svg)](https://coveralls.io/githu… 3 …b release](https://img.shields.io/github/release/spdx/tools-golang.svg)](https://github.com/spdx/t… 4 …erence](https://pkg.go.dev/badge/github.com/spdx/tools-golang.svg)](https://pkg.go.dev/github.com/… 7 # SPDX tools-golang 9 tools-golang is a collection of Go packages intended to make it easier for 10 Go programs to work with [SPDX®](https://spdx.dev/) files. 14 2022-01-11: **v0.4.0**: added support for SPDX v2.3 and YAML, as well as other 15 improvements and bugfixes. See [RELEASE-NOTES.md](./RELEASE-NOTES.md) for full 20 tools-golang currently works with files conformant to versions 2.1 and 2.2 [all …]
|
H A D | CONTRIBUTING.md | 1 SPDX-License-Identifier: CC-BY-4.0 5 All contributions must include a "Signed-off-by" line in the commit message. 11 …o be relied upon by other tools to work with SPDX data, we are aiming to ensure that it is and rem… 13 …ed in `foo_test.go`. Test data files and folders should be placed in the top-level `testdata/` fol… 15 To run the test suite, from the top-level directory run: `go test ./...` 17 ## License information 19 …clude a [short-form SPDX ID](https://spdx.org/ids) at the top, indicating the project license for … 22 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 25 …ld include a [short-form SPDX ID](https://spdx.org/ids) at the top, indicating the project license… 28 SPDX-License-Identifier: CC-BY-4.0 [all …]
|
/aosp_15_r20/external/spdx-tools/tvloader/parser2v3/ |
H A D | util.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 "github.com/spdx/tools-golang/spdx/common" 27 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier 34 if strings.HasPrefix(idStr, "DocumentRef-") { 35 // extract the part that comes between "DocumentRef-" and ":" 39 return common.DocElementID{}, fmt.Errorf("no colon found although DocumentRef- prefix present") 45 // trim the prefix and confirm non-empty 46 docRefID = strings.TrimPrefix(strs[0], "DocumentRef-") 54 // check prefix to confirm it's got the right prefix for element IDs 55 if !strings.HasPrefix(idStr, "SPDXRef-") { [all …]
|
/aosp_15_r20/external/spdx-tools/tvloader/parser2v2/ |
H A D | util.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 "github.com/spdx/tools-golang/spdx/common" 27 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier 34 if strings.HasPrefix(idStr, "DocumentRef-") { 35 // extract the part that comes between "DocumentRef-" and ":" 39 return common.DocElementID{}, fmt.Errorf("no colon found although DocumentRef- prefix present") 45 // trim the prefix and confirm non-empty 46 docRefID = strings.TrimPrefix(strs[0], "DocumentRef-") 54 // check prefix to confirm it's got the right prefix for element IDs 55 if !strings.HasPrefix(idStr, "SPDXRef-") { [all …]
|
/aosp_15_r20/external/spdx-tools/tvloader/parser2v1/ |
H A D | util.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 "github.com/spdx/tools-golang/spdx/common" 27 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier 34 if strings.HasPrefix(idStr, "DocumentRef-") { 35 // extract the part that comes between "DocumentRef-" and ":" 39 return common.DocElementID{}, fmt.Errorf("no colon found although DocumentRef- prefix present") 45 // trim the prefix and confirm non-empty 46 docRefID = strings.TrimPrefix(strs[0], "DocumentRef-") 54 // check prefix to confirm it's got the right prefix for element IDs 55 if !strings.HasPrefix(idStr, "SPDXRef-") { [all …]
|
/aosp_15_r20/external/spdx-tools/rdfloader/parser2v2/ |
H A D | utils.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 gordfParser "github.com/spdx/gordf/rdfloader/parser" 11 "github.com/spdx/gordf/rdfwriter" 12 urilib "github.com/spdx/gordf/uri" 13 "github.com/spdx/tools-golang/spdx/common" 21 return parts[len(parts)-1] 24 return parts[len(parts)-1] 69 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier 76 if strings.HasPrefix(idStr, "DocumentRef-") { 77 // extract the part that comes between "DocumentRef-" and ":" [all …]
|
/aosp_15_r20/external/spdx-tools/rdfloader/parser2v3/ |
H A D | utils.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 gordfParser "github.com/spdx/gordf/rdfloader/parser" 11 "github.com/spdx/gordf/rdfwriter" 12 urilib "github.com/spdx/gordf/uri" 13 "github.com/spdx/tools-golang/spdx/common" 21 return parts[len(parts)-1] 24 return parts[len(parts)-1] 69 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier 76 if strings.HasPrefix(idStr, "DocumentRef-") { 77 // extract the part that comes between "DocumentRef-" and ":" [all …]
|
/aosp_15_r20/external/stg/ |
H A D | deduplication.cc | 1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 // -*- mode: C++ -*- 6 // Licensed under the Apache License v2.0 with LLVM Exceptions (the 7 // "License"); you may not use this file except in compliance with the 8 // License. You may obtain a copy of the License at 10 // https://llvm.org/LICENSE.txt 13 // distributed under the License is distributed on an "AS IS" BASIS, 15 // See the License for the specific language governing permissions and 16 // limitations under the License. 51 for (const auto& [fp, ids] : partitions) { in Deduplicate() [all …]
|
H A D | fingerprint.cc | 1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 // -*- mode: C++ -*- 4 // Copyright 2022-2024 Google LLC 6 // Licensed under the Apache License v2.0 with LLVM Exceptions (the 7 // "License"); you may not use this file except in compliance with the 8 // License. You may obtain a copy of the License at 10 // https://llvm.org/LICENSE.txt 13 // distributed under the License is distributed on an "AS IS" BASIS, 15 // See the License for the specific language governing permissions and 16 // limitations under the License. [all …]
|
/aosp_15_r20/out/soong/.intermediates/packages/modules/Bluetooth/android/app/bluetoothapk-platform-compat-config/android_common/ |
D | meta_lic.rsp | 1 -mn bluetoothapk-platform-compat-config -mt platform_compat_config -r packages/modules/Bluetooth/an…
|
D | meta_lic | 2 module_name: "bluetoothapk-platform-compat-config" 6 license_kinds: "SPDX-license-identifier-Apache-2.0" 7 license_kinds: "SPDX-license-identifier-BSD" 10 installed: "out/target/product/shiba/system/etc/compatconfig/bluetoothapk-platform-compat-config.xm… 11 …ckages/modules/Bluetooth/android/app/bluetooth.change-ids/android_common/javac/bluetooth.change-id… 13 …file: "out/soong/.intermediates/packages/modules/Bluetooth/android/app/bluetooth.change-ids/androi… 16 …ediates/prebuilts/module_sdk/Bluetooth/current/prebuilt_bluetoothapk-platform-compat-config/androi…
|
/aosp_15_r20/out/soong/.intermediates/packages/modules/Bluetooth/service/change-ids/bluetooth-compat-config/android_common/ |
D | meta_lic.rsp | 1 -mn bluetooth-compat-config -mt platform_compat_config -r packages/modules/Bluetooth/service/change…
|
D | meta_lic | 2 module_name: "bluetooth-compat-config" 6 license_kinds: "SPDX-license-identifier-Apache-2.0" 8 license_texts: "build/soong/licenses/LICENSE:Android" 10 installed: "out/target/product/shiba/system/etc/compatconfig/bluetooth-compat-config.xml" 11 …es/modules/Bluetooth/service/change-ids/service-bluetooth.change-ids/android_common/javac/service-… 13 …ong/.intermediates/packages/modules/Bluetooth/service/change-ids/service-bluetooth.change-ids/andr… 16 …file: "out/soong/.intermediates/prebuilts/module_sdk/Bluetooth/current/prebuilt_bluetooth-compat-c…
|
/aosp_15_r20/external/spdx-tools/examples/6-licensediff/ |
H A D | example_licensediff.go | 1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 5 // This example demonstrates loading two SPDX tag-value files from disk into 7 // Packages with matching IDs in each document. 8 // This is generally only useful when run with two SPDX documents that 11 …roject: go run example_licensediff.go ../sample-docs/tv/hello.spdx ../sample-docs/tv/hello-modifi… 18 "github.com/spdx/tools-golang/licensediff" 19 "github.com/spdx/tools-golang/spdx/v2_2" 20 "github.com/spdx/tools-golang/spdxlib" 21 "github.com/spdx/tools-golang/tvloader" 29 fmt.Printf("Usage: %v <spdx-file-first> <spdx-file-second>\n", args[0]) [all …]
|
/aosp_15_r20/external/trace-cmd/lib/trace-cmd/ |
H A D | trace-filter-hash.c | 1 // SPDX-License-Identifier: LGPL-2.1 13 #include "trace-filter-hash.h" 22 struct tracecmd_filter_id_item *item = hash->hash[key]; in tracecmd_filter_id_find() 25 if (item->id == id) in tracecmd_filter_id_find() 27 item = item->next; in tracecmd_filter_id_find() 41 item->id = id; in tracecmd_filter_id_add() 42 item->next = hash->hash[key]; in tracecmd_filter_id_add() 43 hash->hash[key] = item; in tracecmd_filter_id_add() 45 hash->count++; in tracecmd_filter_id_add() 51 struct tracecmd_filter_id_item **next = &hash->hash[key]; in tracecmd_filter_id_remove() [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
H A D | DebugCrossImpSubsection.cpp | 1 //===- DebugCrossImpSubsection.cpp ----------------------------------------===// 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 35 if (Reader.bytesRemaining() < Item.Header->Count * sizeof(uint32_t)) in operator ()() 39 if (auto EC = Reader.readArray(Item.Imports, Item.Header->Count)) in operator ()() 60 Result.first->getValue().push_back(Targets[0]); in addImport() 75 std::vector<T> Ids; in commit() local 76 Ids.reserve(Mappings.size()); in commit() [all …]
|