HomePhabricator

[clang-tidy] Reuse FileID in getLocation

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

Details

Committed
chhMar 30 2017, 3:09 PM
Differential Revision
D31406: [clang-tidy] Reuse FileID in getLocation
Branches
Unknown
Tags
Unknown