repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Workflow] Try to fix code-formatter failing to find changes in some cases.
[llvm-project.git]
/
lldb
/
packages
/
Python
/
lldbsuite
/
support
/
funcutils.py
blob
55db939de96c2f26e3201de4c061d7e8bc56bc6a
1
import
inspect
2
3
4
def
requires_self
(
func
):
5
func_argc
=
len
(
inspect
.
getfullargspec
(
func
).
args
)
6
if
(
7
func_argc
==
0
8
or
(
getattr
(
func
,
"im_self"
,
None
)
is not None
)
9
or
(
hasattr
(
func
,
"__self__"
))
10
):
11
return False
12
else
:
13
return True