clang: Exclude efi_main from -Wmissing-prototypes
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 30 Jan 2021 19:28:11 +0000 (19:28 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 20 Feb 2021 20:00:50 +0000 (20:00 +0000)
commit7dd42ecfa2a29bac89c965544c14b32805c8f02b
tree8dba0d6b338f256ccca835260893cf1dc90fc70e
parent5ec75c600713d529cee75943f398d12df15574db
clang: Exclude efi_main from -Wmissing-prototypes

When compiling UEFI applications, the main function is named
efi_main() instead of main(). Let's exclude efi_main() from
-Wmissing-prototypes as well to avoid warnings when working
on UEFI applications.

Differential Revision: https://reviews.llvm.org/D95746
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/no-warn-missing-prototype.c