Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 4b27e8e20b7e67e76cab6593f21b8adb894bcfcc
https://github.com/tianocore/edk2/commit/4b27e8e20b7e67e76cab6593f21b8adb894bcfcc
Author: Michael Kubacki <[email protected]>
Date: 2026-06-26 (Fri, 26 Jun 2026)
Changed paths:
M BaseTools/Source/Python/CommonDataClass/DataClass.py
M BaseTools/Source/Python/Ecc/c.py
M BaseTools/Source/Python/Eot/c.py
M BaseTools/Source/Python/UPT/Library/DataType.py
Log Message:
-----------
BaseTools: Fix MODEL_IDENTIFIER_MACRO_PROGMA typo
Fixes typo in the constant name.
Signed-off-by: Michael Kubacki <[email protected]>
Commit: 35b5565764ea7be7b2cd69626bf9ae264a4fecf8
https://github.com/tianocore/edk2/commit/35b5565764ea7be7b2cd69626bf9ae264a4fecf8
Author: Michael Kubacki <[email protected]>
Date: 2026-06-26 (Fri, 26 Jun 2026)
Changed paths:
M BaseTools/Source/Python/Ecc/Check.py
M BaseTools/Source/Python/Ecc/Configuration.py
M BaseTools/Source/Python/Ecc/EccToolError.py
M BaseTools/Source/Python/Ecc/config.ini
Log Message:
-----------
BaseTools/Ecc: Add check for traditional include guards
Adds a new ECC check, `IncludeFileCheckPragmaOnce` (error code 6006),
that flags header files using a traditional `#ifndef`/`#define`
include guard and recommends `#pragma once` instead.
A guard is detected when a '#ifndef NAME' is immediately followed by a
valueless '#define NAME' using the same macro name. Feature macros
such as '#define FOO 1' and files already using '#pragma once' are not
flagged.
The check reports against the parsed preprocessor directive rows in
the identifier tables rather than the File table. Those rows carry the
actual source line number, whereas File-level findings resolve to
"line 1" in the report. This gives an accurate line number, to the
EccCheck CI plugin, so it can reconcile findings with the changed line
ranges of a commit.
It uses the binary extension list and the exception list, consistent
with the other include file checks.
Signed-off-by: Michael Kubacki <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/ddd6cc304ef5...35b5565764ea
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits