diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-10-23 15:07:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 15:07:10 -0400 |
| commit | 051b20c218124e9ffc72ae31b95529b35aa9a43c (patch) | |
| tree | ea73a5ad64d29e6fb01ad4b8f7e34d4444f9b24e /tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp | |
| parent | 6d1fe29cdcbca18d559e302d6427a504d1762173 (diff) | |
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.
Diffstat (limited to 'tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp')
| -rw-r--r-- | tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
