diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-22 16:31:55 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-22 16:31:55 +0000 |
commit | 86721d2a4610ac0a4b162952ec409df1fe397d58 (patch) | |
tree | f642fb02d6bf9a870cf57c7adaac5f3a8321a9d0 /lib/AST/Decl.cpp | |
parent | 3298327e0e6ecb31ca8f3d0996043292e7c860f2 (diff) |
Implements more principled comment parsing.
Changing nextToken() in the UnwrappedLineParser to get the next
non-comment token. This allows us to correctly layout a whole class of
snippets, like:
if /* */(/* */ a /* */) /* */
f() /* */; /* */
else /* */
g();
Fixes a bug in the formatter where we would assume there is a previous
non-comment token.
Also adds the indent level of an unwrapped line to the debug output in
the parser.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
0 files changed, 0 insertions, 0 deletions