diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-04-25 12:25:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 09:25:52 -0700 |
| commit | 5abee6a0a30c7c965138ec7286b7f1b21b201731 (patch) | |
| tree | 0469f6f85bac0fcf502a95f2a60c49179349dd17 /source/slang/slang-mangle.cpp | |
| parent | e5d5e3c215f3300bf447e6ab46cdf8d5c12f58a6 (diff) | |
StringBuilder to lowerCamel (#2840)
* #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.
* Small tidy on String.
* Append -> append
* ToString -> toString
ProduceString -> produceString
* Small fixes.
* StringToXXX -> stringToXXX
* Fix typo introduced by Append -> append.
* Made intToAscii do reversal at the end.
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-mangle.cpp')
| -rw-r--r-- | source/slang/slang-mangle.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp index dea808a8e..77e6586ff 100644 --- a/source/slang/slang-mangle.cpp +++ b/source/slang/slang-mangle.cpp @@ -552,7 +552,7 @@ namespace Slang { ManglingContext context(astBuilder); mangleName(&context, declRef); - return context.sb.ProduceString(); + return context.sb.produceString(); } String getMangledName(ASTBuilder* astBuilder, DeclRefBase const & declRef) @@ -575,7 +575,7 @@ namespace Slang emitRaw(&context, "_SW"); emitQualifiedName(&context, sub); emitQualifiedName(&context, sup); - return context.sb.ProduceString(); + return context.sb.produceString(); } String getMangledNameForConformanceWitness( @@ -592,7 +592,7 @@ namespace Slang emitRaw(&context, "_SW"); emitQualifiedName(&context, sub); emitType(&context, sup); - return context.sb.ProduceString(); + return context.sb.produceString(); } String getMangledNameForConformanceWitness( @@ -609,21 +609,21 @@ namespace Slang emitRaw(&context, "_SW"); emitType(&context, sub); emitType(&context, sup); - return context.sb.ProduceString(); + return context.sb.produceString(); } String getMangledTypeName(ASTBuilder* astBuilder, Type* type) { ManglingContext context(astBuilder); emitType(&context, type); - return context.sb.ProduceString(); + return context.sb.produceString(); } String getMangledNameFromNameString(const UnownedStringSlice& name) { ManglingContext context(nullptr); emitNameImpl(&context, name); - return context.sb.ProduceString(); + return context.sb.produceString(); } String getHashedName(const UnownedStringSlice& mangledName) |
