]> granicus.if.org Git - clang/commit
Sema: provide an extension warning for enable_if
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 18 Feb 2016 06:49:31 +0000 (06:49 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 18 Feb 2016 06:49:31 +0000 (06:49 +0000)
commit1d51805adbc664ca5795227718fd99bd2915876f
treeacf8c262c7432a8c38d8de2f66261bd9ea9766a6
parentad0288b56de419ec4c87618ce2f6d19c40d56b48
Sema: provide an extension warning for enable_if

Clang implements an enable_if attribute as an extension.  Hook up `-Wpedantic`
to issue an extension usage warning when __enable_if__ is used.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261192 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticCommonKinds.td
lib/Sema/SemaDeclAttr.cpp
test/Sema/enable_if-ext.c [new file with mode: 0644]