]> granicus.if.org Git - clang/commitdiff
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.

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

tools/libclang/CXComment.cpp

index abf94a93f9dbde222a63ddb5c2ef5b928a605b90..0656ab824b4ab1d1b15523ab2bfbc759b43968e6 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;