summaryrefslogtreecommitdiff
path: root/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-02-18 13:08:03 +0000
committerDaniel Jasper <djasper@google.com>2013-02-18 13:08:03 +0000
commit29333160cfd863a451ddb6fd505c3619c3724c95 (patch)
treecdc3178c6ec70be796c993d88d1a19ff7aed5d7f /lib/Basic/Module.cpp
parentd0f349be1422a123fdb28d6dd556f7300e6d51e9 (diff)
downloadclang-29333160cfd863a451ddb6fd505c3619c3724c95.tar.gz
clang-29333160cfd863a451ddb6fd505c3619c3724c95.tar.bz2
clang-29333160cfd863a451ddb6fd505c3619c3724c95.tar.xz
Reformat lines if they were "moved around".
An unwrapped line can get moved around if there is no newline before it and the previous line was formatted. Example: template<typename T> // Cursor is on this line when hitting "format" T *getFETokenInfo() const { return static_cast<T*>(FETokenInfo); } "return .." is the second unwrapped line in this scenario. I does not touch any reformatted region. Thus, the result of formatting is: template <typename T> T *getFETokenInfo() const { return static_cast<T *>(FETokenInfo); } After second format (and arguably desired end-result): template <typename T> T *getFETokenInfo() const { return static_cast<T *>(FETokenInfo); } This fixes: llvm.org/PR15060. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions