]> granicus.if.org Git - clang/commit
Restructuring of token annotation for formatting.
authorDaniel Jasper <djasper@google.com>
Mon, 4 Feb 2013 07:21:18 +0000 (07:21 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 4 Feb 2013 07:21:18 +0000 (07:21 +0000)
commit0178673f541685cf5067814dfeee2644078e39a9
tree23dbeb42fb6c9e03f277b901bd59a206c2a9dbee
parent22c0cbee5bb2150841e0046354fd37ba22de747a
Restructuring of token annotation for formatting.

This combines several changes:
* Calculation token type (e.g. for * and &) in the AnnotatingParser.
* Calculate the scope binding strength in the AnnotatingParser.
* Let <> and [] scopes bind stronger than () and {} scopes.
* Add minimal debugging output.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174307 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
lib/Format/TokenAnnotator.h
unittests/Format/FormatTest.cpp