8000 Strip 'inline' from return type · PBCOnGit/robotpy-cppheaderparser@56400a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 56400a4

Browse files
committed
Strip 'inline' from return type
1 parent 795c223 commit 56400a4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CppHeaderParser/CppHeaderParser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ def __init__(self, nameStack, curClass, methinfo, curTemplate, doxygen, location
972972
self["rtnType"] = self["rtnType"][len("virtual") :].strip()
973973
elif self["rtnType"].startswith("static"):
974< 8000 /code>974
self["rtnType"] = self["rtnType"][len("static") :].strip()
975+
elif self["rtnType"].startswith("inline"):
976+
self["rtnType"] = self["rtnType"][len("inline") :].strip()
975977
if len(self["rtnType"]) == 0 or self["name"] == curClass:
976978
self["rtnType"] = "void"
977979

test/test_CppHeaderParser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3645,6 +3645,7 @@ def test_fn(self):
36453645
},
36463646
],
36473647
)
3648+
self.assertEqual(fn["rtnType"], "HAL_Value")
36483649

36493650

36503651
if __name__ == "__main__":

0 commit comments

Comments
 (0)
0