From: Nico Weber Date: Sun, 11 May 2014 01:04:02 +0000 (+0000) Subject: Wrap at 80 columns. No code change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2b54ef6c98dde8d8c9cdb35951e0a44d4daa095;p=clang Wrap at 80 columns. No code change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208485 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 2ab7ea3fde..ec870aff15 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1646,7 +1646,8 @@ namespace { }; } // end anonymous namespace. -// exceptionSettings() exists to share the logic between -cc1 and linker invocations. +// exceptionSettings() exists to share the logic between -cc1 and linker +// invocations. static ExceptionSettings exceptionSettings(const ArgList &Args, const llvm::Triple &Triple) { ExceptionSettings ES; @@ -2118,7 +2119,8 @@ static const char *SplitDebugName(const ArgList &Args, return Args.MakeArgString(T); } else { // Use the compilation dir. - SmallString<128> T(Args.getLastArgValue(options::OPT_fdebug_compilation_dir)); + SmallString<128> T( + Args.getLastArgValue(options::OPT_fdebug_compilation_dir)); SmallString<128> F(llvm::sys::path::stem(Inputs[0].getBaseInput())); llvm::sys::path::replace_extension(F, "dwo"); T += F; @@ -2209,7 +2211,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, ArgStringList CmdArgs; bool IsWindowsGNU = getToolChain().getTriple().isWindowsGNUEnvironment(); - bool IsWindowsCygnus = getToolChain().getTriple().isWindowsCygwinEnvironment(); + bool IsWindowsCygnus = + getToolChain().getTriple().isWindowsCygwinEnvironment(); bool IsWindowsMSVC = getToolChain().getTriple().isWindowsMSVCEnvironment(); assert(Inputs.size() == 1 && "Unable to handle multiple inputs."); @@ -2231,7 +2234,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, unsigned Version; TT.getArchName().substr(Offset).getAsInteger(10, Version); if (Version < 7) - D.Diag(diag::err_target_unsupported_arch) << TT.getArchName() << TripleStr; + D.Diag(diag::err_target_unsupported_arch) << TT.getArchName() + << TripleStr; } // Push all default warning arguments that are specific to @@ -2346,8 +2350,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (types::isCXX(Inputs[0].getType())) CmdArgs.push_back("-analyzer-checker=cplusplus"); - // Enable the following experimental checkers for testing. - CmdArgs.push_back("-analyzer-checker=security.insecureAPI.UncheckedReturn"); + // Enable the following experimental checkers for testing. + CmdArgs.push_back( + "-analyzer-checker=security.insecureAPI.UncheckedReturn"); CmdArgs.push_back("-analyzer-checker=security.insecureAPI.getpw"); CmdArgs.push_back("-analyzer-checker=security.insecureAPI.gets"); CmdArgs.push_back("-analyzer-checker=security.insecureAPI.mktemp"); @@ -2675,7 +2680,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, options::OPT_fno_fast_math)) if (!A->getOption().matches(options::OPT_fno_fast_math)) CmdArgs.push_back("-ffast-math"); - if (Arg *A = Args.getLastArg(options::OPT_ffinite_math_only, options::OPT_fno_fast_math)) + if (Arg *A = Args.getLastArg(options::OPT_ffinite_math_only, + options::OPT_fno_fast_math)) if (A->getOption().matches(options::OPT_ffinite_math_only)) CmdArgs.push_back("-ffinite-math-only");