Make concatenate_string_literals static

pull/3744/head
Christoph Behle 7 years ago committed by Nirbheek Chauhan
parent 40d121d33e
commit 626b0bcb05
  1. 3
      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<pre>.*([^\\]")|^")(?P<str1>([^\\"]|\\.)*)"\s+"(?P<str2>([^\\"]|\\.)*)(?P<post>".*)')
ret = s
m = pattern.match(ret)

Loading…
Cancel
Save