audk/MdePkg/Include
Marvin H?user 90eda6fc27 MdePkg/DebugLib: Flag post-_ASSERT() as unreachable for analyzers.
When a variable is compared to NULL as part of an ASSERT() call, the
code implies that the variable may be NULL. Certain Static Analyzers,
such as the Clang Static Analyzer, then issue false warnings for any
untested access of that pointer, even though that defeats the
intention behind ASSERT(). This patch flags the position after
_ASSERT() as unreachable for Static Analyzers to indicate that if the
variable is NULL, execution cannot pass.
As the ANALYZER-prefixed version is used, the executables will not
have any code stripped during compilation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2016-06-22 09:37:12 +08:00
..
AArch64 MdePkg/ProcessorBind.h: Add ARM and AArch64 GCC macros for Clang 2014-10-31 14:05:09 +00:00
Arm MdePkg/ProcessorBind.h: Add ARM and AArch64 GCC macros for Clang 2014-10-31 14:05:09 +00:00
Ebc MdePkg Base.h: Always define ASM_PFX 2014-09-01 17:23:10 +00:00
Guid MdePkg: Revert AuditMode/DeployedMode name definition 2016-05-04 09:13:46 +08:00
Ia32 MdePkg: Disable VS2015 warning C4701 & C4703 2015-12-04 03:05:28 +00:00
IndustryStandard MdePkg: Add a header for NVMe v1.1 spec. definitions. 2016-05-27 13:31:22 +08:00
Ipf MdePkg Base.h: Always define ASM_PFX 2014-09-01 17:23:10 +00:00
Library MdePkg/DebugLib: Flag post-_ASSERT() as unreachable for analyzers. 2016-06-22 09:37:12 +08:00
Pi MdePkg: Follow PI1.4a update SmmStartupThisAP() description 2016-06-02 16:34:59 +08:00
Ppi MdePkg: Follow PI1.4a update EFI_SEC_PLATFORM_INFORMATION2 description 2016-06-02 16:34:53 +08:00
Protocol MdePkg: MTftp6: Correct #define value in Mtfp6.h 2016-06-16 18:27:53 +08:00
Uefi MdePkg: Add HII definitions from UEFI 2.6 2016-05-13 11:17:57 +08:00
X64 MdePkg: Disable VS2015 warning C4701 & C4703 2015-12-04 03:05:28 +00:00
Base.h MdePkg: Add NORETURN attribute and UNREACHABLE() macro. 2016-06-22 09:37:01 +08:00
PiDxe.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PiPei.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PiSmm.h Add definitions for the UEFI ACPI Data Table defined in the UEFI spec and the SMM Communication ACPI Table defined in the PI spec. 2011-02-22 10:05:06 +00:00
Uefi.h Update the copyright notice format 2010-04-23 15:46:20 +00:00