From 548cd8f12210ed82ac48709cea7e9f2cc1051681 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Thu, 29 Nov 2018 07:21:33 +0000 Subject: [PATCH] Bug 1510919 - Make mach clang-format support .cc files r=andi Differential Revision: https://phabricator.services.mozilla.com/D13372 --HG-- extra : moz-landing-system : lando --- python/mozbuild/mozbuild/mach_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index 8827672dffb9..60710373e3b0 100644 --- a/python/mozbuild/mozbuild/mach_commands.py +++ b/python/mozbuild/mozbuild/mach_commands.py @@ -1648,7 +1648,7 @@ 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'