From 5abee6a0a30c7c965138ec7286b7f1b21b201731 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 25 Apr 2023 12:25:52 -0400 Subject: 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 --- source/slang/slang-preprocessor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/slang/slang-preprocessor.cpp') diff --git a/source/slang/slang-preprocessor.cpp b/source/slang/slang-preprocessor.cpp index ba96ac887..28abaaf76 100644 --- a/source/slang/slang-preprocessor.cpp +++ b/source/slang/slang-preprocessor.cpp @@ -1833,7 +1833,7 @@ Token MacroInvocation::_readTokenImpl() // PathInfo pathInfo = PathInfo::makeTokenPaste(); SourceManager* sourceManager = m_preprocessor->getSourceManager(); - SourceFile* sourceFile = sourceManager->createSourceFileWithString(pathInfo, pastedContent.ProduceString()); + SourceFile* sourceFile = sourceManager->createSourceFileWithString(pathInfo, pastedContent.produceString()); SourceView* sourceView = sourceManager->createSourceView(sourceFile, nullptr, tokenPasteLoc); Lexer lexer; @@ -2532,7 +2532,7 @@ static PreprocessorExpressionValue ParseAndEvaluateUnaryExpression(PreprocessorD } case TokenType::IntegerLiteral: - return StringToInt(token.getContent()); + return stringToInt(token.getContent()); case TokenType::Identifier: { @@ -3484,7 +3484,7 @@ static void HandleLineDirective(PreprocessorDirectiveContext* context) switch(PeekTokenType(context)) { case TokenType::IntegerLiteral: - line = StringToInt(AdvanceToken(context).getContent()); + line = stringToInt(AdvanceToken(context).getContent()); break; case TokenType::EndOfFile: @@ -4098,7 +4098,7 @@ TokenList preprocessSource( sb << t.Content; } - String s = sb.ProduceString(); + String s = sb.produceString(); #endif return tokens; -- cgit v1.2.3