forked from OSchip/llvm-project
Increas number of iterations before a new libclang format object
is created to 1000. llvm-svn: 170481
This commit is contained in:
parent
39b685e4d1
commit
bbdb9f2653
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue