summaryrefslogtreecommitdiffstats
path: root/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-05-28 15:32:19 -0400
committerGitHub <noreply@github.com>2020-05-28 15:32:19 -0400
commit95597d77b131ee2c41c2eb4481844c315b2c82eb (patch)
tree08453076a9744393a4301a84d254cfe07c536a4a /tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp
parentc2d31347ea06c768045e7c503ef0188e0e5356de (diff)
Small improvements to documentation and code around DiagnosticSink (#1359)
Diffstat (limited to 'tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp')
-rw-r--r--tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp b/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp
index 792cf3458..3fa191394 100644
--- a/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp
+++ b/tools/slang-cpp-extractor/slang-cpp-extractor-main.cpp
@@ -1365,7 +1365,7 @@ SlangResult CPPExtractor::_maybeParseType(UnownedStringSlice& outType)
{
Index templateDepth = 0;
SlangResult res = _maybeParseType(outType, templateDepth);
- if (SLANG_FAILED(res) && m_sink->errorCount)
+ if (SLANG_FAILED(res) && m_sink->getErrorCount())
{
return res;
}
@@ -1472,7 +1472,7 @@ SlangResult CPPExtractor::_maybeParseField()
UnownedStringSlice typeName;
if (SLANG_FAILED(_maybeParseType(typeName)))
{
- if (m_sink->errorCount)
+ if (m_sink->getErrorCount())
{
return SLANG_FAIL;
}
@@ -1565,7 +1565,7 @@ SlangResult CPPExtractor::parse(SourceFile* sourceFile, const Options* options)
lexer.initialize(sourceView, m_sink, m_namePool, manager->getMemoryArena());
m_tokenList = lexer.lexAllTokens();
// See if there were any errors
- if (m_sink->errorCount)
+ if (m_sink->getErrorCount())
{
return SLANG_FAIL;
}
@@ -2446,7 +2446,7 @@ int main(int argc, const char*const* argv)
{
return 1;
}
- if (sink.errorCount)
+ if (sink.getErrorCount())
{
return 1;
}