diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-04-25 10:43:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 10:43:29 -0400 |
| commit | 7b7c095b37e85ca3a8f55eff1c3d9643d467b8e0 (patch) | |
| tree | 9c71955dbc956b0058b19818ca127c8132cda512 /source/slang/slang-ir-any-value-marshalling.cpp | |
| parent | 284cee1f246c072f190c87c8fb60c1d2181e458f (diff) | |
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.
Diffstat (limited to 'source/slang/slang-ir-any-value-marshalling.cpp')
| -rw-r--r-- | source/slang/slang-ir-any-value-marshalling.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<AnyValueTypeInfo> 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<IRAnyValueType>(inst)) processAnyValueType(anyValueType); } - sharedContext->mapInterfaceRequirementKeyValue.Clear(); + sharedContext->mapInterfaceRequirementKeyValue.clear(); } }; |
