Bug 1510919 - Make mach clang-format support .cc files r=andi
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 29 Nov 2018 07:21:33 +0000
changeset 505120 19475486e59680b67779fcf4c95a004e4c88d02f
parent 505119 35b5e6295787c4e5907dc502eef3c602969941d2
child 505121 32d5c8f3ca7f0eabefabd489d50d47e084d98f2a
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersandi
bugs1510919
milestone65.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 1510919 - Make mach clang-format support .cc files r=andi Differential Revision: https://phabricator.services.mozilla.com/D13372
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', '.h', '.java')
+    _format_include_extensions = ('.cpp', '.c', '.cc', '.h', '.java')
     # 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())