[gnome-code-assistance] Always return first found flags
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] Always return first found flags
- Date: Wed, 4 Dec 2013 11:08:42 +0000 (UTC)
commit cd34dec920bc2bfd0d44a2e09035474cc4e3ddd0
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Wed Dec 4 12:07:00 2013 +0100
Always return first found flags
backends/c/makefileintegration.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/backends/c/makefileintegration.py b/backends/c/makefileintegration.py
index 4e66caf..cb52327 100644
--- a/backends/c/makefileintegration.py
+++ b/backends/c/makefileintegration.py
@@ -347,10 +347,7 @@ class MakefileIntegration:
regfind = re.compile(fakecc + '([^\n]*)$', re.M)
for m in regfind.finditer(outstr):
- flags = self._filter_flags(makefile, shlex.split(m.group(1)))
-
- if len(flags) != 0:
- return flags
+ return self._filter_flags(makefile, shlex.split(m.group(2)))
return []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]