]> granicus.if.org Git - clang/commit
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)
commit0ae1b95f2fb62c33185dc25a93087b90f407ada8
tree0b3a75ce697490f76cb2ee8d22a488692776339a
parentfc95a27fee8883d9dd403fdb46524fb95fb31f58
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209422 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp