Bug 1408795 - Disable Eclipse CDT's "scalability" mode for files with fewer than 15,000 lines. r=botond draft
authorJonathan Watt <jwatt@jwatt.org>
Mon, 16 Oct 2017 10:19:17 +0100
changeset 680867 b189d42e8ed068c6207c4f94a460aed549a511c2
parent 680866 ea8f01b4a59f49f6b899c0774ba4fd1250f4c6d4
child 680868 5ea27a039fd9e89c5d2cb176e2916a051935173c
push id84658
push userjwatt@jwatt.org
push dateMon, 16 Oct 2017 14:15:24 +0000
reviewersbotond
bugs1408795
milestone58.0a1
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: INCd7XXHwm
python/mozbuild/mozbuild/backend/cpp_eclipse.py
--- a/python/mozbuild/mozbuild/backend/cpp_eclipse.py
+++ b/python/mozbuild/mozbuild/backend/cpp_eclipse.py
@@ -725,13 +725,14 @@ org.eclipse.cdt.core.formatter.tabulatio
 org.eclipse.cdt.core.formatter.use_tabs_only_for_leading_indentations=false
 """
 
 STATIC_CDT_UI_PREFS="""eclipse.preferences.version=1
 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
 indexer/indexerId=org.eclipse.cdt.core.nullIndexer
 """