Commit 6ee56ae5 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

catch missing closing braces outside any scope as well

it doesn't make a whole lot of sense, but it's possible to create
braced blocks which have no semantic meaning.

Change-Id: Id55dfdee1aa3fade507cbd1eb34bdffcd7eb6bff
Reviewed-by: default avatarJoerg Bornemann <>
(cherry picked from qtbase/9113e5677ca79e88ff4589d7d7819e2f3070e8b3)
parent 40116cc7
......@@ -861,7 +861,7 @@ void QMakeParser::read(ProFile *pro, const QString &in, int line, SubGrammar gra
if (m_blockstack.size() > 1)
if (m_blockstack.size() > 1 ||
parseError(fL1S("Missing closing brace(s)."));
while (m_blockstack.size())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment