Bug 1521460 - mach clang-format: Also reformat objective-c files r=ehsan
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 21 Jan 2019 18:08:57 +0100
changeset 514911 d11a86413d42d1957a8d0451af8f284956909974
parent 514910 812638586b091e02deebdfca44f97a688a8e2fe4
child 514912 0e3b5fe32d113a4a857bf7b948921f531cca8a8e
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1521460
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521460 - mach clang-format: Also reformat objective-c files r=ehsan Differential Revision: https://phabricator.services.mozilla.com/D17137
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1643,17 +1643,17 @@ class StaticAnalysisMonitor(object):
         return (warning, True)
 
 
 @CommandProvider
 class StaticAnalysis(MachCommandBase):
     """Utilities for running C++ static analysis checks and format."""
 
     # List of file extension to consider (should start with dot)
-    _format_include_extensions = ('.cpp', '.c', '.cc', '.h')
+    _format_include_extensions = ('.cpp', '.c', '.cc', '.h', '.mm')
     # File contaning all paths to exclude from formatting
     _format_ignore_file = '.clang-format-ignore'
 
     @Command('static-analysis', category='testing',
              description='Run C++ static analysis checks')
     def static_analysis(self):
         # If not arguments are provided, just print a help message.
         mach = Mach(os.getcwd())