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.

This requires changes in getColumnNumber, D31406, rL299681.

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

Details

Committed
chhApr 6 2017, 1:19 PM
Differential Revision
D31406: [clang-tidy] Reuse FileID in getLocation
Branches
Unknown
Tags
Unknown