HomePhabricator

[clang-tidy] Reuse FileID in getLocation

Authored by chh on Apr 6 2017, 1:19 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.

This requires changes in getColumnNumber, D31406, rL299681.

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

llvm-svn: 299700

Details

Committed
chhApr 6 2017, 1:19 PM
Differential Revision
D31406: [clang-tidy] Reuse FileID in getLocation
Parents
rG579540a8f796: Turn some C-style vararg into variadic templates
Branches
Unknown
Tags
Unknown