aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coredata.py1
-rw-r--r--environment.py6
-rw-r--r--ninjabackend.py11
3 files changed, 0 insertions, 18 deletions
diff --git a/coredata.py b/coredata.py
index 5ae1f82..a8b3369 100644
--- a/coredata.py
+++ b/coredata.py
@@ -80,7 +80,6 @@ forbidden_target_names = {'clean': None,
'test-valgrind': None,
'install': None,
'build.ninja': None,
- 'cppcheck': None,
}
class MesonException(Exception):
diff --git a/environment.py b/environment.py
index e335895..c813f0c 100644
--- a/environment.py
+++ b/environment.py
@@ -973,12 +973,6 @@ def find_valgrind():
valgrind_exe = None
return valgrind_exe
-def find_cppcheck():
- cppcheck_exe = 'cppcheck'
- if not exe_exists([cppcheck_exe, '-h']):
- cppcheck_exe = None
- return cppcheck_exe
-
def is_osx():
return platform.system().lower() == 'darwin'
diff --git a/ninjabackend.py b/ninjabackend.py
index 43a3cf4..00389c8 100644
--- a/ninjabackend.py
+++ b/ninjabackend.py
@@ -933,15 +933,6 @@ class NinjaBackend(backends.Backend):
src_deps.append(infilename)
return (src_deps, other_deps)
- def generate_cppcheck_target(self, outfile):
- cppcheck_exe = environment.find_cppcheck()
- if not cppcheck_exe:
- return
- elem = NinjaBuildElement('cppcheck', 'CUSTOM_COMMAND', [])
- elem.add_item('COMMAND', [cppcheck_exe, self.environment.get_source_dir()])
- elem.add_item('description', 'Running cppchecker')
- elem.write(outfile)
-
def generate_ending(self, outfile):
targetlist = [self.get_target_filename(t) for t in self.build.get_targets().values()]
elem = NinjaBuildElement('all', 'phony', targetlist)
@@ -979,5 +970,3 @@ class NinjaBackend(backends.Backend):
elem = NinjaBuildElement(deps, 'phony', '')
elem.write(outfile)
-
- self.generate_cppcheck_target(outfile)