diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-28 15:06:27 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-28 15:06:27 +0000 |
| commit | 42572f532b99230bf7aa3e3593a0fbb1174bce7c (patch) | |
| tree | 57af50f1619fc36e17649e737ed45a8509254e65 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 5c805e92a5f70a913bc3bfcd15c44875974c2111 (diff) | |
| download | clang-42572f532b99230bf7aa3e3593a0fbb1174bce7c.tar.gz clang-42572f532b99230bf7aa3e3593a0fbb1174bce7c.tar.bz2 clang-42572f532b99230bf7aa3e3593a0fbb1174bce7c.tar.xz | |
Refactor comment merging.
- We scan for whitespace between comments anyways, remember any newlines seen
along the way.
- Use this newline number to decide whether two comments are adjacent.
- Since the newline check is now free remove the caching and unused code.
- Remove unnecessary boolean state from the comment list.
- No behavioral change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
