clang-format: Store pointers to seen formatting states.
authorDaniel Jasper <djasper@google.com>
Thu, 22 May 2014 11:47:01 +0000 (11:47 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 22 May 2014 11:47:01 +0000 (11:47 +0000)
commit1f6c7e935895539710add35c5726140e99af679d
treed23b896c1a12769e187239cf9642d01889766e6b
parentb230595839918e57b0a887d2a4ec1c6fc3d7de8a
clang-format: Store pointers to seen formatting states.

As the memory ownership is handled by the SpecificBumpPtrAllocator
anyway, there is no need to duplicate states when inserting them into
the Seen-set. This leads to an improvement of ~10% on the benchmark
formatting file.

No functional changes intended.

llvm-svn: 209422
clang/lib/Format/Format.cpp