I just landed a 1.2MB patch to fix C++ mode lines in dom/

As a reminder, the mode lines that should be used (in C++ files that are
properly 2-space indented) are:

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2
-*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */

See more at:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

I generated the patch using a Python script, modeline.py, which can be
found on GitHub:
  https://github.com/amccreight/moz-source-tools

Feel free to use it for other directories, though I've already run it for
xpcom/. It tries to analyze whether a file is 2-space indented, which is a
little finicky.

Thanks to jst for reviewing the giant patch.

Andrew
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to