... which applies a set of AtomicChanges on code.
Details
- Reviewers
klimek djasper - Commits
- rG7ef3a19337c6: Added `applyAtomicChanges` function.
rGea5c4a7ca3a8: Added `applyAtomicChanges` function.
rC309548: Added `applyAtomicChanges` function.
rC298913: Added `applyAtomicChanges` function.
rL309548: Added `applyAtomicChanges` function.
rL298913: Added `applyAtomicChanges` function.
Diff Detail
- Build Status
Buildable 8755 Build 8755: arc lint + arc unit
Event Timeline
| include/clang/Tooling/Refactoring/AtomicChange.h | ||
|---|---|---|
| 135 | That part of the sentence doesn't parse. | |
| 138 | I'd add default values for everything that will otherwise be uninitialized. | |
| 153–155 | Why? | |
| lib/Tooling/Refactoring/AtomicChange.cpp | ||
| 105 | Won't this be incorrect if the last line (no \n) is 1 over the column limit (due to EndPos = Code.size()-1 above)? | |
| include/clang/Tooling/Refactoring/AtomicChange.h | ||
|---|---|---|
| 153–155 | Changes might have equivalent paths in different forms (e.g. relative or absolute), and checking canonical paths are dependent on file systems and the working directory, so I think this should be checked/handled in the user level. | |
| lib/Tooling/Refactoring/AtomicChange.cpp | ||
| 105 | Yeah, that is a bug. Should be Code.size() then. | |
| include/clang/Tooling/Refactoring/AtomicChange.h | ||
|---|---|---|
| 145 | Should probably be "exceeding the column limit". | |
| lib/Tooling/Refactoring/AtomicChange.cpp | ||
| 90 | I think LLVM style is lowerCamelCase now, right? Here and below. | |
| 112 | nit: I'd move this down and just return {} for kNone. | |
| 126 | Remove braces? | |
| 150 | What is copying these vectors buying us? | |
| 163 | I'd remove the parentheses. | |
| 195 | Remove the braces of the for loops. | |
Looks good.. Very nice :)
| lib/Tooling/Refactoring/AtomicChange.cpp | ||
|---|---|---|
| 101 | nit: remove braces (at least for consistency) | |
| cfe/trunk/include/clang/Tooling/Refactoring/AtomicChange.h | ||
|---|---|---|
| 19 ↗ | (On Diff #93232) | It requires clangFormat in LINK_LIBS. Fixed in r298921. |
This (rL298913) was reverted upstream due to cyclic dependency on GreenDragon bot. Investigating...
That part of the sentence doesn't parse.