Merge branch 'master' of http://llvm.org/git/clang
Details
Diff Detail
Event Timeline
| include/clang/Tooling/Core/Replacement.h | ||
|---|---|---|
| 227–232 | I think we'll need to mainly call out the differences to the function above in the comment.  | |
| 241–243 | I'd probably put the Style parameter last.  | |
| lib/Tooling/Core/Replacement.cpp | ||
| 14–16 | Nit: I'd put newlines between the #include groups here.  | |
| 293 | We'll either want to assert that !Replaces.empty() (and document that in the function comment), or do an early exit if that's the case.  | |
| 305 | This comment doesn't carry it's weight, I think. I'd delete it.  | |
| 316–318 | I think we'll want to cut that out for now and implement it so that it works for arbitrary sets of replacements in a follow-up cl.  | |
| 338 | If the inner functions handle this case correctly, we don't need to handle it here.  | |
| unittests/Tooling/RefactoringTest.cpp | ||
| 171–177 | If you want to test that breaks happen, it's often better to use a configuration with a smaller column limit.  | |
- removed applyAllReplacementsAndFormat with Rewritter interface. reduced the column limit in test case; some formatting.
 
LG
| lib/Tooling/Core/Replacement.cpp | ||
|---|---|---|
| 290 | I'd return a default constructed Replacements() instead - I think that requires a bit less reasoning (as written currently, I'll need to reason that a copy is made to convince myself that this is correct).  | |
I think we'll need to mainly call out the differences to the function above in the comment.