Increas number of iterations before a new libclang format object
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 19 Dec 2012 00:35:23 +0000 (00:35 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 19 Dec 2012 00:35:23 +0000 (00:35 +0000)
is created to 1000.

llvm-svn: 170481

clang/tools/libclang/CXComment.cpp

index abf94a9..0656ab8 100644 (file)
@@ -1380,7 +1380,7 @@ CXString clang_FullComment_getAsXML(CXComment CXC) {
   if (!SFC) {
     SFC = new SimpleFormatContext(Context.getLangOpts());
     TU->FormatContext = SFC;
-  } else if ((TU->FormatInMemoryUniqueId % 10) == 0) {
+  } else if ((TU->FormatInMemoryUniqueId % 1000) == 0) {
     // Delete after some number of iterators, so the buffers don't grow
     // too large.
     delete SFC;