Skip to content

Commit 5929c66

Browse files
Axel-Naumanndevajithvs
authored andcommitted
Also store Parser paren numbers; likely fixes ROOT-6976:
The parser (or rather the BalancedDelimiterTracker) was doing a Parser::cutOffParsing() because of an overflow of open ( - because we never reset the count.
1 parent 77c81e7 commit 5929c66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/include/clang/Parse/Parser.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include <optional>
2525
#include <stack>
2626

27+
namespace cling { class ParserStateRAII; }
28+
2729
namespace clang {
2830
class PragmaHandler;
2931
class Scope;
@@ -63,6 +65,7 @@ class Parser : public CodeCompletionHandler {
6365
friend class ParenBraceBracketBalancer;
6466
friend class BalancedDelimiterTracker;
6567
friend class DestroyTemplateIdAnnotationsRAIIObj;
68+
friend class ::cling::ParserStateRAII;
6669

6770
Preprocessor &PP;
6871

0 commit comments

Comments
 (0)