From 051b20c218124e9ffc72ae31b95529b35aa9a43c Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 23 Oct 2020 15:07:10 -0400 Subject: C++ extractor fix for access modifiers (#1586) * #include an absolute path didn't work - because paths were taken to always be relative. * Fix handling of access modifiers inside type definition. * Fix access problem for AST node. Make dumping produce a single function with switch, to potentially make available without Dump specific access. * Remove project references to previously generated files. --- tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp') diff --git a/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp b/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp index 210369e97..f71ae2fd6 100644 --- a/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp +++ b/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp @@ -1842,6 +1842,12 @@ SlangResult CPPExtractor::parse(SourceFile* sourceFile, const Options* options) } break; } + case IdentifierStyle::Access: + { + m_reader.advanceToken(); + SLANG_RETURN_ON_FAIL(expect(TokenType::Colon)); + break; + } default: { IdentifierFlags flags = getFlags(style); -- cgit v1.2.3