diff options
author | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-10-23 19:45:03 +0000 |
---|---|---|
committer | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-10-23 19:45:03 +0000 |
commit | 48342ee908aababa7ffda5a9e82b73fa96d965ee (patch) | |
tree | 7c473cbb1dd67c82d0c342acf4d8ccb2f43c95d0 /clang/lib/StaticAnalyzer/Core/RegionStore.cpp | |
parent | 03ac82edf5128f9e53b12ada34bfd41c63a24f94 (diff) | |
download | bcm5719-llvm-48342ee908aababa7ffda5a9e82b73fa96d965ee.tar.gz bcm5719-llvm-48342ee908aababa7ffda5a9e82b73fa96d965ee.zip |
Use a map instead of vector to store line counts.
There are a few motivations for this:
- Using a map allows for checking if line is in map. This differentiates
unexecutable lines (such as comments) from unexecuted logical lines of
code. "#####" is now outputted in this case, in line with gcov.
- Source files are no longer read in twice: once when storing the line
counts, and once when outputting the data.
- Greatly simplifies the function FileInfo::addLineCount().
llvm-svn: 193264
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/RegionStore.cpp')
0 files changed, 0 insertions, 0 deletions