]> granicus.if.org Git - clang/commit
[clang-format] Remove (SourceManager, FileID) variants
authorDaniel Jasper <djasper@google.com>
Tue, 8 Nov 2016 16:11:33 +0000 (16:11 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 8 Nov 2016 16:11:33 +0000 (16:11 +0000)
commit3c0f4eaf96cfc3c002740d88c2264a0f3d853354
treec5453aa70ab0a85bd7e81cdf84419b27a60f4960
parentc2f923278d748f418daf2a21ad1c0469c4829665
[clang-format] Remove (SourceManager, FileID) variants

In Format, remove the reformat() and clean() functions taking a SourceManager
and a FileID. Keep the versions taking StringRef Code.

- there was duplicated functionality
- the FileID versions were harder to use
- the clean() version is dead code anyways

Patch by Krasimir Georgiev. Thank you.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286243 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Index/CommentToXML.cpp