aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/Parser.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2014-03-13 10:58:18 -0300
committerErik Verbruggen <erik.verbruggen@digia.com>2014-03-13 15:41:01 +0100
commit349de9331c1b9076fe0aa9b2fd2243fdd1e4255e (patch)
treee4b86840efe364139f27b081bbf65654a51532a4 /src/libs/3rdparty/cplusplus/Parser.cpp
parent0832a0deacb9dada0946744d2c579cfa5315883e (diff)
C++: Fix weird logic in usage of TopLevelDeclarationProcessor::processDeclaration
As the name function name suggests, true should be returned if the declaration should be processed. Otherwise false. Change-Id: I8d266d99c579b331fee8772bde47aa1a466dae9c Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Parser.cpp')
-rw-r--r--src/libs/3rdparty/cplusplus/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/3rdparty/cplusplus/Parser.cpp b/src/libs/3rdparty/cplusplus/Parser.cpp
index 2f0bb6e477..bf19628fd2 100644
--- a/src/libs/3rdparty/cplusplus/Parser.cpp
+++ b/src/libs/3rdparty/cplusplus/Parser.cpp
@@ -541,7 +541,7 @@ bool Parser::parseTranslationUnit(TranslationUnitAST *&node)
if (TopLevelDeclarationProcessor *processor = _control->topLevelDeclarationProcessor()) {
- if (processor->processDeclaration(declaration))
+ if (!processor->processDeclaration(declaration))
break;
}