From 25d7fb39e3dfd108397faeee722e960e019aa116 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Thu, 28 Sep 2017 10:57:30 +0100 Subject: [PATCH] Bug 1408795 - Disable Eclipse CDT's "scalability" mode for files with fewer than 15,000 lines. r=botond By default, scalability mode is activated for files with 5,000 lines or more. There are quite a few C++ files with more than 5,000 lines, and Eclipse seems to work fine with them with scalability mode turned off (even nsCSSFrameConstructor.cpp which is over 13,000 lines long). Increasing the number of lines before scalability mode is enabled allows Eclipse to handle these files better. MozReview-Commit-ID: 8mGYIHStHes --- python/mozbuild/mozbuild/backend/cpp_eclipse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/mozbuild/mozbuild/backend/cpp_eclipse.py b/python/mozbuild/mozbuild/backend/cpp_eclipse.py index c3c310759b59..dd0cbf1dd53b 100644 --- a/python/mozbuild/mozbuild/backend/cpp_eclipse.py +++ b/python/mozbuild/mozbuild/backend/cpp_eclipse.py @@ -730,6 +730,7 @@ ensureNewlineAtEOF=false formatter_profile=_Mozilla formatter_settings_version=1 org.eclipse.cdt.ui.formatterprofiles.version=1 +scalability.numberOfLines=15000 """ NOINDEX_TEMPLATE = """eclipse.preferences.version=1