Skip to content

Commit 9607663

Browse files
committed
Remove function parsing special case that's no longer needed
1 parent 212ae62 commit 9607663

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

CppHeaderParser/CppHeaderParser.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3075,20 +3075,7 @@ def _evaluate_stack(self, token=None):
30753075
self.using[alias] = atype
30763076
elif is_method_namestack(self.stack) and "(" in self.nameStack:
30773077
debug_print("trace")
3078-
if self.braceDepth > 0:
3079-
if (
3080-
"{" in self.stack
3081-
and self.stack[0] != "{"
3082-
and self.stack[-1] == ";"
3083-
and self.braceDepth == 1
3084-
):
3085-
# Special case of a method defined outside a class that has a body
3086-
pass
3087-
else:
3088-
self._evaluate_method_stack()
3089-
else:
3090-
# Free function
3091-
self._evaluate_method_stack()
3078+
self._evaluate_method_stack()
30923079
elif is_enum_namestack(self.nameStack):
30933080
debug_print("trace")
30943081
self._parse_enum()

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