Consider excluding certain directories from indexing in the generated Eclipse CDT project

RESOLVED FIXED in Firefox 65

Status

enhancement
P3
normal
RESOLVED FIXED
9 months ago
8 months ago

People

(Reporter: jwatt, Assigned: jwatt)

Tracking

Trunk
mozilla65

Firefox Tracking Flags

(firefox65 fixed)

Details

Attachments

(1 attachment)

Indexing the Eclipse CDT project that we create takes a ridiculously long. It's possible to get the indexer to ignore certain directories by opening the project properties, selecting C/C++ General > Paths and Symbols, then
selecting the Source Location tab, selecting the project root ("Gecko") then adding filters there.
That phab rev excludes the following from indexing.

**/lib*
**/test*
**/*test/
**/tests/
**/third_party/
tree/*.xcodeproj/
tree/.cargo/
tree/.vscode/
tree/build/
tree/extensions/
tree/gfx/angle/
tree/gfx/cairo/
tree/gfx/skia/skia/
tree/intl/icu/
tree/js/
tree/media/
tree/modules/freetype2
tree/modules/pdfium/
tree/netwerk/
tree/netwerk/sctp
tree/netwerk/srtp
tree/nsprpub/lib
tree/nsprpub/pr/src
tree/other-licenses/
tree/parser/
tree/python/
tree/security/nss/
tree/tools/

That reduces a full reindexing to just taking a "mere" 15 minutes on my machine, which is a big improvement.
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9d92116a6e98
Make the Eclipse CDT project ignore some directories when indexing. r=botond
https://hg.mozilla.org/mozilla-central/rev/9d92116a6e98
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.