[pkg-d-commits] [ldc] 105/149: driver/cl_options: clang-format [nfc]
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:37:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v1.2.0
in repository ldc.
commit fabab3f7a81ceb52926aa076b34d1ad638ae6247
Author: David Nadlinger <code at klickverbot.at>
Date: Fri Feb 10 00:10:05 2017 +0100
driver/cl_options: clang-format [nfc]
---
driver/cl_options.cpp | 116 +++++++++++++++++---------------------------------
1 file changed, 40 insertions(+), 76 deletions(-)
diff --git a/driver/cl_options.cpp b/driver/cl_options.cpp
index f905845..b607ff6 100644
--- a/driver/cl_options.cpp
+++ b/driver/cl_options.cpp
@@ -146,9 +146,9 @@ cl::opt<std::string> objectFile("of", cl::value_desc("filename"), cl::Prefix,
cl::desc("Use <filename> as output file name"),
cl::ZeroOrMore);
-cl::opt<std::string>
- objectDir("od", cl::value_desc("directory"), cl::Prefix, cl::ZeroOrMore,
- cl::desc("Write object files to <directory>"));
+cl::opt<std::string> objectDir("od", cl::value_desc("directory"), cl::Prefix,
+ cl::ZeroOrMore,
+ cl::desc("Write object files to <directory>"));
cl::opt<std::string>
soname("soname", cl::value_desc("soname"), cl::Hidden, cl::Prefix,
@@ -205,9 +205,10 @@ static cl::opt<bool, true>
doHdrGen("H", cl::desc("Generate 'header' file"), cl::ZeroOrMore,
cl::location(global.params.doHdrGeneration));
-cl::opt<std::string>
- hdrDir("Hd", cl::desc("Write 'header' file to <directory>"),
- cl::value_desc("directory"), cl::Prefix, cl::ZeroOrMore);
+cl::opt<std::string> hdrDir("Hd",
+ cl::desc("Write 'header' file to <directory>"),
+ cl::value_desc("directory"), cl::Prefix,
+ cl::ZeroOrMore);
cl::opt<std::string> hdrFile("Hf", cl::ZeroOrMore,
cl::desc("Write 'header' file to <filename>"),
@@ -276,7 +277,8 @@ cl::list<std::string> versions(
cl::list<std::string> transitions(
"transition",
- cl::desc("Help with language change identified by <idents>, use ? for list"),
+ cl::desc(
+ "Help with language change identified by <idents>, use ? for list"),
cl::value_desc("idents"), cl::CommaSeparated);
static StringsAdapter linkSwitchStore("L", global.params.linkswitches);
@@ -547,75 +549,37 @@ void createClashingOptions() {
/// to be useful for end users from the -help output.
void hideLLVMOptions() {
static const char *const hiddenOptions[] = {
- "bounds-checking-single-trap",
- "disable-debug-info-verifier",
- "disable-objc-arc-checkforcfghazards",
- "disable-spill-fusing",
- "cppfname",
- "cppfor",
- "cppgen",
- "enable-correct-eh-support",
- "enable-load-pre",
- "enable-misched",
- "enable-objc-arc-annotations",
- "enable-objc-arc-opts",
- "enable-scoped-noalias",
- "enable-tbaa",
- "exhaustive-register-search",
- "fatal-assembler-warnings",
- "internalize-public-api-file",
- "internalize-public-api-list",
- "join-liveintervals",
- "limit-float-precision",
- "mc-x86-disable-arith-relaxation",
- "mips16-constant-islands",
- "mips16-hard-float",
- "mlsm",
- "mno-ldc1-sdc1",
- "nvptx-sched4reg",
- "no-discriminators",
- "objc-arc-annotation-target-identifier",
- "pre-RA-sched",
- "print-after-all",
- "print-before-all",
- "print-machineinstrs",
- "profile-estimator-loop-weight",
- "profile-estimator-loop-weight",
- "profile-file",
- "profile-info-file",
- "profile-verifier-noassert",
- "regalloc",
- "rewrite-map-file",
- "rng-seed",
- "sample-profile-max-propagate-iterations",
- "shrink-wrap",
- "spiller",
- "stackmap-version",
- "stats",
- "strip-debug",
- "struct-path-tbaa",
- "time-passes",
- "unit-at-a-time",
- "verify-debug-info",
- "verify-dom-info",
- "verify-loop-info",
- "verify-regalloc",
- "verify-region-info",
- "verify-scev",
- "x86-early-ifcvt",
- "x86-use-vzeroupper",
- "x86-recip-refinement-steps",
-
- // We enable -fdata-sections/-ffunction-sections by default where it makes
- // sense for reducing code size, so hide them to avoid confusion.
- //
- // We need our own switch as these two are defined by LLVM and linked to
- // static TargetMachine members, but the default we want to use depends
- // on the target triple (and thus we do not know it until after the command
- // line has been parsed).
- "fdata-sections",
- "ffunction-sections"
- };
+ "bounds-checking-single-trap", "disable-debug-info-verifier",
+ "disable-objc-arc-checkforcfghazards", "disable-spill-fusing", "cppfname",
+ "cppfor", "cppgen", "enable-correct-eh-support", "enable-load-pre",
+ "enable-misched", "enable-objc-arc-annotations", "enable-objc-arc-opts",
+ "enable-scoped-noalias", "enable-tbaa", "exhaustive-register-search",
+ "fatal-assembler-warnings", "internalize-public-api-file",
+ "internalize-public-api-list", "join-liveintervals",
+ "limit-float-precision", "mc-x86-disable-arith-relaxation",
+ "mips16-constant-islands", "mips16-hard-float", "mlsm", "mno-ldc1-sdc1",
+ "nvptx-sched4reg", "no-discriminators",
+ "objc-arc-annotation-target-identifier", "pre-RA-sched",
+ "print-after-all", "print-before-all", "print-machineinstrs",
+ "profile-estimator-loop-weight", "profile-estimator-loop-weight",
+ "profile-file", "profile-info-file", "profile-verifier-noassert",
+ "regalloc", "rewrite-map-file", "rng-seed",
+ "sample-profile-max-propagate-iterations", "shrink-wrap", "spiller",
+ "stackmap-version", "stats", "strip-debug", "struct-path-tbaa",
+ "time-passes", "unit-at-a-time", "verify-debug-info", "verify-dom-info",
+ "verify-loop-info", "verify-regalloc", "verify-region-info",
+ "verify-scev", "x86-early-ifcvt", "x86-use-vzeroupper",
+ "x86-recip-refinement-steps",
+
+ // We enable -fdata-sections/-ffunction-sections by default where it makes
+ // sense for reducing code size, so hide them to avoid confusion.
+ //
+ // We need our own switch as these two are defined by LLVM and linked to
+ // static TargetMachine members, but the default we want to use depends
+ // on the target triple (and thus we do not know it until after the
+ // command
+ // line has been parsed).
+ "fdata-sections", "ffunction-sections"};
#if LDC_LLVM_VER >= 307
llvm::StringMap<cl::Option *> &map = cl::getRegisteredOptions();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list