HomePhabricator

Implement #pragma clang final extension

Authored by beanz on Sep 27 2021, 9:59 AM.

Description

Implement #pragma clang final extension

This patch adds a new preprocessor extension `#pragma clang final`
which enables warning on undefinition and re-definition of macros.

The intent of this warning is to extend beyond `-Wmacro-redefined` to
warn against any and all alterations to macros that are marked final.

This warning is part of the `-Wpedantic-macros` diagnostics group.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D108567

Details

Committed
beanzSep 27 2021, 12:11 PM
Reviewer
aaron.ballman
Differential Revision
D108567: Implement #pragma clang final extension
Parents
rGfdba1dccbe65: [InstCombine] reduce code for shl-of-sub transform; NFC
Branches
Unknown
Tags
Unknown