mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-07 11:47:50 +00:00
Only normalize source if treat_inlines is enabled
This commit is contained in:
@@ -33,6 +33,7 @@ class CMockHeaderParser
|
||||
@module_name = name.gsub(/\W/,'')
|
||||
@typedefs = []
|
||||
@funcs = []
|
||||
@normalized_source = nil
|
||||
function_names = []
|
||||
|
||||
parse_functions( import_source(source) ).map do |decl|
|
||||
@@ -43,10 +44,14 @@ class CMockHeaderParser
|
||||
end
|
||||
end
|
||||
|
||||
if @treat_inlines == :include
|
||||
@normalized_source = transform_inline_functions(source)
|
||||
end
|
||||
|
||||
{ :includes => nil,
|
||||
:functions => @funcs,
|
||||
:typedefs => @typedefs,
|
||||
:normalized_source => transform_inline_functions(source),
|
||||
:normalized_source => @normalized_source
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user