Home
last modified time | relevance | path

Searched refs:KeyAndValue (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang/tools/clang-offload-packager/
H A DClangOffloadPackager.cpp80 auto KeyAndValue = Arg.split("="); in main() local
81 if (Args.count(KeyAndValue.first)) in main()
82 Args[KeyAndValue.first] = in main()
83 Saver.save(Args[KeyAndValue.first] + "," + KeyAndValue.second); in main()
85 Args[KeyAndValue.first] = KeyAndValue.second; in main()
95 for (const auto &KeyAndValue : Args) { in main() local
96 StringRef Key = KeyAndValue.getKey(); in main()
99 llvm::MemoryBuffer::getFileOrSTDIN(KeyAndValue.getValue()); in main()
108 sys::path::extension(KeyAndValue.getValue()).drop_front()); in main()
111 ImageBinary.TheOffloadKind = getOffloadKind(KeyAndValue.getValue()); in main()
[all …]
/llvm-project-15.0.7/llvm/unittests/Object/
H A DOffloadingTest.cpp21 for (auto &KeyAndValue : Strings) { in TEST() local
29 KeyAndValue = std::make_pair(Key, Value); in TEST()
34 for (auto &KeyAndValue : Strings) in TEST() local
35 StringData[KeyAndValue.first] = KeyAndValue.second; in TEST()
58 for (auto &KeyAndValue : Strings) in TEST() local
59 ASSERT_TRUE(StringData[KeyAndValue.first] == in TEST()
60 Binary.getString(KeyAndValue.first)); in TEST()
/llvm-project-15.0.7/llvm/lib/Object/
H A DOffloadBinary.cpp59 for (auto &KeyAndValue : OffloadingData.StringData) { in write() local
60 StrTab.add(KeyAndValue.getKey()); in write()
61 StrTab.add(KeyAndValue.getValue()); in write()
99 for (auto &KeyAndValue : OffloadingData.StringData) { in write() local
101 StringEntry Map{Offset + StrTab.getOffset(KeyAndValue.getKey()), in write()
102 Offset + StrTab.getOffset(KeyAndValue.getValue())}; in write()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSuspiciousCallArgumentCheck.cpp531 auto KeyAndValue = Abbreviation.split("="); in SuspiciousCallArgumentCheck() local
532 assert(!KeyAndValue.first.empty() && !KeyAndValue.second.empty()); in SuspiciousCallArgumentCheck()
534 std::make_pair(KeyAndValue.first, KeyAndValue.second.str())); in SuspiciousCallArgumentCheck()