Skip to content

Commit

Permalink
No :: in function scope name
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Sep 15, 2024
1 parent 74893ce commit f03f96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsiqcppstyle_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,7 @@ def ConstructContextInfo(lexer):
lexer.PushTokenIndex()
if t.type == "OPERATOR":
fullName = fullName + operator_name.value
t.value = t.value + operator_name.value
while True:
prevName = lexer.GetPrevTokenSkipWhiteSpaceAndCommentAndPreprocess()
if prevName is not None:
Expand Down Expand Up @@ -1269,7 +1270,6 @@ def ConstructContextInfo(lexer):

# RunFunctionRule(lexer, functionName, decl, contextStack, contextPrediction)
t.type = "FUNCTION"
t.value = fullName
t.fullName = fullName
t.context = contextPrediction
t.decl = not impl
Expand Down

0 comments on commit f03f96a

Please sign in to comment.