/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
ext-blocks.cpp | 4 template<typename ...Args> 5 int f0(Args ...args) { 7 return sizeof...(Args); 9 return sizeof...(args); 13 template<typename ...Args> 14 int f1(Args ...args) { 16 return f0(args...); 23 template<typename ...Args> [all...] |
example-function.cpp | 8 template<typename R, typename... Args> class invoker_base { 11 virtual R invoke(Args...) = 0; 15 template<typename F, typename R, typename... Args> 16 class functor_invoker : public invoker_base<R, Args...> { 19 R invoke(Args... args) { return f(args...); } 26 template<typename R, typename... Args> 27 class function<R (Args...)> { 37 invoker = new functor_invoker<F, R, Args...>(f) [all...] |
/external/clang/test/SemaCXX/ |
issue547.cpp | 8 template<typename R, typename ...Args> 9 struct classify_function<R(Args...)> { 13 template<typename R, typename ...Args> 14 struct classify_function<R(Args...) const> { 18 template<typename R, typename ...Args> 19 struct classify_function<R(Args...) volatile> { 23 template<typename R, typename ...Args> 24 struct classify_function<R(Args...) const volatile> { 28 template<typename R, typename ...Args> 29 struct classify_function<R(Args......)> [all...] |
generic-selection.cpp | 30 template <unsigned Arg, unsigned... Args> struct Or { 31 enum { result = Arg | Or<Args...>::result }; 38 template <class... Args> struct TypeMask { 40 result = Or<_Generic(Args(), int: 1, long: 2, short: 4, float: 8)...>::result
|
/external/clang/test/Index/ |
annotate-tokens-cxx0x.cpp | 1 template<typename ...Args> 2 int f(Args ...args) { 3 return sizeof...(args) + sizeof...(Args); 17 // CHECK: Identifier: "args" [3:20 - 3:24] SizeOfPackExpr=args:2:15 18 // CHECK: Identifier: "Args" [3:38 - 3:42] TypeRef=Args:1:22
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
p22.cpp | 6 template<class ... Args> int& f(Args ... args); 7 template<class T1, class ... Args> float& f(T1 a1, Args ... args);
|
p8-0x.cpp | 10 template<class C, typename R, typename ...Args> 11 struct member_pointer_kind<R (C::*)(Args...)> { 15 template<class C, typename R, typename ...Args> 16 struct member_pointer_kind<R (C::*)(Args...) &> { 20 template<class C, typename R, typename ...Args> 21 struct member_pointer_kind<R (C::*)(Args...) &&> { 25 template<class C, typename R, typename ...Args> 26 struct member_pointer_kind<R (C::*)(Args...) const> { 30 template<class C, typename R, typename ...Args> 31 struct member_pointer_kind<R (C::*)(Args...) const &> [all...] |
/external/clang/test/PCH/ |
cxx-traits.h | 13 template<typename T, typename ...Args> 15 static const bool value = __is_trivially_constructible(T, Args...);
|
/external/clang/test/Parser/ |
cxx0x-in-cxx98.cpp | 5 template<typename ...Args> // expected-warning{{variadic templates are a C++11 extension}} 6 void f(Args &&...) &; // expected-warning{{rvalue references are a C++11 extension}} \
|
/external/llvm/tools/llvm-stub/ |
llvm-stub.c | 40 const char **Args; 44 Args = (const char**)malloc(sizeof(char*) * (argc+2)); 46 Args[0] = Interp; 61 Args[1] = strcat(strcpy((char*)malloc(strlen(argv[0])+4), argv[0]), ".bc"); 63 /* The rest of the args are as before. */ 64 memcpy((char **)Args+2, argv+1, sizeof(char*)*argc); 68 execvp(Interp, (char **)Args); /* POSIX execvp takes a char *const[]. */ 70 execvp(Interp, Args); /* windows execvp takes a const char *const *. */
|
/external/llvm/unittests/ADT/ |
VariadicFunctionTest.cpp | 19 std::string StringCatImpl(ArrayRef<const std::string *> Args) { 21 for (unsigned i = 0, e = Args.size(); i < e; ++i) 22 S += *Args[i]; 42 long SumImpl(ArrayRef<const int *> Args) { 44 for (unsigned i = 0, e = Args.size(); i < e; ++i) 45 Result += *Args[i]; 59 int StringAppendImpl(std::string *Dest, ArrayRef<const std::string *> Args) { 61 for (unsigned i = 0, e = Args.size(); i < e; ++i) { 62 Chars += Args[i]->size(); 63 *Dest += *Args[i] [all...] |
/external/clang/lib/Driver/ |
Tools.cpp | 44 static void CheckPreprocessingOptions(const Driver &D, const ArgList &Args) { 45 if (Arg *A = Args.getLastArg(options::OPT_C, options::OPT_CC)) 46 if (!Args.hasArg(options::OPT_E) && !D.CCCIsCPP) 48 << A->getAsString(Args) << "-E"; 53 static void CheckCodeGenerationOptions(const Driver &D, const ArgList &Args) { 55 if (Args.hasArg(options::OPT_static)) 56 if (const Arg *A = Args.getLastArg(options::OPT_dynamic, 59 << A->getAsString(Args) << "-static"; 91 static void addDirectoryList(const ArgList &Args, 110 CmdArgs.push_back(Args.MakeArgString(Dirs.substr(0, Delim))) [all...] |
Option.cpp | 115 Arg *OptionGroup::accept(const ArgList &Args, unsigned &Index) const { 123 Arg *InputOption::accept(const ArgList &Args, unsigned &Index) const { 131 Arg *UnknownOption::accept(const ArgList &Args, unsigned &Index) const { 140 Arg *FlagOption::accept(const ArgList &Args, unsigned &Index) const { 143 if (getName().size() != strlen(Args.getArgString(Index))) 154 Arg *JoinedOption::accept(const ArgList &Args, unsigned &Index) const { 156 const char *Value = Args.getArgString(Index) + getName().size(); 166 Arg *CommaJoinedOption::accept(const ArgList &Args, 169 const char *Str = Args.getArgString(Index) + getName().size(); 201 Arg *SeparateOption::accept(const ArgList &Args, unsigned &Index) const [all...] |
ToolChain.cpp | 76 static const char *getARMTargetCPU(const ArgList &Args, 84 if (Arg *A = Args.getLastArg(options::OPT_mcpu_EQ)) 85 return A->getValue(Args); 89 if (Arg *A = Args.getLastArg(options::OPT_march_EQ)) { 91 MArch = A->getValue(Args); 145 std::string ToolChain::ComputeLLVMTriple(const ArgList &Args, 160 getLLVMArchSuffixForARM(getARMTargetCPU(Args, Triple)); 166 Args.hasFlag(options::OPT_mthumb, options::OPT_mno_thumb, ThumbDefault)) 175 std::string ToolChain::ComputeEffectiveClangTriple(const ArgList &Args, 178 if (Arg *A = Args.getLastArg(options::OPT_mmacosx_version_min_EQ [all...] |
Arg.cpp | 63 std::string Arg::getAsString(const ArgList &Args) const { 68 render(Args, ASL); 79 void Arg::renderAsInput(const ArgList &Args, ArgStringList &Output) const { 81 render(Args, Output); 86 Output.push_back(getValue(Args, i)); 89 void Arg::render(const ArgList &Args, ArgStringList &Output) const { 93 Output.push_back(getValue(Args, i)); 102 OS << getValue(Args, i); 104 Output.push_back(Args.MakeArgString(OS.str())); 109 Output.push_back(Args.GetOrMakeJoinedArgString [all...] |
/external/clang/lib/AST/ |
SelectorLocationsKind.cpp | 65 SourceLocation getArgLoc(unsigned Index, ArrayRef<T*> Args) { 66 return Index < Args.size() ? getArgLoc(Args[Index]) : SourceLocation(); 72 ArrayRef<T *> Args, 74 // Are selector locations in standard position with no space between args ? 78 Args, EndLoc)) 84 // Are selector locations in standard position with space between args ? 87 Args, EndLoc)) 99 ArrayRef<Expr *> Args, 101 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc) [all...] |
/external/clang/lib/Frontend/ |
CompilerInvocation.cpp | 110 // Serialization (to args) [all...] |
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/ |
p1-0x.cpp | 29 template<typename ...Args> 30 typename get_nth_type<0, Args...>::type first_arg(Args...); 32 template<typename ...Args> 33 typename get_nth_type<1, Args...>::type second_arg(Args...); 42 template<typename ...Args> 43 typename get_nth_type<0, Args...>::type first_arg_ref(Args&...); 45 template<typename ...Args> [all...] |
/external/llvm/lib/ExecutionEngine/Interpreter/ |
ExternalFunctions.cpp | 197 std::vector<ffi_type*> args(NumArgs); 202 args[ArgNo] = ffiTypeFor(ArgTy); 221 if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, NumArgs, rtype, &args[0]) == FFI_OK) { 303 const std::vector<GenericValue> &Args) { 304 assert(Args.size() == 1); 305 TheInterpreter->addAtExitHandler((Function*)GVTOP(Args[0])); 314 const std::vector<GenericValue> &Args) { 315 TheInterpreter->exitCalled(Args[0]); 322 const std::vector<GenericValue> &Args) { 333 const std::vector<GenericValue> &Args) { [all...] |
/external/clang/tools/driver/ |
driver.cpp | 88 /// \param Args - The vector of command line arguments. 92 SmallVectorImpl<const char*> &Args, 101 Args.insert(Args.begin() + 1, Str); 106 Args.push_back(Str); 113 for (unsigned i = 1, e = Args.size(); i != e; ++i) { 114 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]); 116 if (Repl != Args[i]) { 117 OS << "### Replacing '" << Args[i] << "' with '" << Repl << "'\n"; 118 Args[i] = SaveStringInSet(SavedStrings, Repl) [all...] |
cc1as_main.cpp | 150 OwningPtr<InputArgList> Args( 156 << Args->getArgString(MissingArgIndex) << MissingArgCount; 161 for (arg_iterator it = Args->filtered_begin(cc1asoptions::OPT_UNKNOWN), 162 ie = Args->filtered_end(); it != ie; ++it) { 163 Diags.Report(diag::err_drv_unknown_argument) << (*it) ->getAsString(*Args); 170 Opts.Triple = llvm::Triple::normalize(Args->getLastArgValue(OPT_triple)); 171 Opts.CPU = Args->getLastArgValue(OPT_target_cpu); 172 Opts.Features = Args->getAllArgValues(OPT_target_feature); 179 Opts.IncludePaths = Args->getAllArgValues(OPT_I); 180 Opts.NoInitialTextSection = Args->hasArg(OPT_n) [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
Args.java | 22 class Args {
|
/external/clang/include/clang/AST/ |
SelectorLocationsKind.h | 48 ArrayRef<Expr *> Args, 60 ArrayRef<Expr *> Args, 66 ArrayRef<ParmVarDecl *> Args, 78 ArrayRef<ParmVarDecl *> Args,
|
/external/clang/test/CXX/class.derived/class.virtual/ |
p3-0x.cpp | 34 template<typename... Args> 36 virtual void f(Args...) override; // expected-error {{'f' marked 'override' but does not override any member functions}}
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/ |
p9-0x.cpp | 22 template<typename ...Args> 23 typename get_nth_type<0, Args...>::type first_arg(Args...); 25 template<typename ...Args> 26 typename get_nth_type<1, Args...>::type second_arg(Args...);
|