Feature: Partials#1131
Merged
Merged
Conversation
Collapsing repeated whitespace between closing paren and opening brace mangled reasonable code formatting for `if` blocks, etc.
- Partializer is responsibe for adding `extern` in `reconstruct_variables()` instead of the generator - Bug fix: Empty variable declaration strings are removed from resulting reconstruction of variable array
These will replace simple strings, parsing, and formatting in `#include` handling
The preprocessor can at times expand elements across multiple lines in preprocessor output that all belong to the same line in the original source. New handling gathers that staggered content into a single line.
- Revised stand-in header file creation to target directories
New function that does not rely on unnecessary test-specific preprocessing steps
- Added mc/dc support to coverage reporting - Added dynamic discovery of console coverage reports to handle any number of lines of output
Ceedling generates include guards for preprocessed files. It then generates new include guards for generated Partials. With C langauge extraction, the first set of include guards ends up in the generated Partials. These are pointless symbols that muck up a beautiful file.
This supports advanced features of containers like `Array#select` and `Array#reject` calls. Rake FileLists can require `=~`, for instance.
Activate/deactivate are only run if a virtual environment is in use (local vs. CI builds)
Removing newlines in functions can break coverage instrumentation for relative line numbering
-Broke up GCov plugin documenation into a sub-section - Created a new Code Coverage reference section to summarize GCov option lookup
Replaced brittle handling of function signature and code_block handling for function definitions. This new approach preserves newlines throughout an extracted function, still cleans the signature for other purposes, robustly handles decorator removal from a function definition block, and updates `#line` numbering if necessary due to leading newline cleanup after decoractor removal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partials slice and dice source files and header files to allow testing and mocking of "private" functions (
static,inline, etc.). Among other things, this allows mocking of functions inside the same source file under test.