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.
Paths
| Differential D25342
Turn cl::values() (for enum) from a vararg function to using C++ variadic template ClosedPublic Authored by mehdi_amini on Oct 6 2016, 12:50 PM.
Details
Summary The core of the change is supposed to be NFC, however it also fixes va_start(ValueArgs, Desc); with Desc being a StringRef.
Diff Detail
Event Timelinemehdi_amini retitled this revision from to Turn cl::values() (for enum) from a vararg function to using C++ variadic template. mehdi_amini updated this object.
Comment Actions This LGTM. but I can't approve LLVM patches.
Comment Actions
Don't be so shy :) I put it up for review because I wasn't sure about the variadic template, if there was something more straightforward to build the initializer list and/or initialize the vector. I trust that if it is fine to you, it can be committed :) Closed by commit rL283671: Turn cl::values() (for enum) from a vararg function to using C++ variadic… (authored by mehdi_amini). · Explain WhyOct 8 2016, 12:50 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 74044 cfe/trunk/tools/c-index-test/core_main.cpp
cfe/trunk/utils/TableGen/TableGen.cpp
clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp
klee/trunk/lib/Basic/CmdLineOptions.cpp
klee/trunk/lib/Core/UserSearcher.cpp
klee/trunk/lib/Expr/ExprSMTLIBPrinter.cpp
klee/trunk/lib/Module/KModule.cpp
klee/trunk/tools/kleaver/main.cpp
klee/trunk/tools/klee/main.cpp
llvm/trunk/docs/CommandLine.rst
llvm/trunk/include/llvm/CodeGen/CommandFlags.h
llvm/trunk/include/llvm/MC/MCTargetOptionsCommandFlags.h
llvm/trunk/include/llvm/Support/CommandLine.h
llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp
llvm/trunk/lib/Analysis/RegionInfo.cpp
llvm/trunk/lib/Analysis/TargetLibraryInfo.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
llvm/trunk/lib/CodeGen/MachineBlockFrequencyInfo.cpp
llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
llvm/trunk/lib/CodeGen/SafeStack.cpp
llvm/trunk/lib/CodeGen/TargetPassConfig.cpp
llvm/trunk/lib/IR/LegacyPassManager.cpp
llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
llvm/trunk/lib/Target/Mips/MipsDelaySlotFiller.cpp
llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
llvm/trunk/lib/Transforms/IPO/Inliner.cpp
llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/trunk/tools/bugpoint/ExecutionDriver.cpp
llvm/trunk/tools/lli/OrcLazyJIT.cpp
llvm/trunk/tools/lli/lli.cpp
llvm/trunk/tools/llvm-ar/llvm-ar.cpp
llvm/trunk/tools/llvm-cov/CodeCoverage.cpp
llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
llvm/trunk/tools/llvm-lto/llvm-lto.cpp
llvm/trunk/tools/llvm-mc-fuzzer/llvm-mc-fuzzer.cpp
llvm/trunk/tools/llvm-mc/llvm-mc.cpp
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
llvm/trunk/tools/llvm-profdata/llvm-profdata.cpp
llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp
llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp
llvm/trunk/tools/llvm-size/llvm-size.cpp
llvm/trunk/tools/llvm-symbolizer/llvm-symbolizer.cpp
llvm/trunk/tools/sancov/sancov.cc
llvm/trunk/utils/TableGen/TableGen.cpp
polly/trunk/lib/Analysis/DependenceInfo.cpp
polly/trunk/lib/CodeGen/IslExprBuilder.cpp
polly/trunk/lib/Support/RegisterPasses.cpp
|