OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Replacements
(Results
1 - 25
of
45
) sorted by relevancy
1
2
/src/external/apache2/llvm/dist/clang/lib/Format/
SortJavaScriptImports.h
25
// Sort JavaScript ES6 imports/exports in ``Code``. The generated
replacements
27
tooling::
Replacements
sortJavaScriptImports(const FormatStyle &Style,
FormatInternal.h
63
/// * P.first are the ``
Replacements
`` necessary to make all \p Ranges comply
71
std::pair<tooling::
Replacements
, unsigned>
UsingDeclarationsSorter.h
27
std::pair<tooling::
Replacements
, unsigned>
NamespaceEndCommentsFixer.h
37
std::pair<tooling::
Replacements
, unsigned>
TokenAnalyzer.h
11
/// classes. TokenAnalyzer can be extended to generate
replacements
based on
84
std::pair<tooling::
Replacements
, unsigned> process();
87
virtual std::pair<tooling::
Replacements
, unsigned>
TokenAnalyzer.cpp
11
/// classes. TokenAnalyzer can be extended to generate
replacements
based on
65
std::pair<tooling::
Replacements
, unsigned> TokenAnalyzer::process() {
66
tooling::
Replacements
Result;
90
std::pair<tooling::
Replacements
, unsigned> RunResult =
94
llvm::dbgs() << "
Replacements
for run " << Run << ":\n";
95
for (tooling::
Replacements
::const_iterator I = RunResult.first.begin(),
109
//
Replacements
to indicate failure.
112
return {tooling::
Replacements
(), 0};
WhitespaceManager.h
11
///
replacements
.
27
/// Manages the whitespaces around tokens and their
replacements
.
84
/// Returns all the \c
Replacements
created during formatting.
85
const tooling::
Replacements
&generateReplacements();
210
/// Fill \c Replaces with the
replacements
for all effective changes.
227
tooling::
Replacements
Replaces;
/src/external/apache2/llvm/dist/clang/include/clang/Tooling/
Refactoring.h
35
/// passed to run() and runAndSave() should add
replacements
to
45
/// Returns the file path to
replacements
map to which
replacements
47
std::map<std::string,
Replacements
> &getReplacements();
49
/// Call run(), apply all generated
replacements
, and immediately save
55
/// Apply all stored
replacements
to the given Rewriter.
63
/// \returns true if all
replacements
apply. false otherwise.
71
std::map<std::string,
Replacements
> FileToReplaces;
75
///
Replacements
on the related file in \p Rewriter. In addition to applying
76
/// given
Replacements
, this function also formats the changed code
[
all
...]
RefactoringCallbacks.h
39
/// Collects \c tooling::
Replacements
while running.
43
Replacements
&getReplacements();
46
Replacements
Replace;
52
/// Runs AST matchers and stores the \c tooling::
Replacements
in a map.
56
std::map<std::string,
Replacements
> &FileToReplaces);
73
std::map<std::string,
Replacements
> &FileToReplaces;
ReplacementsYaml.h
1
//===-- ReplacementsYaml.h -- Serialiazation for
Replacements
---*- C++ -*-===//
11
///
replacements
.
67
Io.mapRequired("
Replacements
", Doc.
Replacements
);
DiagnosticsYaml.h
44
for (auto &
Replacements
: M.Fix) {
45
for (auto &Replacement :
Replacements
.second)
48
Io.mapRequired("
Replacements
", Fixes);
/src/external/apache2/llvm/dist/clang/include/clang/Tooling/Syntax/
Mutations.h
9
// corresponding textual
replacements
.
21
/// Computes textual
replacements
required to mimic the tree modifications made
23
tooling::
Replacements
computeReplacements(const Arena &A,
/src/external/apache2/llvm/dist/clang/include/clang/Tooling/Core/
Replacement.h
115
/// Only
replacements
that are in a valid file can be applied.
153
/// e.g. fail applying
replacements
and
replacements
conflict.
163
/// replacement in a set of
replacements
.
193
//
replacements
, that is causing problem.
196
// An existing replacement in a
replacements
set that is causing problem.
200
/// Less-than operator between two
Replacements
.
203
/// Equal-to operator between two
Replacements
.
206
/// Maintains a set of
replacements
that are conflict-free.
207
/// Two
replacements
are considered conflicts if they overlap or have the sam
[
all
...]
Diagnostic.h
11
// translation units. Indicate diagnostics reports and
replacements
59
llvm::StringMap<
Replacements
> Fix;
114
const llvm::StringMap<
Replacements
> *selectFirstFix(const Diagnostic& D);
/src/external/apache2/llvm/dist/clang/lib/Tooling/Core/
Replacement.cpp
157
Replacements
::getReplacementInChangedCode(const Replacement &R) const {
170
"existing
replacements
";
191
Replacements
Replacements
::getCanonicalReplacements() const {
193
// Merge adjacent
replacements
.
205
"Existing
replacements
must not overlap.");
213
return
Replacements
(NewReplacesImpl.begin(), NewReplacesImpl.end());
217
// has the same effect, so we need to compare
replacements
associated to
219
llvm::Expected<
Replacements
>
220
Replacements
::mergeIfOrderIndependent(const Replacement &R) const
[
all
...]
/src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/Rename/
RenamingAction.h
35
std::map<std::string, tooling::
Replacements
> &FileToReplaces,
45
std::map<std::string, tooling::
Replacements
> &FileToReplaces;
92
/// Returns source
replacements
that correspond to the rename of the given
104
std::map<std::string, tooling::
Replacements
> &FileToReplaces)
116
/// A file path to
replacements
map.
117
std::map<std::string, tooling::
Replacements
> &FileToReplaces;
/src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
WebAssemblyAddMissingPrototypes.cpp
64
std::vector<std::pair<Function *, Function *>>
Replacements
;
129
Replacements
.emplace_back(&F, NewF);
132
for (auto &Pair :
Replacements
) {
143
return !
Replacements
.empty();
/src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
AtomicChange.cpp
26
// This converts AtomicChange's internal implementation of the
replacements
27
// set to a vector of
replacements
.
61
Io.mapRequired("
Replacements
", Doc.Replaces);
76
Io.mapRequired("
Replacements
", Keys->Replaces);
109
const clang::tooling::
Replacements
&Replaces) {
114
// This works assuming that
replacements
are ordered by offset.
142
// Creates
replacements
for inserting/deleting #include headers.
143
llvm::Expected<
Replacements
>
147
// Create header insertion/deletion
replacements
to be cleaned up
148
// (i.e. converted to real insertion/deletion
replacements
)
[
all
...]
/src/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/
ComputeReplacements.cpp
85
tooling::
Replacements
91
tooling::
Replacements
Replacements
;
97
llvm::cantFail(
Replacements
.add(tooling::Replacement(
122
// We might have pending
replacements
at the end of file. If so, emit them.
126
return
Replacements
;
/src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/
AtomicChange.h
10
// changes, e.g.
replacements
and header insertions.
28
/// e.g.
replacements
or header insertions. Edits in an AtomicChange should be
29
/// related, e.g.
replacements
for the same type reference and the corresponding
74
/// conflicts among
replacements
, use this to set an error description.
116
/// Returns a const reference to existing
replacements
.
117
const
Replacements
&getReplacements() const { return Replaces; }
135
clang::tooling::
Replacements
Replaces);
143
tooling::
Replacements
Replaces;
/src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/
RenamingAction.cpp
166
/// Takes each atomic change and inserts its
replacements
into the set of
167
///
replacements
that belong to the appropriate file.
170
std::map<std::string, tooling::
Replacements
> *FileToReplaces) {
189
std::map<std::string, tooling::
Replacements
> &FileToReplaces,
226
llvm::errs() << "Failed to create renaming
replacements
for '" << PrevName
236
std::map<std::string, tooling::
Replacements
> &FileToReplaces;
248
std::map<std::string, tooling::
Replacements
> &FileToReplaces)
266
std::map<std::string, tooling::
Replacements
> &FileToReplaces;
/src/external/apache2/llvm/dist/llvm/lib/Support/
FormatVariadic.cpp
103
// these as
replacements
.
145
SmallVector<ReplacementItem, 2>
Replacements
;
150
Replacements
.push_back(I);
152
return
Replacements
;
/src/external/apache2/llvm/dist/clang/lib/Tooling/
Refactoring.cpp
32
std::map<std::string,
Replacements
> &RefactoringTool::getReplacements() {
51
llvm::errs() << "Skipped some
replacements
.\n";
70
const std::map<std::string,
Replacements
> &FileToReplaces,
/src/external/apache2/llvm/dist/clang/include/clang/Tooling/Inclusions/
HeaderIncludes.h
46
/// Generates
replacements
for inserting or deleting #include directives in a
79
tooling::
Replacements
remove(llvm::StringRef Header, bool IsAngled) const;
/src/external/apache2/llvm/dist/clang/include/clang/Format/
Format.h
3503
/// Returns the
replacements
necessary to sort all ``#include`` blocks
3505
tooling::
Replacements
sortIncludes(const FormatStyle &Style, StringRef Code,
3510
/// Returns the
replacements
corresponding to applying and formatting
3513
llvm::Expected<tooling::
Replacements
>
3514
formatReplacements(StringRef Code, const tooling::
Replacements
&Replaces,
3517
/// Returns the
replacements
corresponding to applying \p Replaces and
3530
llvm::Expected<tooling::
Replacements
>
3531
cleanupAroundReplacements(StringRef Code, const tooling::
Replacements
&Replaces,
3552
/// Returns the ``
Replacements
`` necessary to make all \p Ranges comply with
3557
tooling::
Replacements
reformat(const FormatStyle &Style, StringRef Code
[
all
...]
Completed in 56 milliseconds
1
2
Indexes created Wed Jun 10 00:26:05 UTC 2026