/dports/devel/llvm70/llvm-7.0.1.src/tools/clang/tools/extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 33 auto LoopVar = varDecl( 56 if (!isa<AutoType>(LoopVar.getType())) 58 } else if (!LoopVar.getType().isConstQualified()) { 66 diag(LoopVar.getLocation(), 69 << utils::fixit::changeVarDeclToReference(LoopVar, Context); 70 if (!LoopVar.getType().isConstQualified()) 71 Diagnostic << utils::fixit::changeVarDeclToConst(LoopVar); 76 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, 83 .isMutated(&LoopVar)) 85 diag(LoopVar.getLocation(), [all …]
|
/dports/devel/llvm90/llvm-9.0.1.src/tools/clang/tools/extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 39 auto LoopVar = varDecl( in registerMatchers() local 62 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 66 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 68 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 76 diag(LoopVar.getLocation(), in handleConstValueCopy() 79 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 80 if (!LoopVar.getType().isConstQualified()) in handleConstValueCopy() 81 Diagnostic << utils::fixit::changeVarDeclToConst(LoopVar); in handleConstValueCopy() 86 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 104 diag(LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/llvm80/llvm-8.0.1.src/tools/clang/tools/extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 40 auto LoopVar = varDecl( in registerMatchers() local 63 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 67 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 69 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 77 diag(LoopVar.getLocation(), in handleConstValueCopy() 80 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 81 if (!LoopVar.getType().isConstQualified()) in handleConstValueCopy() 82 Diagnostic << utils::fixit::changeVarDeclToConst(LoopVar); in handleConstValueCopy() 87 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 105 diag(LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 40 auto LoopVar = varDecl( in registerMatchers() local 63 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 67 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 69 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 77 diag(LoopVar.getLocation(), in handleConstValueCopy() 80 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 81 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 83 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 90 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 109 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/tools/extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 40 auto LoopVar = varDecl( in registerMatchers() local 63 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 67 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 69 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 77 diag(LoopVar.getLocation(), in handleConstValueCopy() 80 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 81 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 83 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 90 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 109 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 48 auto LoopVar = in registerMatchers() local 71 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 75 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 77 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 85 diag(LoopVar.getLocation(), in handleConstValueCopy() 88 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 89 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 91 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 98 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 117 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/llvm12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 48 auto LoopVar = in registerMatchers() local 71 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 75 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 77 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 85 diag(LoopVar.getLocation(), in handleConstValueCopy() 88 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 89 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 91 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 98 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 117 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/tools/extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 48 auto LoopVar = in registerMatchers() local 71 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 75 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 77 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 85 diag(LoopVar.getLocation(), in handleConstValueCopy() 88 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 89 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 91 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 98 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 117 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 48 auto LoopVar = in registerMatchers() local 71 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 75 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 77 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 85 diag(LoopVar.getLocation(), in handleConstValueCopy() 88 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 89 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 91 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 98 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 117 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 48 auto LoopVar = in registerMatchers() local 71 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 75 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 77 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 85 diag(LoopVar.getLocation(), in handleConstValueCopy() 88 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 89 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 91 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 98 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 117 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 51 auto LoopVar = in registerMatchers() local 75 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 79 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 81 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 89 diag(LoopVar.getLocation(), in handleConstValueCopy() 92 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 93 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 95 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 102 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 121 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 51 auto LoopVar = in registerMatchers() local 75 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 79 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 81 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 89 diag(LoopVar.getLocation(), in handleConstValueCopy() 92 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 93 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 95 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 102 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 121 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 51 auto LoopVar = in registerMatchers() local 75 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 79 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 81 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 89 diag(LoopVar.getLocation(), in handleConstValueCopy() 92 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 93 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 95 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 102 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 121 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 51 auto LoopVar = in registerMatchers() local 75 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 79 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 81 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 89 diag(LoopVar.getLocation(), in handleConstValueCopy() 92 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 93 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 95 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 102 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 121 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/devel/llvm13/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/performance/ |
H A D | ForRangeCopyCheck.cpp | 51 auto LoopVar = in registerMatchers() local 75 bool ForRangeCopyCheck::handleConstValueCopy(const VarDecl &LoopVar, in handleConstValueCopy() argument 79 if (!isa<AutoType>(LoopVar.getType())) in handleConstValueCopy() 81 } else if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 89 diag(LoopVar.getLocation(), in handleConstValueCopy() 92 << utils::fixit::changeVarDeclToReference(LoopVar, Context); in handleConstValueCopy() 93 if (!LoopVar.getType().isConstQualified()) { in handleConstValueCopy() 95 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy() 102 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument 121 LoopVar.getLocation(), in handleCopyIsOnlyConstReferenced() [all …]
|
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 32 UINTN LoopVar; in ShellCommandRunShift() local 50 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 51 if (LoopVar == 0) { in ShellCommandRunShift() 52 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 54 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 55 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 57 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/emulators/qemu60/qemu-6.0.0/roms/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/emulators/qemu/qemu-6.2.0/roms/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/emulators/qemu-utils/qemu-4.2.1/roms/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/emulators/qemu42/qemu-4.2.1/roms/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/emulators/qemu5/qemu-5.2.0/roms/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/sysutils/uefi-edk2-bhyve/edk2-edk2-stable202102/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/sysutils/uefi-edk2-qemu/edk2-edk2-stable201911/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|
/dports/sysutils/edk2/edk2-edk2-stable202102/ShellPkg/Library/UefiShellLevel1CommandsLib/ |
H A D | Shift.c | 27 UINTN LoopVar; in ShellCommandRunShift() local 45 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift() 46 if (LoopVar == 0) { in ShellCommandRunShift() 47 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift() 49 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift() 50 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift() 52 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
|