I receive the cppcheck: No C or C++ source files found.
error even though the file in question is present in the directory I am searching in.
This is the command I am running:
subprocess.call('cppcheck --dump --max-ctu-depth=0' + cpp_file_path, shell = True)
In which I want to produce a dump file, and suppress any deeper program analysis (this is why N=0
in --max-ctu-depth=N
). The directory I am also going into, the cpp_file_path
has a little over 10,000 files. Is there a flag I can use with the cppcheck utility to ensure that it is searching through the entire directory? Why would the error appear if that .cpp file is present in the directory specified? I have confirmed those files do exist multiple times.