From f59978893fed309ff19bacd787398c4bab4aa7c8 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 4 May 2020 13:46:24 -0400 Subject: C++ Extractor (#1337) * WIP: Doing texing using slangs lexer for cpp-extractor * Node tree for C++ extraction. * Bug fixing. Add dump of hierarchy. * First pass at extracting fields. * Parse template types. * Use diagnostics defs for C++ extractor. * Simplify Diagnostic Defs. * Remove the brace stack. * Added IdentifierLookup. * Add handling for >> style template close. * Improved identifier handling/keywords. * Added ability to check if reader is at cursor position. * Handling of an unspecified root type. * Parsing code comments. Tidy up some parsing - to use advanceIf functions more. * Improve path handling. * Fixes around changes to Path interface. * Working Range, Type and Scope header. * Extract the middle part of marker and put in output. Gives more flexibility at macro injection, and in class definitions. * Split DERIVED types into it's own macro, to provide way to generate for derived types. * Fix clang/g++ compile issue. * Tabs -> spaces. * Fix small bug in getFileNameWithoutExt * Small improvement around naming. Co-authored-by: Tim Foley --- tools/slang-test/slang-test-main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/slang-test') diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index 8b3fda9dd..7c511a01a 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -1434,7 +1434,7 @@ static TestResult runCPPCompilerSharedLibrary(TestContext* context, TestInput& i // Make the module name the same as the source file String modulePath = _calcModulePath(input); - String ext = Path::getFileExt(filePath); + String ext = Path::getPathExt(filePath); // Remove the binary.. String sharedLibraryPath = SharedLibrary::calcPlatformPath(modulePath.getUnownedSlice()); @@ -1551,7 +1551,7 @@ static TestResult runCPPCompilerExecute(TestContext* context, TestInput& input) File::remove(actualOutputPath); // Make the module name the same as the source file - String ext = Path::getFileExt(filePath); + String ext = Path::getPathExt(filePath); String modulePath = _calcModulePath(input); // Remove the binary.. -- cgit v1.2.3