Without this, clients are unable to rename often-used symbols in larger
projects.
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D136454
init(1000),
};
+opt<int> RenameFileLimit{
+ "rename-file-limit",
+ cat(Features),
+ desc("Limit the number of files to be affected by symbol renaming. "
+ "0 means no limit (default=50)"),
+ init(50),
+};
+
list<std::string> TweakList{
"tweaks",
cat(Features),
Opts.BackgroundIndex = EnableBackgroundIndex;
Opts.BackgroundIndexPriority = BackgroundIndexPriority;
Opts.ReferencesLimit = ReferencesLimit;
+ Opts.Rename.LimitFiles = RenameFileLimit;
auto PAI = createProjectAwareIndex(loadExternalIndex, Sync);
if (StaticIdx) {
IdxStack.emplace_back(std::move(StaticIdx));