From 626b0bcb057ad63804d37bc7276fd3eb846fe39c Mon Sep 17 00:00:00 2001 From: Christoph Behle Date: Mon, 11 Jun 2018 19:23:49 +0200 Subject: [PATCH] Make concatenate_string_literals static --- mesonbuild/compilers/c.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index dc7a9f5a6..e34779bf8 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -934,7 +934,8 @@ class CCompiler(Compiler): code = 'int main(int argc, char **argv) { return 0; }' return self.has_arguments(args, env, code, mode='link') - def concatenate_string_literals(self, s): + @staticmethod + def concatenate_string_literals(s): pattern = re.compile(r'(?P
.*([^\\]")|^")(?P([^\\"]|\\.)*)"\s+"(?P([^\\"]|\\.)*)(?P".*)')
         ret = s
         m = pattern.match(ret)