HomePhabricator

[clang-tidy] Reuse FileID in getLocation

Authored by chh on Mar 30 2017, 3:09 PM.

Description

[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.

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

llvm-svn: 299119

Details