[clang-format] Tidy up new API guessLanguage()
authorBen Hamilton <benhamilton@google.com>
Tue, 27 Feb 2018 15:56:40 +0000 (15:56 +0000)
committerBen Hamilton <benhamilton@google.com>
Tue, 27 Feb 2018 15:56:40 +0000 (15:56 +0000)
commit6e066350d8dcfac70e8a038e9ea580dacb56d08d
tree0013dd76f4e78b81968f924f04d31052bdbd6ae1
parent497fd98af2fff16b5b885f1bdac3b9b039f5080f
[clang-format] Tidy up new API guessLanguage()

Summary:
This fixes a few issues djasper@ brought up in his review of D43522.

Test Plan:
  make -j12 FormatTests && ./tools/clang/unittests/Format/FormatTests

Reviewers: djasper

Reviewed By: djasper

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D43598

llvm-svn: 326205
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTest.cpp