This implements an alternative to r327861, namely preserving empty lines before namespace endings.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good.
lib/Format/NamespaceEndCommentsFixer.h | ||
---|---|---|
24 ↗ | (On Diff #141352) | I don't understand the "if that is to be formatted part". What do you mean? |
lib/Format/NamespaceEndCommentsFixer.h | ||
---|---|---|
24 ↗ | (On Diff #141352) | I'm documenting the current behavior of the implementation, getting into more detail in the next paragraph of the comments: this returns nullptr if Line is not Affected, even if otherwise would have a namespace token. |