[clang-tidy] Reuse FileID in getLocation
authorChih-Hung Hsieh <chh@google.com>
Thu, 6 Apr 2017 20:19:26 +0000 (20:19 +0000)
committerChih-Hung Hsieh <chh@google.com>
Thu, 6 Apr 2017 20:19:26 +0000 (20:19 +0000)
commit90fccec5ee30d1b782656114caf606738cb2d061
treeb52ac9eb9bda95f9776d711c8bdbcc485a101ce1
parent579540a8f7967fdbc8b0bf7cd214a6b12a98a362
[clang-tidy] Reuse FileID in getLocation

One FileID per warning will increase and overflow NextLocalOffset
when input file is large with many warnings.
Reusing FileID avoids this problem.

This requires changes in getColumnNumber, D31406, rL299681.

Differential Revision: http://reviews.llvm.org/D31406

llvm-svn: 299700
clang-tools-extra/clang-tidy/ClangTidy.cpp