Previously, a \n might be left in the old namespace and thus not copied to the new namespace, which is bad.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
change-namespace/ChangeNamespace.cpp | ||
---|---|---|
563 ↗ | (On Diff #83023) | maybe i am missing smth, to be honest i somehow think this code is "hacky" / looks like a "workaround", so don't like the idea of creating a replacement only for extracting the offset / filepath. |
Comment Actions
- Get rid of hacky replacement.
change-namespace/ChangeNamespace.cpp | ||
---|---|---|
563 ↗ | (On Diff #83023) | You are right; I was being lazy... remove the hack ;-) |
Comment Actions
LGTM with some nits.
Would be clearer to elaborate more descriptions in the commit message. Looks like the patch actually resolves newline character "\n" rather than whitespace...
change-namespace/ChangeNamespace.cpp | ||
---|---|---|
568 ↗ | (On Diff #83024) | Maybe use MoveNs.Offset instead of recalling SM.getFileOffset(Start); |