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

Ecc tool modifications #1251

Merged
merged 2 commits into from
Dec 22, 2020
Merged

Ecc tool modifications #1251

merged 2 commits into from
Dec 22, 2020

Conversation

lgao4
Copy link
Contributor

@lgao4 lgao4 commented Dec 21, 2020

While running the Ecc tool, some unexpected behaviors occurred. These patches aim to correct them.

@lgao4 lgao4 added the push Auto push patch series in PR if all checks pass label Dec 21, 2020
@mergify
Copy link

mergify bot commented Dec 21, 2020

PR can not be merged due to a PatchCheck failure. Please resolve and resubmit

samimujawar and others added 2 commits December 22, 2020 08:47
The ECC tool crashes if a C file has an incorrect file header
format.

The file ArmPkg\Library\ArmMmuLib\AArch64\ArmMmuPeiLibConstructor.c
has a file header in the incorrect format. It uses # to mark the
header comments instead of enclosing the file header in /* */. This
may have been a result of an INF file header being copied to a C
file.

A separate patch fixes the C file but ECC tool should
not crash if a file with an incorrect header is found.

Therefore, update the ECC tool to prevent it from crashing if an
incorrect file header is found. With this change the ECC tool will
report the incorrect header issue without crashing.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
The Ecc tool currently reports the initialization of variables
at declaraton if the variable is non-constant and declared
in a function. Static variables locally defined in functions
should also be allowed to be initialized at declaration.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
@mergify mergify bot merged commit 6899e67 into tianocore:master Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants