From 7b7c095b37e85ca3a8f55eff1c3d9643d467b8e0 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 25 Apr 2023 10:43:29 -0400 Subject: Dictionary using lowerCamel (#2835) * #include an absolute path didn't work - because paths were taken to always be relative. * WIP lowerCamel Dictionary. * WIP more lowerCamel fixes for Dictionary. * Add/Remove/Clear * GetValue/Contains * Fix tabs in dictionary. Count -> getCount * Fix fields with caps. * Key -> key Value -> value Use m_ for members where appropriate. Use lowerCamel in linked list. * Some small fixes/improvements to Dictionary. * Kick CI. --- source/slang/slang-ir-any-value-marshalling.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/slang/slang-ir-any-value-marshalling.cpp') diff --git a/source/slang/slang-ir-any-value-marshalling.cpp b/source/slang/slang-ir-any-value-marshalling.cpp index 27bba3fde..0c603d81a 100644 --- a/source/slang/slang-ir-any-value-marshalling.cpp +++ b/source/slang/slang-ir-any-value-marshalling.cpp @@ -49,7 +49,7 @@ namespace Slang AnyValueTypeInfo* ensureAnyValueType(IRAnyValueType* type) { auto size = getIntVal(type->getSize()); - if (auto typeInfo = generatedAnyValueTypes.TryGetValue(size)) + if (auto typeInfo = generatedAnyValueTypes.tryGetValue(size)) return typeInfo->Ptr(); RefPtr info = new AnyValueTypeInfo(); IRBuilder builder(sharedContext->module); @@ -63,7 +63,7 @@ namespace Slang for (decltype(fieldCount) i = 0; i < fieldCount; i++) { auto key = builder.createStructKey(); - nameSb.Clear(); + nameSb.clear(); nameSb << "field" << i; builder.addNameHintDecoration(key, nameSb.getUnownedSlice()); nameSb << "_anyVal" << size; @@ -560,7 +560,7 @@ namespace Slang key.originalType = type; key.anyValueSize = size; MarshallingFunctionSet funcSet; - if (mapTypeMarshalingFunctions.TryGetValue(key, funcSet)) + if (mapTypeMarshalingFunctions.tryGetValue(key, funcSet)) return funcSet; funcSet.packFunc = generatePackingFunc(type, anyValueType); funcSet.unpackFunc = generateUnpackingFunc(type, anyValueType); @@ -627,7 +627,7 @@ namespace Slang IRInst* inst = sharedContext->workList.getLast(); sharedContext->workList.removeLast(); - sharedContext->workListSet.Remove(inst); + sharedContext->workListSet.remove(inst); processInst(inst); @@ -643,7 +643,7 @@ namespace Slang if (auto anyValueType = as(inst)) processAnyValueType(anyValueType); } - sharedContext->mapInterfaceRequirementKeyValue.Clear(); + sharedContext->mapInterfaceRequirementKeyValue.clear(); } }; -- cgit v1.2.3