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"):
974974
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)
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