Home
last modified time | relevance | path

Searched refs:Args (Results 1 – 25 of 778) sorted by relevance

12345678910>>...32

/external/clang/lib/Frontend/
DCompilerInvocation.cpp81 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/
DTools.cpp55 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 …]
DToolChain.cpp35 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 …]
DSanitizerArgs.cpp70 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 …]
DDriver.cpp92 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 …]
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
Dconstruct_types.pass.cpp42 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/
Duses_alloc_types.hpp115 template <bool IsZero, size_t N, class ArgList, class ...Args>
118 template <class ArgList, class ...Args>
119 struct TakeNImp<true, 0, ArgList, Args...> {
127 template <size_t N, class ...Args>
128 struct TakeNArgs : TakeNImp<N == 0, N, ArgumentListID<>, Args...> {};
230 template <class ...Args>
231 UsesAllocatorTestBase(std::allocator_arg_t, CtorAlloc const& a, Args&&...) in UsesAllocatorTestBase()
232 : args_id(&makeArgumentID<Args&&...>()), in UsesAllocatorTestBase()
237 template <class ...Args, class ArgsIDL = detail::TakeNArgs<sizeof...(Args) - 1, Args&&...>>
238 UsesAllocatorTestBase(AllocLastTag, Args&&... args) in UsesAllocatorTestBase()
[all …]
/external/clang/test/SemaCXX/
Dissue547.cpp9 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/libbrillo/brillo/dbus/
Ddbus_object.h122 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 …]
Ddbus_object_internal_impl.h70 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/CXX/temp/temp.decls/temp.variadic/
Dext-blocks.cpp4 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/llvm/lib/Option/
DOption.cpp104 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/
DExternalFunctions.cpp300 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/parameter-framework/upstream/test/functional-tests/include/
DFailureWrapper.hpp59 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/tools/scan-build/bin/
Dscan-build249 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/unittests/AST/
DStmtPrinterTest.cpp70 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/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp308 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/clang/unittests/Tooling/
DToolingTest.cpp159 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/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/
Dp8-0x.cpp11 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/clang/tools/driver/
Dcc1as_main.cpp168 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/
Dserialization_forward.h41 typename... Args,
44 size_t PrepareToSerialize(InputUserType&& input, Args&&... args) { in PrepareToSerialize()
48 std::forward<Args>(args)...); in PrepareToSerialize()
53 typename... Args,
56 void Serialize(InputUserType&& input, Args&&... args) { in Serialize()
59 std::forward<Args>(args)...); in Serialize()
65 typename... Args,
68 bool Deserialize(DataType&& input, InputUserType* output, Args&&... args) { in Deserialize()
70 std::forward<DataType>(input), output, std::forward<Args>(args)...); in Deserialize()
76 typename... Args,
[all …]
/external/llvm/unittests/ADT/
DVariadicFunctionTest.cpp19 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/libchrome/base/mac/
Dbind_objc_block.h36 template<typename R, typename... Args>
37 R RunBlock(base::mac::ScopedBlock<R(^)(Args...)> block, Args... args) { in RunBlock()
38 R(^extracted_block)(Args...) = block.get(); in RunBlock()
46 template<typename R, typename... Args>
47 base::Callback<R(Args...)> BindBlock(R(^block)(Args...)) {
49 &base::internal::RunBlock<R, Args...>,
50 base::mac::ScopedBlock<R (^)(Args...)>(
51 base::mac::internal::ScopedBlockTraits<R (^)(Args...)>::Retain(
/external/clang/lib/Tooling/
DArgumentsAdjusters.cpp22 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 …]
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
Dp23.cpp46 template<class... Args>
47 void std_example(Args... args) { in std_example()
53 template<typename ...Args>
54 void variadic_lambda(Args... args) { in variadic_lambda()
55 auto lambda = [](Args... inner_args) { return g(inner_args...); }; in variadic_lambda()
61 template<typename ...Args>
62 void init_capture_pack_err(Args ...args) { in init_capture_pack_err()
67 template<typename ...Args>
68 void init_capture_pack_multi(Args ...args) { in init_capture_pack_multi()
75 template<typename ...Args>
[all …]

12345678910>>...32