aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2022-05-19 13:33:51 -0500
committerEli Schwartz <eschwartz93@gmail.com>2022-05-19 15:05:53 -0400
commit5d0538d2357259c49ea6abd7793584bbf04091d2 (patch)
tree2149b8ff4c50a99ab3f1e1eb1d97031f8dd3b6ee /mesonbuild/compilers/cpp.py
parent8d918e01475cfa616e610c5721b5e9198d03f883 (diff)
downloadmeson-5d0538d2357259c49ea6abd7793584bbf04091d2.zip
meson-5d0538d2357259c49ea6abd7793584bbf04091d2.tar.gz
meson-5d0538d2357259c49ea6abd7793584bbf04091d2.tar.bz2
Fix invalid Python overrides
- mismatched method type - mismatched parameter names
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 4c24767..253dc42 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -60,9 +60,7 @@ def non_msvc_eh_options(eh: str, args: T.List[str]) -> None:
'You may want to set eh to \'default\'.')
class CPPCompiler(CLikeCompiler, Compiler):
-
- @classmethod
- def attribute_check_func(cls, name: str) -> str:
+ def attribute_check_func(self, name: str) -> str:
try:
return CXX_FUNC_ATTRIBUTES.get(name, C_FUNC_ATTRIBUTES[name])
except KeyError: