Home
last modified time | relevance | path

Searched full:replacement (Results 1 – 25 of 1208) sorted by relevance

12345678910>>...49

/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DReplacement.h1 //===- Replacement.h - Framework for clang refactoring tools ----*- C++ -*-===//
79 /// A text replacement.
81 /// Represents a SourceManager independent replacement of a range of text in a
83 class Replacement {
85 /// Creates an invalid (not applicable) replacement.
86 Replacement();
88 /// Creates a replacement of the range [Offset, Offset+Length) in
94 Replacement(StringRef FilePath, unsigned Offset, unsigned Length,
97 /// Creates a Replacement of the range [Start, Start+Length) with
99 Replacement(const SourceManager &Sources, SourceLocation Start,
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp45 // Clear the matchers so that each Replacement is only emitted once. in HandleTranslationUnit()
51 for (const auto &Replacement : Callback->getReplacements()) { in HandleTranslationUnit() local
53 Refactoring.FileToReplaces[std::string(Replacement.getFilePath())] in HandleTranslationUnit()
54 .add(Replacement); in HandleTranslationUnit()
56 llvm::errs() << "Skipping replacement " << Replacement.toString() in HandleTranslationUnit()
72 static Replacement replaceStmtWithText(SourceManager &Sources, const Stmt &From, in replaceStmtWithText()
74 return tooling::Replacement( in replaceStmtWithText()
77 static Replacement replaceStmtWithStmt(SourceManager &Sources, const Stmt &From, in replaceStmtWithStmt()
91 auto Err = Replace.add(tooling::Replacement( in run()
171 "Unterminated ${...} in replacement template near " + in create()
[all …]
/freebsd/contrib/file/
H A DREADME.md72 * `src/asctime_r.c` - replacement for OS's that don't have it.
73 * `src/asprintf.c` - replacement for OS's that don't have it.
78 * `src/ctime_r.c` - replacement for OS's that don't have it.
80 * `src/dprintf.c` - replacement for OS's that don't have it.
86 * `src/fmtcheck.c` - replacement for OS's that don't have it.
89 * `src/getline.c` - replacement for OS's that don't have it.
90 * `src/getopt_long.c` - replacement for OS's that don't have it.
91 * `src/gmtime_r.c` - replacement for OS's that don't have it.
96 * `src/localtime_r.c` - replacement for OS's that don't have it.
98 * `src/mygetopt.h` - replacement for OS's that don't have it.
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/
H A DReplacementsYaml.h22 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument
27 /// Specialized MappingTraits to describe how a Replacement is in LLVM_YAML_IS_SEQUENCE_VECTOR()
29 template <> struct MappingTraits<clang::tooling::Replacement> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
30 /// Helper to (de)serialize a Replacement since we don't have direct in LLVM_YAML_IS_SEQUENCE_VECTOR()
35 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) in LLVM_YAML_IS_SEQUENCE_VECTOR()
39 clang::tooling::Replacement denormalize(const IO &) { in LLVM_YAML_IS_SEQUENCE_VECTOR()
40 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR()
50 static void mapping(IO &Io, clang::tooling::Replacement &R) { in LLVM_YAML_IS_SEQUENCE_VECTOR()
51 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> in LLVM_YAML_IS_SEQUENCE_VECTOR()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DComputeReplacements.cpp8 #include "clang/Tooling/Core/Replacement.h"
99 // Text inserted by the replacement we are building now. in computeReplacements()
100 std::string Replacement; in computeReplacements() local
102 if (ReplacedRange.empty() && Replacement.empty()) in computeReplacements()
104 llvm::cantFail(Replacements.add(tooling::Replacement( in computeReplacements()
106 Replacement))); in computeReplacements()
107 Replacement = ""; in computeReplacements()
113 Replacement += in computeReplacements()
120 // There is a gap, record a replacement or deletion. in computeReplacements()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h38 // Inserts an include in the file. The `Replacement` field is the name of the
44 /// the source to be replaced and a corresponding replacement string.
48 std::string Replacement; member
73 // node, a replacement and, optionally, an explanation for the edit.
77 // replacement applied by the replacement term. By default, the extent is the
81 // * Replacement: a function that produces a replacement string for the target,
110 TextGenerator Replacement; member
181 /// Replaces a portion of the source text with \p Replacement.
182 ASTEdit changeTo(RangeSelector Target, TextGenerator Replacement);
184 inline ASTEdit change(RangeSelector Target, TextGenerator Replacement) { in change() argument
[all …]
/freebsd/bin/pax/
H A Dpat_rep.c56 static REPLACE *rephead = NULL; /* replacement string list head */
57 static REPLACE *reptail = NULL; /* replacement string list tail */
68 * parses the -s replacement string; compiles the regular expression
69 * and stores the compiled value and it's replacement string together in
70 * replacement string list. Input to this function is of the form:
73 * replacement string. "Old" is a regular expression in "ed" format which
76 * replacement (over the single filename)
78 * 0 if a proper replacement string and regular expression was added to
79 * the list of replacement patterns; -1 otherwise.
95 paxwarn(1, "Empty replacement string"); in rep_add()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp45 std::vector<clang::tooling::Replacement> Replaces;
118 for (const clang::tooling::Replacement &R : Replaces) { in getRangesForFormating()
125 // If we are inserting at the start of a line and the replacement ends in in getRangesForFormating()
157 // Offset UINT_MAX and length 0 indicate that the replacement is a header in createReplacementsForHeaders()
160 tooling::Replacement(FilePath, UINT_MAX, 0, ReplacementText)); in createReplacementsForHeaders()
165 // Offset UINT_MAX and length 1 indicate that the replacement is a header in createReplacementsForHeaders()
168 HeaderReplacements.add(Replacement(FilePath, UINT_MAX, 1, Header)); in createReplacementsForHeaders()
188 if (auto Err = Replaces.add(Replacement( in combineReplacementsInChanges()
252 "Failed to add replacement when Converting YAML to AtomicChange."); in convertFromYAML()
261 return Replaces.add(Replacement(SM, Range, ReplacementText)); in replace()
[all …]
/freebsd/usr.bin/sed/
H A Dsed.1469 .It [2addr]s/regular expression/replacement/flags
470 Substitute the replacement string for the first instance of the regular
473 a slash to delimit the RE and the replacement.
474 Within the RE and the replacement, the RE delimiter itself can be used as
479 appearing in the replacement is replaced by the string matching the RE.
492 To specify a newline character in the replacement string, precede it with
507 Write the pattern space to standard output if a replacement was made.
508 If the replacement string is identical to that which it replaces, it
509 is still considered to have been a replacement.
513 if a replacement was made.
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DFormatVariadic.cpp62 // If the replacement sequence does not start with a non-negative integer, in parseReplacementItem()
71 assert(false && "Invalid replacement sequence index!"); in parseReplacementItem()
77 assert(false && "Invalid replacement field layout specification!"); in parseReplacementItem()
86 assert(false && "Unexpected characters found in replacement string!"); in parseReplacementItem()
111 // as a literal replacement, but we assert to indicate that this is in splitLiteralAndReplacement()
136 // If there was an error parsing the replacement item, treat it as an in splitLiteralAndReplacement()
137 // invalid replacement spec, and just continue. in splitLiteralAndReplacement()
/freebsd/contrib/bearssl/src/ssl/
H A Dssl_lru.c179 * For node x, find its replacement upon removal.
182 * -- Otherwise, if node x has a left child, then the replacement is the
184 * -- Otherwise, the replacement is the leftmost right-descendent.
190 * Note that the replacement node, when found, is always a descendent
267 * The replacement node itself must be removed from its current in remove_node()
268 * place. By definition, that replacement node has either no in remove_node()
280 * Find replacement node 'y', and 'aly' is set to the address of in remove_node()
281 * the link to that replacement node. If the removed node has no in remove_node()
290 * The unlinked replacement node may have one child (but in remove_node()
300 * Link the replacement node in its new place, overwriting in remove_node()
[all …]
/freebsd/contrib/ntp/sntp/m4/
H A Dsnprintf.m47 # libopts to avoid their own replacement of snprintf.
143 AC_MSG_CHECKING([if C99-snprintf replacement vsnprintf will be used])
153 [Define to rpl_vsnprintf if the replacement function should be used.])])
199 AC_MSG_CHECKING([if C99-snprintf replacement snprintf will be used])
209 [Define to rpl_snprintf if the replacement function should be used.])])
228 AC_MSG_CHECKING([if C99-snprintf replacement vasprintf will be used])
238 [Define to rpl_vasprintf if the replacement function should be used.])])
261 AC_MSG_CHECKING([if C99-snprintf replacement asprintf will be used])
271 [Define to rpl_asprintf if the replacement function should be used.])])
/freebsd/crypto/openssl/util/
H A Dlang-compress.pl51 ( # Grouping for the replacement
72 ( # Grouping for the replacement
87 ( # Grouping for the replacement
156 ( # Grouping for the replacement
177 ( # Grouping for the replacement
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DPathMappingList.h39 void Append(llvm::StringRef path, llvm::StringRef replacement, bool notify);
43 /// Append <path, replacement> pair without duplication.
45 bool AppendUnique(llvm::StringRef path, llvm::StringRef replacement,
68 void Insert(llvm::StringRef path, llvm::StringRef replacement,
75 bool Replace(llvm::StringRef path, llvm::StringRef replacement, bool notify);
77 bool Replace(llvm::StringRef path, llvm::StringRef replacement,
/freebsd/secure/lib/libcrypto/man/man7/
H A Dmigration_guide.7484 The new \s-1\fBEVP_RAND\s0\fR\|(3) is a partial replacement: the \s-1DRBG\s0 callback framework is
782 All functions listed below with a \fI\s-1NAME\s0\fR have a replacement function \fINAME_ex\fR
990 Providers are a replacement for engines and low-level method overrides
991 .IX Subsection "Providers are a replacement for engines and low-level method overrides"
1154 There is no replacement for the \s-1IGE\s0 functions. New code should not use these modes.
1173 There is no replacement. It returned a string indicating if the \s-1AES\s0 code was unrolled.
1194 There is no replacement. This option returned a constant string.
1294 The \fB\s-1DH_FLAG_CACHE_MONT_P\s0\fR flag has been deprecated without replacement.
1297 There is no replacement for setting these flags.
1330 See \*(L"Providers are a replacement for engines and low-level method overrides\*(R"
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRewriteRule.cpp55 if (E.Replacement) { in translateEdits()
56 auto Replacement = E.Replacement->eval(Result); in translateEdits() local
57 if (!Replacement) in translateEdits()
58 return Replacement.takeError(); in translateEdits()
59 T.Replacement = std::move(*Replacement); in translateEdits()
101 // Implicitly, leave `E.Replacement` as the empty string. in noopEdit()
126 ASTEdit transformer::changeTo(RangeSelector Target, TextGenerator Replacement) { in changeTo() argument
129 E.Replacement = std::move(Replacement); in changeTo()
181 E.Replacement = makeText(formatHeaderPath(Header, Format)); in addInclude()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DPathMappingList.cpp62 void PathMappingList::Append(llvm::StringRef path, llvm::StringRef replacement, in Append() argument
66 m_pairs.emplace_back(pair(NormalizePath(path), NormalizePath(replacement))); in Append()
84 llvm::StringRef replacement, bool notify) { in AppendUnique() argument
86 auto normalized_replacement = NormalizePath(replacement); in AppendUnique()
93 Append(path, replacement, notify); in AppendUnique()
97 void PathMappingList::Insert(llvm::StringRef path, llvm::StringRef replacement, in Insert() argument
107 NormalizePath(replacement))); in Insert()
112 bool PathMappingList::Replace(llvm::StringRef path, llvm::StringRef replacement, in Replace() argument
118 m_pairs[index] = pair(NormalizePath(path), NormalizePath(replacement)); in Replace()
/freebsd/contrib/ntp/sntp/libevent/include/event2/
H A Devent_compat.h69 event_base, and is totally unsafe for multithreaded use. The replacement
84 multithreaded use. The replacement is event_base_dispatch().
98 use. The replacement is event_base_loop().
114 use. The replacement is event_base_loopexit().
130 use. The replacement is event_base_loopbreak().
169 multithreaded use. The replacement is event_base_priority_init().
/freebsd/contrib/libevent/include/event2/
H A Devent_compat.h69 event_base, and is totally unsafe for multithreaded use. The replacement
84 multithreaded use. The replacement is event_base_dispatch().
98 use. The replacement is event_base_loop().
114 use. The replacement is event_base_loopexit().
130 use. The replacement is event_base_loopbreak().
169 multithreaded use. The replacement is event_base_priority_init().
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64SIMDInstrOpt.cpp75 // This is used to cache instruction replacement decisions within function
79 // store instructions replacement pass early or not for a particular target.
101 // The Instruction Replacement Table:
160 /// Return true if replacement is expected to be faster.
164 /// Determine if we need to exit the instruction replacement optimization
217 /// Return true if replacement is expected to be faster.
221 // Check if replacement decision is already available in the cached table. in shouldReplaceInst()
234 // of interest, then return false for no replacement. in shouldReplaceInst()
252 // Replacement cost. in shouldReplaceInst()
269 /// Determine if we need to exit this pass for a kind of instruction replacement
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600OpenCLImageTypeLoweringPass.cpp165 Value *Replacement = nullptr; in replaceImageUses() local
168 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceImageUses()
170 Replacement = &ImageSizeArg; in replaceImageUses()
172 Replacement = &ImageFormatArg; in replaceImageUses()
177 Inst->replaceAllUsesWith(Replacement); in replaceImageUses()
198 Value *Replacement = nullptr; in replaceSamplerUses() local
201 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceSamplerUses()
206 Inst->replaceAllUsesWith(Replacement); in replaceSamplerUses()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_wait/scan/
H A Dzpool_wait_replace_cancel.ksh22 # 'zpool wait' works when a replacing disk is detached before the replacement
28 # 3. Start a replacement of the new disk.
32 # 6. Cancel the replacement by detaching the replacing disk.
/freebsd/bin/ed/
H A Ded.1112 It is possible to modify only a portion of a line by means of replacement,
712 .It (.,.)s/re/replacement/
713 .It (.,.)s/re/replacement/g
714 .It (.,.)s/re/replacement/n
719 .Ar replacement .
737 .Ar replacement
750 .Ar replacement
760 .Ar replacement
764 .Ar replacement
767 .Ar replacement
/freebsd/contrib/nvi/vi/
H A Dv_replace.c56 * If the line doesn't exist, or it's empty, replacement isn't in v_replace()
59 * 1: It's historic practice (vi beeped before the replacement in v_replace()
76 * are confusing) only permit the replacement of the characters in in v_replace()
77 * the current line. I suppose we could append replacement characters in v_replace()
92 * If it's not a repeat, reset the current mode and get a replacement in v_replace()
/freebsd/crypto/openssl/doc/man7/
H A Dmigration_guide.pod362 The new L<EVP_RAND(3)> is a partial replacement: the DRBG callback framework is
661 All functions listed below with a I<NAME> have a replacement function I<NAME_ex>
1014 =head4 Providers are a replacement for engines and low-level method overrides
1166 There is no replacement for the IGE functions. New code should not use these modes.
1191 There is no replacement. It returned a string indicating if the AES code was unrolled.
1220 There is no replacement. This option returned a constant string.
1357 The B<DH_FLAG_CACHE_MONT_P> flag has been deprecated without replacement.
1360 There is no replacement for setting these flags.
1407 See L</Providers are a replacement for engines and low-level method overrides>
1432 There is no direct replacement
[all...]

12345678910>>...49