]> granicus.if.org Git - clang/commit
Turn cl::values() (for enum) from a vararg function to using C++ variadic template
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 8 Oct 2016 19:41:06 +0000 (19:41 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 8 Oct 2016 19:41:06 +0000 (19:41 +0000)
commite5f86e2485e267ae93fa7e5139fc1c8c3c22335e
tree40d00d3bed76e20a0382cf1fb81b1ff57cca38a6
parentef2871bb8bcfe4f4235f0ff80496f15f480028be
Turn cl::values() (for enum) from a vararg function to using C++ variadic template

The core of the change is supposed to be NFC, however it also fixes
what I believe was an undefined behavior when calling:

 va_start(ValueArgs, Desc);

with Desc being a StringRef.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283671 91177308-0d34-0410-b5e6-96231b3b80d8
tools/c-index-test/core_main.cpp
utils/TableGen/TableGen.cpp