Eric Liu
|
8933d16ef8
Supports adding insertion around non-insertion replacements.
|
9 years ago |
Eric Liu
|
b4c0db24dd
Fixes calculateRangesAfterReplacements crash when Replacements is empty.
|
9 years ago |
Manuel Klimek
|
7604798c68
Fix bug in conflict check for Replacements::add().
|
9 years ago |
Manuel Klimek
|
7c12ee2f0b
Fix quadratic runtime when adding items to tooling::Replacements.
|
9 years ago |
Eric Liu
|
85c0fa18d9
Implement tooling::Replacements as a class.
|
9 years ago |
Mehdi Amini
|
2e23251d3e
[NFC] Header cleanup
|
9 years ago |
Eric Liu
|
a45abc6b0f
Make tooling::applyAllReplacements return llvm::Expected<string> instead of empty string to indicate potential error.
|
9 years ago |
Eric Liu
|
3870f43fc5
Trying to fix a buffer overflow that broke buildbot sanitizer-x86_64-linux-fast/builds/13946.
|
9 years ago |
Eric Liu
|
0edfbbb61f
Added calculateRangesAfterReplaments() to calculate affacted ranges in the new code.
|
9 years ago |
Eric Liu
|
6a4597fa13
Added formatAndApplyAllReplacements that works on multiple files in libTooling.
|
9 years ago |
Manuel Klimek
|
e30483a5c5
Add functions to apply replacements and reformat them.
|
9 years ago |
Manuel Klimek
|
9356a91ad2
Revert "Implement new interfaces for code-formatting when applying replacements."
|
9 years ago |
Manuel Klimek
|
a2abc618fa
Implement new interfaces for code-formatting when applying replacements.
|
9 years ago |
Daniel Jasper
|
c7652b7088
Fix calculation of shifted cursor/code positions. Specifically support
|
9 years ago |
Benjamin Kramer
|
326e651107
[Tooling] Remove dead code.
|
10 years ago |
Benjamin Kramer
|
266e77f330
[VFS] Port applyAllReplacements to InMemoryFileSystem.
|
10 years ago |
Daniel Jasper
|
0f5f6df672
Fix bad iterator access.
|
10 years ago |
Daniel Jasper
|
30ddf33877
clang-format: Add initial #include sorting capabilities.
|
10 years ago |
Daniel Jasper
|
07074ae5b3
Tooling: When applying a set of replacements, do deletions before
|
10 years ago |
Manuel Klimek
|
ee4a96d726
Allow replacements created from token ranges to specify language options.
|
10 years ago |
Manuel Klimek
|
a5e9d49efe
Fix bug in Replacement's toString on Windows (missing flush).
|
10 years ago |
Daniel Jasper
|
08a1416b41
Refactor libTooling to reduce required dependencies.
|
10 years ago |