Go to file
Evgeny Mankov 1587086f88 [Support][CommandLine] Add cl::Option::setDefault()
Add abstract virtual method setDefault() to class Option and implement it in its inheritors in order to be able to set all the options to its default values in user's code without actually knowing all these options. For instance:

for (auto &OM : cl::getRegisteredOptions(*cl::TopLevelSubCommand)) {
  cl::Option *O = OM.second;
  O->setDefault();
}

Reviewed by: rampitec, Eugene.Zelenko, kasaurov

Differential Revision: http://reviews.llvm.org/D36877

llvm-svn: 311887
2017-08-28 13:39:43 +00:00
clang Avoid missing std error code in RefactoringActionRulesTest.cpp 2017-08-28 12:03:08 +00:00
clang-tools-extra [clang-tidy] Add missing IgnoreMacros doc for modernize-use-equals-default. 2017-08-24 13:45:18 +00:00
compiler-rt [XRay][compiler-rt] Return the pointer associated with the function instead of the sled 2017-08-28 03:58:23 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc amdgcn: rewrite barrier() using fence and clang __builtin_amdgcn_s_barrier 2017-08-16 17:09:00 +00:00
libcxx [libcxx] [test] Update for C++17 feature removals. 2017-08-24 21:24:08 +00:00
libcxxabi Revert "[libcxxabi] When built with ASan, __cxa_throw calls __asan_handle_no_return" 2017-08-16 22:05:54 +00:00
libunwind ARM: explicitly specify the 8-byte alignment 2017-08-23 16:50:27 +00:00
lld [ELF] - Simplify (use llvm::erase_if). NFC. 2017-08-28 09:28:15 +00:00
lldb Add the DWARF DWP files to the Xcode project. 2017-08-25 17:48:01 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [Support][CommandLine] Add cl::Option::setDefault() 2017-08-28 13:39:43 +00:00
openmp Use va_copy instead of __va_copy to fix building libomp against musl libc 2017-08-19 23:53:36 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [ZoneAlgo] Print rejection reasons to llvm::dbgs(). NFC. 2017-08-28 11:22:23 +00:00