/external/clang/lib/Frontend/ |
D | CompilerInvocation.cpp | 81 static unsigned getOptimizationLevel(ArgList &Args, InputKind IK, in getOptimizationLevel() argument 84 if (IK == IK_OpenCL && !Args.hasArg(OPT_cl_opt_disable)) in getOptimizationLevel() 87 if (Arg *A = Args.getLastArg(options::OPT_O_Group)) { in getOptimizationLevel() 100 return getLastArgIntValue(Args, OPT_O, DefaultOpt, Diags); in getOptimizationLevel() 106 static unsigned getOptimizationLevelSize(ArgList &Args) { in getOptimizationLevelSize() argument 107 if (Arg *A = Args.getLastArg(options::OPT_O_Group)) { in getOptimizationLevelSize() 122 static void addDiagnosticArgs(ArgList &Args, OptSpecifier Group, in addDiagnosticArgs() argument 125 for (Arg *A : Args.filtered(Group)) { in addDiagnosticArgs() 141 static void getAllNoBuiltinFuncValues(ArgList &Args, in getAllNoBuiltinFuncValues() argument 144 for (const auto &Arg : Args) { in getAllNoBuiltinFuncValues() [all …]
|
/external/clang/lib/Driver/ |
D | Tools.cpp | 55 static void handleTargetFeaturesGroup(const ArgList &Args, in handleTargetFeaturesGroup() argument 58 for (const Arg *A : Args.filtered(Group)) { in handleTargetFeaturesGroup() 69 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in handleTargetFeaturesGroup() 113 static void CheckPreprocessingOptions(const Driver &D, const ArgList &Args) { in CheckPreprocessingOptions() argument 114 if (Arg *A = Args.getLastArg(options::OPT_C, options::OPT_CC)) { in CheckPreprocessingOptions() 115 if (!Args.hasArg(options::OPT_E) && !Args.hasArg(options::OPT__SLASH_P) && in CheckPreprocessingOptions() 116 !Args.hasArg(options::OPT__SLASH_EP) && !D.CCCIsCPP()) { in CheckPreprocessingOptions() 118 << A->getBaseArg().getAsString(Args) in CheckPreprocessingOptions() 126 static void CheckCodeGenerationOptions(const Driver &D, const ArgList &Args) { in CheckCodeGenerationOptions() argument 128 if (Args.hasArg(options::OPT_static)) in CheckCodeGenerationOptions() [all …]
|
D | ToolChain.cpp | 35 static llvm::opt::Arg *GetRTTIArgument(const ArgList &Args) { in GetRTTIArgument() argument 36 return Args.getLastArg(options::OPT_mkernel, options::OPT_fapple_kext, in GetRTTIArgument() 40 static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args, in CalculateRTTIMode() argument 57 Arg *Exceptions = Args.getLastArgNoClaim( in CalculateRTTIMode() 69 const ArgList &Args) in ToolChain() argument 70 : D(D), Triple(T), Args(Args), CachedRTTIArg(GetRTTIArgument(Args)), in ToolChain() 71 CachedRTTIMode(CalculateRTTIMode(Args, Triple, CachedRTTIArg)) { in ToolChain() 72 if (Arg *A = Args.getLastArg(options::OPT_mthread_model)) in ToolChain() 75 << A->getValue() << A->getAsString(Args); in ToolChain() 84 return Args.hasFlag(options::OPT_fintegrated_as, in useIntegratedAs() [all …]
|
D | SanitizerArgs.cpp | 70 const llvm::opt::ArgList &Args, 119 const llvm::opt::ArgList &Args) { in parseSanitizeTrapArgs() argument 126 for (ArgList::const_reverse_iterator I = Args.rbegin(), E = Args.rend(); in parseSanitizeTrapArgs() 185 const llvm::opt::ArgList &Args) { in SanitizerArgs() argument 201 SanitizerMask TrappingKinds = parseSanitizeTrapArgs(D, Args); in SanitizerArgs() 204 for (ArgList::const_reverse_iterator I = Args.rbegin(), E = Args.rend(); in SanitizerArgs() 248 << "-fsanitize=vptr" << NoRTTIArg->getAsString(Args); in SanitizerArgs() 285 << lastArgumentForMask(D, Args, Kinds & NeedsLTO) << "-flto"; in SanitizerArgs() 325 << lastArgumentForMask(D, Args, Group) in SanitizerArgs() 326 << lastArgumentForMask(D, Args, Incompatible); in SanitizerArgs() [all …]
|
D | Driver.cpp | 92 void Driver::ParseDriverMode(ArrayRef<const char *> Args) { in ParseDriverMode() argument 96 for (const char *ArgPtr : Args) { in ParseDriverMode() 128 InputArgList Args = in ParseArgStrings() local 135 << Args.getArgString(MissingArgIndex) << MissingArgCount; in ParseArgStrings() 138 for (const Arg *A : Args) { in ParseArgStrings() 140 Diag(clang::diag::err_drv_unsupported_opt) << A->getAsString(Args); in ParseArgStrings() 146 Diag(clang::diag::warn_drv_empty_joined_argument) << A->getAsString(Args); in ParseArgStrings() 150 for (const Arg *A : Args.filtered(options::OPT_UNKNOWN)) in ParseArgStrings() 153 << A->getAsString(Args); in ParseArgStrings() 155 return Args; in ParseArgStrings() [all …]
|
D | ToolChains.h | 106 void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args, 147 const llvm::opt::ArgList &Args, 153 const llvm::opt::ArgList &Args, 181 void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args); 216 const llvm::opt::ArgList &Args); 268 const llvm::opt::ArgList &Args); 276 StringRef getMachOArchName(const llvm::opt::ArgList &Args) const; 279 virtual void AddLinkARCArgs(const llvm::opt::ArgList &Args, in AddLinkARCArgs() argument 283 virtual void AddLinkRuntimeLibArgs(const llvm::opt::ArgList &Args, 286 virtual void addStartObjectFileArgs(const llvm::opt::ArgList &Args, in addStartObjectFileArgs() argument [all …]
|
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
D | construct_types.pass.cpp | 42 template <class ...Args> 43 void construct(Args&&... args) { in construct() 44 A.construct(ptr, std::forward<Args>(args)...); in construct() 54 template <class T, class ...Args> 55 bool doTest(UsesAllocatorType UAExpect, Args&&... args) in doTest() 59 TH.construct(std::forward<Args>(args)...); in doTest() 60 return checkConstruct<Args&&...>(*TH.ptr, UAExpect, &TH.R); in doTest() 65 template <class T, class ...Args> 66 bool doTestUsesAllocV0(Args&&... args) in doTestUsesAllocV0() 70 TH.construct(std::forward<Args>(args)...); in doTestUsesAllocV0() [all …]
|
/external/libcxx/test/support/ |
D | uses_alloc_types.hpp | 116 template <bool IsZero, size_t N, class ArgList, class ...Args> 119 template <class ArgList, class ...Args> 120 struct TakeNImp<true, 0, ArgList, Args...> { 128 template <size_t N, class ...Args> 129 struct TakeNArgs : TakeNImp<N == 0, N, ArgumentListID<>, Args...> {}; 231 template <class ...Args> 232 UsesAllocatorTestBase(std::allocator_arg_t, CtorAlloc const& a, Args&&...) in UsesAllocatorTestBase() 233 : args_id(&makeArgumentID<Args&&...>()), in UsesAllocatorTestBase() 238 template <class ...Args, class ArgsIDL = detail::TakeNArgs<sizeof...(Args) - 1, Args&&...>> 239 UsesAllocatorTestBase(AllocLastTag, Args&&... args) in UsesAllocatorTestBase() [all …]
|
/external/libbrillo/brillo/dbus/ |
D | dbus_object.h | 122 template<typename R, typename... Args> 125 const base::Callback<R(Args...)>& handler) { in AddSimpleMethodHandler() 126 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler() 132 template<typename R, typename... Args> 134 R(*handler)(Args...)) { in AddSimpleMethodHandler() argument 135 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler() 141 template<typename Instance, typename Class, typename R, typename... Args> 144 R(Class::*handler)(Args...)) { in AddSimpleMethodHandler() argument 145 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler() 150 template<typename Instance, typename Class, typename R, typename... Args> [all …]
|
D | dbus_object_internal_impl.h | 70 template<typename R, typename... Args> 77 const base::Callback<R(Args...)>& handler) : handler_(handler) {} in SimpleDBusInterfaceMethodHandler() 82 auto invoke_callback = [this, &method_response](const Args&... args) { in HandleMethod() 89 if (!DBusParamReader<false, Args...>::Invoke( in HandleMethod() 98 base::Callback<R(Args...)> handler_; 104 template<typename... Args> 105 class SimpleDBusInterfaceMethodHandler<void, Args...> 111 const base::Callback<void(Args...)>& handler) : handler_(handler) {} in SimpleDBusInterfaceMethodHandler() 116 auto invoke_callback = [this, &method_response](const Args&... args) { in HandleMethod() 126 if (!DBusParamReader<true, Args...>::Invoke( in HandleMethod() [all …]
|
/external/clang/test/SemaCXX/ |
D | issue547.cpp | 9 template<typename R, typename ...Args> 10 struct classify_function<R(Args...)> { 14 template<typename R, typename ...Args> 15 struct classify_function<R(Args...) const> { 19 template<typename R, typename ...Args> 20 struct classify_function<R(Args...) volatile> { 24 template<typename R, typename ...Args> 25 struct classify_function<R(Args...) const volatile> { 29 template<typename R, typename ...Args> 30 struct classify_function<R(Args..., ...)> { [all …]
|
/external/llvm/lib/Option/ |
D | Option.cpp | 104 Arg *Option::accept(const ArgList &Args, in accept() argument 111 Spelling = StringRef(Args.getArgString(Index), ArgSize); in accept() 113 Spelling = Args.MakeArgString(Twine(UnaliasedOption.getPrefix()) + in accept() 119 if (ArgSize != strlen(Args.getArgString(Index))) in accept() 140 const char *Value = Args.getArgString(Index) + ArgSize; in accept() 145 const char *Str = Args.getArgString(Index) + ArgSize; in accept() 174 if (ArgSize != strlen(Args.getArgString(Index))) in accept() 178 if (Index > Args.getNumInputArgStrings() || in accept() 179 Args.getArgString(Index - 1) == nullptr) in accept() 183 Index - 2, Args.getArgString(Index - 1)); in accept() [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 300 ArrayRef<GenericValue> Args) { in lle_X_atexit() argument 301 assert(Args.size() == 1); in lle_X_atexit() 302 TheInterpreter->addAtExitHandler((Function*)GVTOP(Args[0])); in lle_X_atexit() 309 static GenericValue lle_X_exit(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_exit() argument 310 TheInterpreter->exitCalled(Args[0]); in lle_X_exit() 315 static GenericValue lle_X_abort(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_abort() argument 325 ArrayRef<GenericValue> Args) { in lle_X_sprintf() argument 326 char *OutputBuffer = (char *)GVTOP(Args[0]); in lle_X_sprintf() 327 const char *FmtStr = (const char *)GVTOP(Args[1]); in lle_X_sprintf() 364 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() [all …]
|
/external/clang/tools/scan-build/bin/ |
D | scan-build | 249 my $Args = shift; 252 die "No build command." if (scalar(@$Args) == 0); 254 my $Cmd = $$Args[0]; 924 my $Args = shift; 928 foreach my $k (@$Args) { 936 push @$Args, $Arg; 970 my $Args = shift; 977 AddIfNotPresent($Args,"-PBXBuildsContinueAfterErrors=YES"); 983 open(DETECT_XCODE, "-|", $Args->[0], "-version") or 1011 push @$Args, [all …]
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | ext-blocks.cpp | 4 template<typename ...Args> 5 int f0(Args ...args) { in f0() 7 return sizeof...(Args); in f0() 13 template<typename ...Args> 14 int f1(Args ...args) { in f1() 23 template<typename ...Args> 24 int f2(Args ...args) { in f2() 25 return ^(Args ...block_args) { in f2() 32 template<typename ...Args> 33 int f3(Args ...args) { in f3() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 308 const std::vector<GenericValue> &Args) { in lle_X_atexit() argument 309 assert(Args.size() == 1); in lle_X_atexit() 310 TheInterpreter->addAtExitHandler((Function*)GVTOP(Args[0])); in lle_X_atexit() 318 const std::vector<GenericValue> &Args) { in lle_X_exit() argument 319 TheInterpreter->exitCalled(Args[0]); in lle_X_exit() 325 const std::vector<GenericValue> &Args) { in lle_X_abort() argument 335 const std::vector<GenericValue> &Args) { in lle_X_sprintf() argument 336 char *OutputBuffer = (char *)GVTOP(Args[0]); in lle_X_sprintf() 337 const char *FmtStr = (const char *)GVTOP(Args[1]); in lle_X_sprintf() 374 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() [all …]
|
/external/parameter-framework/upstream/test/functional-tests/include/ |
D | FailureWrapper.hpp | 59 template <class... Args> 60 FailureWrapper(Args &&... args) : Base(std::forward<Args>(args)...) in FailureWrapper() 69 template <class K, class... MArgs, class... Args> 70 void mayFailCall(bool (K::*method)(MArgs...) const, Args &&... args) const in mayFailCall() 72 wrapCall<bool>(*this, method, std::forward<Args>(args)...); in mayFailCall() 80 template <class K, class... MArgs, class... Args> 81 void mayFailCall(bool (K::*method)(MArgs...), Args &&... args) in mayFailCall() 83 wrapCall<bool>(*this, method, std::forward<Args>(args)...); in mayFailCall() 91 template <class K, class ReturnType, class... MArgs, class... Args> 92 ReturnType *mayFailCall(ReturnType *(K::*method)(MArgs...), Args &&... args) in mayFailCall() [all …]
|
/external/clang/unittests/AST/ |
D | StmtPrinterTest.cpp | 70 PrintedStmtMatches(StringRef Code, const std::vector<std::string> &Args, in PrintedStmtMatches() argument 79 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args)) in PrintedStmtMatches() 103 std::vector<std::string> Args; in PrintedStmtCXX98Matches() local 104 Args.push_back("-std=c++98"); in PrintedStmtCXX98Matches() 105 Args.push_back("-Wno-unused-value"); in PrintedStmtCXX98Matches() 106 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted); in PrintedStmtCXX98Matches() 113 std::vector<std::string> Args; in PrintedStmtCXX98Matches() local 114 Args.push_back("-std=c++98"); in PrintedStmtCXX98Matches() 115 Args.push_back("-Wno-unused-value"); in PrintedStmtCXX98Matches() 117 Args, in PrintedStmtCXX98Matches() [all …]
|
/external/clang/unittests/Tooling/ |
D | ToolingTest.cpp | 159 std::vector<std::string> Args; in TEST() local 160 Args.push_back("tool-executable"); in TEST() 161 Args.push_back("-Idef"); in TEST() 162 Args.push_back("-fsyntax-only"); in TEST() 163 Args.push_back("test.cpp"); in TEST() 164 clang::tooling::ToolInvocation Invocation(Args, new SyntaxOnlyAction, in TEST() 185 std::vector<std::string> Args; in TEST() local 186 Args.push_back("tool-executable"); in TEST() 187 Args.push_back("-Idef"); in TEST() 188 Args.push_back("-fsyntax-only"); in TEST() [all …]
|
/external/libchrome/base/ |
D | bind.h | 28 template <typename Functor, typename... Args> 29 inline OnceCallback<MakeUnboundRunType<Functor, Args...>> 30 BindOnce(Functor&& functor, Args&&... args) { in BindOnce() 31 using BindState = internal::MakeBindStateType<Functor, Args...>; in BindOnce() 32 using UnboundRunType = MakeUnboundRunType<Functor, Args...>; in BindOnce() 46 std::forward<Args>(args)...)); in BindOnce() 50 template <typename Functor, typename... Args> 51 inline RepeatingCallback<MakeUnboundRunType<Functor, Args...>> 52 BindRepeating(Functor&& functor, Args&&... args) { in BindRepeating() 53 using BindState = internal::MakeBindStateType<Functor, Args...>; in BindRepeating() [all …]
|
/external/clang/tools/driver/ |
D | cc1as_main.cpp | 168 InputArgList Args = OptTbl->ParseArgs(Argv, MissingArgIndex, MissingArgCount, in CreateFromArgs() local 174 << Args.getArgString(MissingArgIndex) << MissingArgCount; in CreateFromArgs() 179 for (const Arg *A : Args.filtered(OPT_UNKNOWN)) { in CreateFromArgs() 180 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(Args); in CreateFromArgs() 187 Opts.Triple = llvm::Triple::normalize(Args.getLastArgValue(OPT_triple)); in CreateFromArgs() 188 Opts.CPU = Args.getLastArgValue(OPT_target_cpu); in CreateFromArgs() 189 Opts.Features = Args.getAllArgValues(OPT_target_feature); in CreateFromArgs() 196 Opts.IncludePaths = Args.getAllArgValues(OPT_I); in CreateFromArgs() 197 Opts.NoInitialTextSection = Args.hasArg(OPT_n); in CreateFromArgs() 198 Opts.SaveTemporaryLabels = Args.hasArg(OPT_msave_temp_labels); in CreateFromArgs() [all …]
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | serialization_forward.h | 42 typename... Args, 45 size_t PrepareToSerialize(InputUserType&& input, Args&&... args) { in PrepareToSerialize() 49 std::forward<Args>(args)...); in PrepareToSerialize() 54 typename... Args, 57 void Serialize(InputUserType&& input, Args&&... args) { in Serialize() 60 std::forward<Args>(args)...); in Serialize() 66 typename... Args, 69 bool Deserialize(DataType&& input, InputUserType* output, Args&&... args) { in Deserialize() 71 std::forward<DataType>(input), output, std::forward<Args>(args)...); in Deserialize() 77 typename... Args, [all …]
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
D | p8-0x.cpp | 11 template<class C, typename R, typename ...Args> 12 struct member_pointer_kind<R (C::*)(Args...)> { 16 template<class C, typename R, typename ...Args> 17 struct member_pointer_kind<R (C::*)(Args...) &> { 21 template<class C, typename R, typename ...Args> 22 struct member_pointer_kind<R (C::*)(Args...) &&> { 26 template<class C, typename R, typename ...Args> 27 struct member_pointer_kind<R (C::*)(Args...) const> { 31 template<class C, typename R, typename ...Args> 32 struct member_pointer_kind<R (C::*)(Args...) const &> { [all …]
|
/external/llvm/unittests/ADT/ |
D | VariadicFunctionTest.cpp | 19 std::string StringCatImpl(ArrayRef<const std::string *> Args) { in StringCatImpl() argument 21 for (unsigned i = 0, e = Args.size(); i < e; ++i) in StringCatImpl() 22 S += *Args[i]; in StringCatImpl() 42 long SumImpl(ArrayRef<const int *> Args) { in SumImpl() argument 44 for (unsigned i = 0, e = Args.size(); i < e; ++i) in SumImpl() 45 Result += *Args[i]; in SumImpl() 59 int StringAppendImpl(std::string *Dest, ArrayRef<const std::string *> Args) { in StringAppendImpl() argument 61 for (unsigned i = 0, e = Args.size(); i < e; ++i) { in StringAppendImpl() 62 Chars += Args[i]->size(); in StringAppendImpl() 63 *Dest += *Args[i]; in StringAppendImpl() [all …]
|
/external/clang/lib/Tooling/ |
D | ArgumentsAdjusters.cpp | 22 return [](const CommandLineArguments &Args, StringRef /*unused*/) { in getClangSyntaxOnlyAdjuster() argument 24 for (size_t i = 0, e = Args.size(); i != e; ++i) { in getClangSyntaxOnlyAdjuster() 25 StringRef Arg = Args[i]; in getClangSyntaxOnlyAdjuster() 29 AdjustedArgs.push_back(Args[i]); in getClangSyntaxOnlyAdjuster() 37 return [](const CommandLineArguments &Args, StringRef /*unused*/) { in getClangStripOutputAdjuster() argument 39 for (size_t i = 0, e = Args.size(); i < e; ++i) { in getClangStripOutputAdjuster() 40 StringRef Arg = Args[i]; in getClangStripOutputAdjuster() 42 AdjustedArgs.push_back(Args[i]); in getClangStripOutputAdjuster() 56 return [Extra, Pos](const CommandLineArguments &Args, StringRef /*unused*/) { in getInsertArgumentAdjuster() argument 57 CommandLineArguments Return(Args); in getInsertArgumentAdjuster() [all …]
|