Skip to content

Commit

Permalink
revert changes on build_and_analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
rizsotto committed Jun 26, 2014
1 parent d254f50 commit e651aaf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions analyzer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def split_env_content(name):
logging.basicConfig(format='%(message)s', level=log_level)
logging.info(' '.join(sys.argv))

return build_and_analyze()(
return build_and_analyze(
command=sys.argv,
is_cxx=is_cxx,
verbose=True if log_level < logging.WARNING else None,
Expand All @@ -57,9 +57,9 @@ def split_env_content(name):
report_failures=os.environ.get('CCC_REPORT_FAILURES'))


def build_and_analyze():
def build_and_analyze(**kwargs):
""" Creates a method to run the command and the analyzer. """
return stack([set_compiler,
chain = stack([set_compiler,
execute,
parse,
filter_action,
Expand All @@ -71,6 +71,8 @@ def build_and_analyze():
run_analyzer,
report_failure])

return chain(kwargs)


def stack(conts):
""" Creates a single method from multiple continuations.
Expand Down

0 comments on commit e651aaf

Please sign in to comment.