| /llvm-project/libcxx/benchmarks/algorithms/ |
| H A D | minmax.bench.cpp | |
| H A D | min.bench.cpp | |
| /llvm-project/clang/test/CodeGen/SystemZ/ |
| H A D | atomic_fp_load_store.c | 13 void fun0(float Arg) { in fun0() argument 16 Af = Arg; in fun0() 19 void fun1(double Arg) { in fun1() argument 22 Ad = Arg; in fun1() 25 void fun2(long double Arg) { in fun2() argument 28 Ald = Arg; in fun2() 31 void fun3(_Atomic float *Dst, float Arg) { in fun3() argument 34 *Dst = Arg; in fun3() 37 void fun4(_Atomic double *Dst, double Arg) { in fun4() argument 40 *Dst = Arg; in fun4() [all …]
|
| /llvm-project/llvm/lib/Option/ |
| H A D | ArgList.cpp | 15 #include "llvm/Option/Arg.h" 32 void ArgList::append(Arg *A) { in append() 48 for (Arg *const &A : filtered(Id)) { in eraseArg() 50 Arg **ArgsBegin = Args.data(); in eraseArg() 73 if (Arg *A = getLastArg(Pos, Neg)) in hasFlag() 80 if (Arg *A = getLastArgNoClaim(Pos, Neg)) in hasFlagNoClaim() 87 if (Arg *A = getLastArg(Pos, PosAlias, Neg)) in hasFlag() 93 if (Arg *A = getLastArg(Id)) in getLastArgValue() 106 if (Arg *A = getLastArg(Pos, Neg)) in addOptInFlag() 114 for (const Arg *Ar in AddAllArgsExcept() 142 for (auto *Arg : filtered(Id0)) { AddAllArgs() local 150 for (auto *Arg : filtered(Id0, Id1, Id2)) { AddAllArgValues() local 160 for (auto *Arg : filtered(Id0)) { AddAllArgsTranslated() local 174 for (auto *Arg : filtered(Id0)) ClaimAllArgs() local [all...] |
| H A D | Arg.cpp | 21 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const Arg *BaseArg) in Arg() function in Arg 25 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() function in Arg 26 const Arg *BaseArg) in Arg() 32 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() function in Arg 33 const char *Value1, const Arg *BaseArg) in Arg() 40 Arg::~Arg() { in ~Arg() 47 void Arg::print(raw_ostream& O) const { in print() 63 LLVM_DUMP_METHOD void Arg::dump() const { print(dbgs()); } in dump() 66 std::string Arg::getAsString(const ArgList &Args) const { in getAsString() 85 void Arg::renderAsInput(const ArgList &Args, ArgStringList &Output) const { in renderAsInput() [all …]
|
| /llvm-project/clang/tools/scan-build/libexec/ |
| H A D | ccc-analyzer | 508 my $Arg = $ARGV[$i]; 509 my @ArgParts = split /=/,$Arg,2; 518 if ($Arg =~ /^-(E|MM?)$/) { $Action = 'preprocess'; } 519 elsif ($Arg eq '-c') { $Action = 'compile'; } 520 elsif ($Arg =~ /^-print-prog-name/) { exit 0; } 523 if ($Arg eq "-arch") { 535 if ($Arg =~ /^-isysroot/) { 542 push @CompileOpts,$Arg; 547 if ($Arg =~ /^-iquote.*/) { 548 push @CompileOpts,$Arg; [all …]
|
| /llvm-project/libcxx/benchmarks/ |
| H A D | unordered_set_operations.bench.cpp | |
| H A D | join_view.bench.cpp | |
| /llvm-project/libcxx/test/std/utilities/function.objects/func.bind.partial/ |
| H A D | bind_back.verify.cpp | 62 struct Arg { in test() struct 63 Arg() = default; in test() 64 Arg(const Arg&) = default; in test() 65 Arg(Arg&) = delete; in test() 68 Arg x; in test() 69 auto f = std::bind_back([](const Arg&) {}, x); in test() argument 75 struct Arg { in test() struct 76 Arg() = default; in test() 77 Arg(const Arg&) = default; in test() 78 Arg(Arg&&) = delete; in test() [all …]
|
| /llvm-project/llvm/include/llvm/Option/ |
| H A D | Arg.h | 34 class Arg { 41 const Arg *BaseArg; 70 std::unique_ptr<Arg> Alias; 73 Arg(const Option Opt, StringRef Spelling, unsigned Index, 74 const Arg *BaseArg = nullptr); 75 Arg(const Option Opt, StringRef Spelling, unsigned Index, 76 const char *Value0, const Arg *BaseArg = nullptr); 77 Arg(const Option Opt, StringRef Spelling, unsigned Index, 78 const char *Value0, const char *Value1, const Arg *BaseArg = nullptr); 79 Arg(const Arg &) = delete; [all …]
|
| /llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXLowerArgs.cpp | 175 void handleByValParam(const NVPTXTargetMachine &TM, Argument *Arg); 370 static void adjustByValArgAlignment(Argument *Arg, Value *ArgInParamAS, in adjustByValArgAlignment() 372 Function *Func = Arg->getParent(); in adjustByValArgAlignment() 373 Type *StructType = Arg->getParamByValType(); in adjustByValArgAlignment() 379 Arg->getAttribute(Attribute::Alignment).getValueAsInt(); in adjustByValArgAlignment() 385 << CurArgAlign << " for " << *Arg << '\n'); in adjustByValArgAlignment() 389 Arg->removeAttr(Attribute::Alignment); in adjustByValArgAlignment() 390 Arg->addAttr(NewAlignAttr); in adjustByValArgAlignment() 405 bool IsGridConstant = isParamGridConstant(*Arg); in adjustByValArgAlignment() 463 // Set of phi/select instructions using the Arg in handleByValParam() 327 adjustByValArgAlignment(Argument * Arg,Value * ArgInParamAS,const NVPTXTargetLowering * TLI) adjustByValArgAlignment() argument 413 handleByValParam(const NVPTXTargetMachine & TM,Argument * Arg) handleByValParam() argument 532 if (Argument *Arg = dyn_cast<Argument>(Ptr)) { markPointerAsGlobal() local 575 if (Argument *Arg = dyn_cast<Argument>(UO)) { runOnKernelFunction() local [all...] |
| /llvm-project/clang/lib/Sema/ |
| H A D | SemaBPF.cpp | 27 static bool isValidPreserveFieldInfoArg(Expr *Arg) { in isValidPreserveFieldInfoArg() argument 28 if (Arg->getType()->getAsPlaceholderType()) in isValidPreserveFieldInfoArg() 35 return (Arg->IgnoreParens()->getObjectKind() == OK_BitField || in isValidPreserveFieldInfoArg() 36 isa<MemberExpr>(Arg->IgnoreParens()) || in isValidPreserveFieldInfoArg() 37 isa<ArraySubscriptExpr>(Arg->IgnoreParens())); in isValidPreserveFieldInfoArg() 40 static bool isValidPreserveTypeInfoArg(Expr *Arg) { in isValidPreserveTypeInfoArg() argument 41 QualType ArgType = Arg->getType(); in isValidPreserveTypeInfoArg() 50 if (!isa<DeclRefExpr>(Arg->IgnoreParens()) && in isValidPreserveTypeInfoArg() 51 !isa<UnaryOperator>(Arg->IgnoreParens())) in isValidPreserveTypeInfoArg() 71 static bool isValidPreserveEnumValueArg(Expr *Arg) { in isValidPreserveEnumValueArg() argument [all …]
|
| /llvm-project/clang/test/OpenMP/ |
| H A D | task_if_codegen.cpp | 33 int Arg; variable 44 int tmain(T Arg) { in tmain() argument 49 #pragma omp task if (Arg) in tmain() 51 #pragma omp task if (task: Arg) depend(in : Arg) in tmain() 53 #pragma omp task if (Arg) depend(out : Arg) in tmain() 55 #pragma omp task if (Arg) depend(inout : Arg) in tmain() 66 #pragma omp task if (Arg) in main() [all...] |
| /llvm-project/llvm/unittests/Remarks/ |
| H A D | YAMLRemarksParsingTest.cpp | 439 for (const remarks::Argument &Arg : Remark.Args) { in TEST() local 442 EXPECT_EQ(checkStr(Arg.Key, 6), "Callee"); in TEST() 443 EXPECT_EQ(checkStr(Arg.Val, 3), "bar"); in TEST() 444 EXPECT_FALSE(Arg.Loc); in TEST() 447 EXPECT_EQ(checkStr(Arg.Key, 6), "String"); in TEST() 448 EXPECT_EQ(checkStr(Arg.Val, 26), " will not be inlined into "); in TEST() 449 EXPECT_FALSE(Arg.Loc); in TEST() 452 EXPECT_EQ(checkStr(Arg.Key, 6), "Caller"); in TEST() 453 EXPECT_EQ(checkStr(Arg.Val, 3), "foo"); in TEST() 454 EXPECT_TRUE(Arg.Loc); in TEST() [all …]
|
| H A D | BitstreamRemarksParsingTest.cpp | 185 for (const remarks::Argument &Arg : Remark.Args) { in TEST() local 188 EXPECT_EQ(checkStr(Arg.Key, 6), "Callee"); in TEST() 189 EXPECT_EQ(checkStr(Arg.Val, 3), "bar"); in TEST() 190 EXPECT_FALSE(Arg.Loc); in TEST() 193 EXPECT_EQ(checkStr(Arg.Key, 6), "String"); in TEST() 194 EXPECT_EQ(checkStr(Arg.Val, 26), " will not be inlined into "); in TEST() 195 EXPECT_FALSE(Arg.Loc); in TEST() 198 EXPECT_EQ(checkStr(Arg.Key, 6), "Caller"); in TEST() 199 EXPECT_EQ(checkStr(Arg.Val, 3), "foo"); in TEST() 200 EXPECT_TRUE(Arg.Loc); in TEST() [all …]
|
| /llvm-project/clang/lib/Tooling/ |
| H A D | ArgumentsAdjusters.cpp | 25 for (const auto &Arg : Args) { in getDriverMode() local 26 StringRef ArgRef = Arg; in getDriverMode() 45 StringRef Arg = Args[i]; in getClangSyntaxOnlyAdjuster() local 47 if (llvm::any_of(OutputCommands, [&Arg](llvm::StringRef OutputCommand) { in getClangSyntaxOnlyAdjuster() 48 return Arg.starts_with(OutputCommand); in getClangSyntaxOnlyAdjuster() 52 if (Arg != "-c" && Arg != "-S" && in getClangSyntaxOnlyAdjuster() 53 !Arg.starts_with("-fcolor-diagnostics") && in getClangSyntaxOnlyAdjuster() 54 !Arg.starts_with("-fdiagnostics-color")) in getClangSyntaxOnlyAdjuster() 62 if (Arg in getClangSyntaxOnlyAdjuster() 75 StringRef Arg = Args[i]; getClangStripOutputAdjuster() local 95 StringRef Arg = Args[i]; getClangStripDependencyFileAdjuster() local [all...] |
| /llvm-project/llvm/tools/llvm-objcopy/ |
| H A D | ObjcopyOptions.cpp | 19 #include "llvm/Option/Arg.h" 730 for (auto *Arg : InputArgs.filtered(OBJCOPY_UNKNOWN)) in parseObjcopyOptions() 732 Arg->getAsString(InputArgs).c_str()); in parseObjcopyOptions() 734 for (auto *Arg : InputArgs.filtered(OBJCOPY_INPUT)) in parseObjcopyOptions() 735 Positional.push_back(Arg->getValue()); in parseObjcopyOptions() 804 for (const auto *Arg : InputArgs.filtered(OBJCOPY_subsystem)) { in parseObjcopyOptions() 806 std::tie(Subsystem, Version) = StringRef(Arg->getValue()).split(':'); in parseObjcopyOptions() 936 if (auto Arg = InputArgs.getLastArg(OBJCOPY_extract_partition)) in parseObjcopyOptions() 937 Config.ExtractPartition = Arg->getValue(); in parseObjcopyOptions() 968 if (const auto *Arg in parseObjcopyOptions() 630 for (auto *Arg : InputArgs.filtered(OBJCOPY_UNKNOWN)) parseObjcopyOptions() local 634 for (auto *Arg : InputArgs.filtered(OBJCOPY_INPUT)) parseObjcopyOptions() local 705 for (const auto *Arg : InputArgs.filtered(OBJCOPY_subsystem)) { parseObjcopyOptions() local 836 if (auto Arg = InputArgs.getLastArg(OBJCOPY_extract_partition)) parseObjcopyOptions() local 868 if (const auto *Arg = InputArgs.getLastArg(OBJCOPY_change_section_lma)) { parseObjcopyOptions() local 876 for (auto *Arg : InputArgs.filtered(OBJCOPY_redefine_symbol)) { parseObjcopyOptions() local 887 for (auto *Arg : InputArgs.filtered(OBJCOPY_redefine_symbols)) parseObjcopyOptions() local 892 for (auto *Arg : InputArgs.filtered(OBJCOPY_rename_section)) { parseObjcopyOptions() local 902 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_alignment)) { parseObjcopyOptions() local 909 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_flags)) { parseObjcopyOptions() local 920 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_section_type)) { parseObjcopyOptions() local 944 for (auto *Arg : InputArgs.filtered(OBJCOPY_remove_section)) parseObjcopyOptions() local 948 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_section)) parseObjcopyOptions() local 952 for (auto *Arg : InputArgs.filtered(OBJCOPY_only_section)) parseObjcopyOptions() local 956 for (auto *Arg : InputArgs.filtered(OBJCOPY_add_section)) { parseObjcopyOptions() local 961 for (auto *Arg : InputArgs.filtered(OBJCOPY_update_section)) { parseObjcopyOptions() local 966 for (auto *Arg : InputArgs.filtered(OBJCOPY_dump_section)) { parseObjcopyOptions() local 986 if (auto *Arg = parseObjcopyOptions() local 1001 for (auto *Arg : InputArgs.filtered(OBJCOPY_localize_symbol)) parseObjcopyOptions() local 1005 for (auto *Arg : InputArgs.filtered(OBJCOPY_localize_symbols)) parseObjcopyOptions() local 1010 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_global_symbol)) parseObjcopyOptions() local 1014 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_global_symbols)) parseObjcopyOptions() local 1019 for (auto *Arg : InputArgs.filtered(OBJCOPY_globalize_symbol)) parseObjcopyOptions() local 1023 for (auto *Arg : InputArgs.filtered(OBJCOPY_globalize_symbols)) parseObjcopyOptions() local 1028 for (auto *Arg : InputArgs.filtered(OBJCOPY_weaken_symbol)) parseObjcopyOptions() local 1032 for (auto *Arg : InputArgs.filtered(OBJCOPY_weaken_symbols)) parseObjcopyOptions() local 1037 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_symbol)) parseObjcopyOptions() local 1041 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_symbols)) parseObjcopyOptions() local 1046 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_unneeded_symbol)) parseObjcopyOptions() local 1051 for (auto *Arg : InputArgs.filtered(OBJCOPY_strip_unneeded_symbols)) parseObjcopyOptions() local 1056 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_symbol)) parseObjcopyOptions() local 1060 for (auto *Arg : InputArgs.filtered(OBJCOPY_keep_symbols)) parseObjcopyOptions() local 1065 for (auto *Arg : InputArgs.filtered(OBJCOPY_skip_symbol)) parseObjcopyOptions() local 1069 for (auto *Arg : InputArgs.filtered(OBJCOPY_skip_symbols)) parseObjcopyOptions() local 1074 for (auto *Arg : InputArgs.filtered(OBJCOPY_add_symbol)) { parseObjcopyOptions() local 1081 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_symbol_visibility)) { parseObjcopyOptions() local 1094 for (auto *Arg : InputArgs.filtered(OBJCOPY_set_symbols_visibility)) { parseObjcopyOptions() local 1122 for (auto *Arg : InputArgs) parseObjcopyOptions() local 1198 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_add_rpath)) parseInstallNameToolOptions() local 1201 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_prepend_rpath)) parseInstallNameToolOptions() local 1204 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_delete_rpath)) { parseInstallNameToolOptions() local 1222 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_rpath)) { parseInstallNameToolOptions() local 1264 if (auto *Arg = InputArgs.getLastArg(INSTALL_NAME_TOOL_id)) { parseInstallNameToolOptions() local 1271 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_change)) parseInstallNameToolOptions() local 1279 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_UNKNOWN)) parseInstallNameToolOptions() local 1282 for (auto *Arg : InputArgs.filtered(INSTALL_NAME_TOOL_INPUT)) parseInstallNameToolOptions() local 1336 for (auto *Arg : InputArgs.filtered(BITCODE_STRIP_UNKNOWN)) parseBitcodeStripOptions() local 1341 for (auto *Arg : InputArgs.filtered(BITCODE_STRIP_INPUT)) parseBitcodeStripOptions() local 1410 for (auto *Arg : InputArgs.filtered(STRIP_UNKNOWN)) parseStripOptions() local 1413 for (auto *Arg : InputArgs.filtered(STRIP_INPUT)) parseStripOptions() local 1442 if (auto *Arg = InputArgs.getLastArg(STRIP_discard_all, STRIP_discard_locals)) parseStripOptions() local 1448 if (auto Arg = InputArgs.getLastArg(STRIP_strip_all, STRIP_no_strip_all)) parseStripOptions() local 1456 for (auto *Arg : InputArgs.filtered(STRIP_keep_section)) parseStripOptions() local 1461 for (auto *Arg : InputArgs.filtered(STRIP_remove_section)) parseStripOptions() local 1466 for (auto *Arg : InputArgs.filtered(STRIP_strip_symbol)) parseStripOptions() local 1471 for (auto *Arg : InputArgs.filtered(STRIP_keep_symbol)) parseStripOptions() local [all...] |
| /llvm-project/libcxx/test/libcxx/type_traits/ |
| H A D | is_scalar.objc.pass.mm | 22 template <int> struct Arg { }; 26 static_assert(std::is_scalar<void (^)(Arg<0>)>::value, ""); 27 static_assert(std::is_scalar<void (^)(Arg<0>, Arg<1>)>::value, ""); 28 static_assert(std::is_scalar<void (^)(Arg<0>, Arg<1>, Arg<2>)>::value, ""); 31 static_assert(std::is_scalar<Foo (^)(Arg<0>)>::value, ""); 32 static_assert(std::is_scalar<Foo (^)(Arg<0>, Arg<1>)>::value, ""); 33 static_assert(std::is_scalar<Foo (^)(Arg<0>, Arg<1>, Arg<2>)>::value, "");
|
| /llvm-project/libcxx/test/std/utilities/expected/expected.unexpected/ctor/ |
| H A D | ctor.inplace_init_list.pass.cpp | 28 struct Arg { 30 constexpr Arg(int ii) : i(ii) {} in Arg() argument 31 constexpr Arg(const Arg& other) : i(other.i) {} in Arg() argument 32 constexpr Arg(Arg&& other) : i(other.i) { other.i = 0; } 37 Arg arg; in Error() 38 constexpr explicit Error(std::initializer_list<int> l, const Arg& a) : list(l), arg(a) {} in Error() 39 constexpr explicit Error(std::initializer_list<int> l, Arg&& a) : list(l), arg(std::move(a)) {} 43 static_assert(std::constructible_from<std::unexpected<Error>, std::in_place_t, std::initializer_list<int>, Arg>); 27 struct Arg { global() struct 29 ArgArg Arg() argument [all...] |
| /llvm-project/llvm/include/llvm/Analysis/ |
| H A D | AliasAnalysisEvaluator.h | 41 AAEvaluator(AAEvaluator &&Arg) in AAEvaluator() argument 42 : FunctionCount(Arg.FunctionCount), NoAliasCount(Arg.NoAliasCount), in AAEvaluator() 43 MayAliasCount(Arg.MayAliasCount), in AAEvaluator() 44 PartialAliasCount(Arg.PartialAliasCount), in AAEvaluator() 45 MustAliasCount(Arg.MustAliasCount), NoModRefCount(Arg.NoModRefCount), in AAEvaluator() 46 ModCount(Arg.ModCount), RefCount(Arg.RefCount), in AAEvaluator() 47 ModRefCount(Arg.ModRefCount) { in AAEvaluator() 48 Arg.FunctionCount = 0; in AAEvaluator()
|
| /llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUHSAMetadataStreamer.cpp | 26 static std::pair<Type *, Align> getArgumentTypeAlign(const Argument &Arg, in getArgumentTypeAlign() argument 28 Type *Ty = Arg.getType(); in getArgumentTypeAlign() 30 if (Arg.hasByRefAttr()) { in getArgumentTypeAlign() 31 Ty = Arg.getParamByRefType(); in getArgumentTypeAlign() 32 ArgAlign = Arg.getParamAlign(); in getArgumentTypeAlign() 263 for (auto &Arg : Func.args()) { in emitKernelArgs() 264 if (Arg.hasAttribute("amdgpu-hidden-argument")) in emitKernelArgs() local 267 emitKernelArg(Arg, Offset, Args); in emitKernelArgs() 275 void MetadataStreamerMsgPackV4::emitKernelArg(const Argument &Arg, in emitKernelArg() 278 const auto *Func = Arg in emitKernelArg() 272 emitKernelArg(const Argument & Arg,unsigned & Offset,msgpack::ArrayDocNode Args) emitKernelArg() argument 342 auto Arg = Args.getDocument()->getMapNode(); emitKernelArg() local [all...] |
| H A D | AMDGPULowerKernelArguments.cpp | 117 for (Argument &Arg : F.args()) { in lowerKernelArguments() 118 Arg.replaceAllUsesWith(&*NFArg); in lowerKernelArguments() 119 NFArg->takeName(&Arg); in lowerKernelArguments() 248 Argument *Arg = NF->getArg(Index); in lowerKernelArguments() 249 LoadInst->replaceAllUsesWith(Arg); in lowerKernelArguments() 317 for (Argument &Arg : F.args()) { 318 const bool IsByRef = Arg.hasByRefAttr(); 319 Type *ArgTy = IsByRef ? Arg.getParamByRefType() : Arg.getType(); 320 MaybeAlign ParamAlign = IsByRef ? Arg [all...] |
| /llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/ |
| H A D | sanitizer_wrappers.cpp | 47 struct Arg { struct 59 GetTypes<__VA_ARGS__>::Arg<0>::Type) __attribute__((weak)); \ 61 GetTypes<__VA_ARGS__>::Arg<0>::Type arg0) { \ 67 GetTypes<__VA_ARGS__>::Arg<0>::Type, \ 68 GetTypes<__VA_ARGS__>::Arg<1>::Type) __attribute__((weak)); \ 70 GetTypes<__VA_ARGS__>::Arg<0>::Type arg0, \ 71 GetTypes<__VA_ARGS__>::Arg<1>::Type arg1) { \ 77 GetTypes<__VA_ARGS__>::Arg<0>::Type, \ 78 GetTypes<__VA_ARGS__>::Arg<1>::Type, \ 79 GetTypes<__VA_ARGS__>::Arg<2>::Type) __attribute__((weak)); \ [all …]
|
| /llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerCommand.h | 55 bool hasArgument(const std::string &Arg) const { in hasArgument() argument 57 return std::find(Args.begin(), i, Arg) != i; in hasArgument() 66 void addArgument(const std::string &Arg) { in addArgument() argument 67 Args.insert(endMutableArgs(), Arg); in addArgument() 78 void removeArgument(const std::string &Arg) { in removeArgument() argument 80 Args.erase(std::remove(Args.begin(), i, Arg), i); in removeArgument() 85 std::string Arg("-" + Flag + "="); in hasFlag() 87 return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0; in hasFlag() 96 std::string Arg("-" + Flag + "="); in getFlagValue() 98 return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0; in getFlagValue() [all …]
|
| /llvm-project/clang-tools-extra/clangd/ |
| H A D | SystemIncludeExtractor.cpp | 112 llvm::StringRef Arg = Cmd.CommandLine[I]; in DriverArgs() local 115 if (Arg.consume_front("-x")) { in DriverArgs() 116 if (Arg.empty() && I + 1 < E) in DriverArgs() 119 Lang = Arg.str(); in DriverArgs() 122 else if (Arg == "-nostdinc" || Arg == "--no-standard-includes") in DriverArgs() 124 else if (Arg == "-nostdinc++") in DriverArgs() 127 else if (Arg.consume_front("--sysroot")) { in DriverArgs() 128 if (Arg.consume_front("=")) in DriverArgs() 129 Sysroot = Arg in DriverArgs() 450 for (llvm::StringRef Arg : Cmd.CommandLine) { setTarget() local [all...] |