Commit 3ceb0d4b authored by Sergio Costas's avatar Sergio Costas

Now only analyzes the functions contained in the current file (useful when a...

Now only analyzes the functions contained in the current file (useful when a header file contains static functions)
parent 364e1c87
......@@ -195,6 +195,7 @@ class crust(object):
def read_file(self, filename, verbose, includes, defines, include_files, disable_cpp = False, write_preprocesed = None):
self.filename = os.path.abspath(filename)
if disable_cpp:
with open(filename,"r") as source_file:
datacode = ""
......@@ -1422,6 +1423,10 @@ class crust(object):
def _process_block(self, function_name, tree, thread_status):
# if the function is not in the current file, don't analyze it
if (os.path.abspath(tree[0].filename) != self.filename):
return
thread_status["debug_level"] = 0
thread_status["loop_level"] = 0
thread_status["find_label"] = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment