Skip to content

Commit 33b7958

Browse files
committed
Remove more mess
1 parent 9607663 commit 33b7958

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

CppHeaderParser/CppHeaderParser.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3079,7 +3079,6 @@ def _evaluate_stack(self, token=None):
30793079
elif is_enum_namestack(self.nameStack):
30803080
debug_print("trace")
30813081
self._parse_enum()
3082-
self.nameStack = []
30833082
self.stack = []
30843083
self.stmtTokens = []
30853084
elif (
@@ -3123,25 +3122,22 @@ def _evaluate_stack(self, token=None):
31233122

31243123
elif not self.curClass:
31253124
debug_print("trace")
3126-
self.nameStack = []
31273125
elif self.braceDepth < 1:
31283126
debug_print("trace")
31293127
# Ignore global stuff for now
31303128
debug_print("Global stuff: %s" % self.nameStack)
3131-
self.nameStack = []
31323129
elif self.braceDepth > len(self.nameSpaces) + 1:
31333130
debug_print("trace")
3134-
self.nameStack = []
31353131
else:
31363132
debug_print("Discarded statement %s" % (self.nameStack,))
31373133

31383134
try:
31393135
self.nameStackHistory[self.braceDepth] = (nameStackCopy, self.curClass)
31403136
except:
31413137
self.nameStackHistory.append((nameStackCopy, self.curClass))
3142-
self.nameStack = (
3143-
[]
3144-
) # its a little confusing to have some if/else above return and others not, and then clearning the nameStack down here
3138+
3139+
# its a little confusing to have some if/else above return and others not, and then clearning the nameStack down here
3140+
self.nameStack = []
31453141
self.lex.doxygenCommentCache = ""
31463142
self.curTemplate = None
31473143

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy