summaryrefslogtreecommitdiffstats
path: root/tools/slang-cpp-extractor
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-cpp-extractor')
-rw-r--r--tools/slang-cpp-extractor/cpp-extractor-main.cpp4
-rw-r--r--tools/slang-cpp-extractor/node-tree.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/slang-cpp-extractor/cpp-extractor-main.cpp b/tools/slang-cpp-extractor/cpp-extractor-main.cpp
index 6fbba20c3..c8a4d80f5 100644
--- a/tools/slang-cpp-extractor/cpp-extractor-main.cpp
+++ b/tools/slang-cpp-extractor/cpp-extractor-main.cpp
@@ -246,7 +246,7 @@ SlangResult App::execute(const Options& options)
{
StringBuilder buf;
// Let's guess a 'fileMark' (it becomes part of the filename) based on the macro name. Use lower kabab.
- NameConventionUtil::join(slices.getBuffer(), slices.getCount(), CharCase::Lower, NameConvention::Kabab, buf);
+ NameConventionUtil::join(slices.getBuffer(), slices.getCount(), NameConvention::LowerKabab, buf);
typeSet->m_fileMark = buf.ProduceString();
}
@@ -254,7 +254,7 @@ SlangResult App::execute(const Options& options)
{
// Let's guess a typename if not set -> go with upper camel
StringBuilder buf;
- NameConventionUtil::join(slices.getBuffer(), slices.getCount(), CharCase::Upper, NameConvention::Camel, buf);
+ NameConventionUtil::join(slices.getBuffer(), slices.getCount(), NameConvention::UpperCamel, buf);
typeSet->m_typeName = buf.ProduceString();
}
}
diff --git a/tools/slang-cpp-extractor/node-tree.cpp b/tools/slang-cpp-extractor/node-tree.cpp
index f21d912a7..546a54c27 100644
--- a/tools/slang-cpp-extractor/node-tree.cpp
+++ b/tools/slang-cpp-extractor/node-tree.cpp
@@ -79,7 +79,7 @@ SourceOrigin* NodeTree::addSourceOrigin(SourceFile* sourceFile, const Options& o
slice = slice.trim('-');
StringBuilder out;
- NameConventionUtil::convert(slice, CharCase::Upper, NameConvention::Snake, out);
+ NameConventionUtil::convert(slice, NameConvention::UpperSnake, out);
return out;
}