Skip to content

Conversation

informatimago
Copy link
Contributor

@informatimago informatimago commented Jun 26, 2023

Added comment mentioning path of source file to generated files.

Related to: #783 cmock of the wrong file is generated.

@informatimago informatimago force-pushed the 783--cmock-of-the-wrong-file-is-generated branch from fc5f029 to abf424b Compare June 28, 2023 08:04
@informatimago
Copy link
Contributor Author

informatimago commented Jul 5, 2023

:aliases true is required in new versions of YAML. Perhaps writing:

require 'yaml'
require 'yaml/store'

def load_yaml_with_aliases(file_path)
  if Gem::Version.new(YAML::VERSION) >= Gem::Version.new('0.94.0')
    YAML.load(File.read(file_path), aliases: true)
  else
    YAML.load(File.read(file_path))
  end
end

@informatimago informatimago force-pushed the 783--cmock-of-the-wrong-file-is-generated branch from 1fd7f02 to 888a6c0 Compare August 1, 2023 16:30
@informatimago informatimago force-pushed the 783--cmock-of-the-wrong-file-is-generated branch from 6666f89 to b98f6c6 Compare August 10, 2023 10:55
@informatimago informatimago force-pushed the 783--cmock-of-the-wrong-file-is-generated branch from b98f6c6 to 930a410 Compare November 16, 2023 14:26
@informatimago informatimago force-pushed the 783--cmock-of-the-wrong-file-is-generated branch 2 times, most recently from 6476977 to f2b213d Compare December 5, 2023 12:51
informatimago and others added 20 commits December 5, 2023 13:54
- Introduced CMock_memset and CMock_memcpy
- Updated tests.
Factorized out the generation of returns with noreturn exits in
generate_return and generate_template_return methods.
Added parsing of noreturn attributes in various syntaxes
(C syntax, C++ syntax, GNU gcc syntax).

To do so safely, added a C lexer, and a quick-and-dirty parenthesis parser
(including brackets, braces and angle-brackets for C++).  Using the
scanned list of tokens, processing parenthesised source code is easier
and safer than with regular expressions.
Related to: #783 cmock of the wrong file is generated.
Added --recursive to submodules update.

Co-authored-by: Crt Mori <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants