Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

783 cmock of the wrong file is generated #446

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

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.

docs/CMock_Summary.md Outdated Show resolved Hide resolved
@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.

3 participants