gecko-dev/build/clang-plugin
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
..
alpha Bug 1614371 - Move mozilla-performance-temp-refptr check to alpha checker repo. r=andi 2020-03-19 14:19:15 +00:00
external Bug 1664394 - rename linux64-civet-tidy to linux64-external-tidy;r=andi 2020-09-15 15:06:10 +00:00
mozsearch-plugin Bug 1653342 - Make MozsearchIndexer.cpp buildable with clang-11 r=asuth 2020-07-16 19:46:35 +00:00
tests Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
.clang-format
ArithmeticArgChecker.cpp Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj 2018-11-03 13:41:36 +00:00
ArithmeticArgChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
AssertAssignmentChecker.cpp Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj 2018-11-03 13:41:36 +00:00
AssertAssignmentChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
BaseCheck.h Bug 1589096 - add registerPPCallbacks to our version of clang-tidy due to a limitation in mozilla-must-override. r=sylvestre 2019-10-31 12:16:35 +00:00
CanRunScriptChecker.cpp Bug 1646158 - Fix StringRef conversions in clang-plugin for clang 11 r=static-analysis-reviewers,andi 2020-06-17 15:56:44 +00:00
CanRunScriptChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
Checks.inc Backed out 2 changesets (bug 1485588) for bustages on TestNoLocaleSpecificChecker.cpp . CLOSED TREE 2020-07-20 15:35:25 +03:00
ChecksIncludes.inc Backed out 2 changesets (bug 1485588) for bustages on TestNoLocaleSpecificChecker.cpp . CLOSED TREE 2020-07-20 15:35:25 +03:00
CustomAttributes.cpp Bug 1644852 - Add an external/CustomAttributes.inc r=andi 2020-06-10 14:28:57 -05:00
CustomAttributes.h Bug 1644852 - Add an external/CustomAttributes.inc r=andi 2020-06-10 14:28:57 -05:00
CustomAttributes.inc Bug 1651323 - Add temporary lifetime bound checker. r=andi,xpcom-reviewers,nika 2020-07-10 12:15:57 +00:00
CustomMatchers.h Backed out 2 changesets (bug 1485588) for bustages on TestNoLocaleSpecificChecker.cpp . CLOSED TREE 2020-07-20 15:35:25 +03:00
CustomTypeAnnotation.cpp Bug 1569681: Part 1 - Add support for moz_static_local_class and moz_trivial_dtor to clang-plugin; r=Ehsan 2019-07-30 18:50:52 +00:00
CustomTypeAnnotation.h Bug 1569681: Part 1 - Add support for moz_static_local_class and moz_trivial_dtor to clang-plugin; r=Ehsan 2019-07-30 18:50:52 +00:00
DanglingOnTemporaryChecker.cpp Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
DanglingOnTemporaryChecker.h Bug 1374024 - add checker to prevent dangling pointers returned by method calls on temporaries. r=mystor 2017-07-05 16:14:21 +02:00
DiagnosticsMatcher.cpp Bug 1619921 - enable clang-plugin with support for alpha checkers module. r=froydnj,sg 2020-03-17 07:01:09 +00:00
DiagnosticsMatcher.h Bug 1619921 - enable clang-plugin with support for alpha checkers module. r=froydnj,sg 2020-03-17 07:01:09 +00:00
ExplicitImplicitChecker.cpp Bug 1483953 - Add a FixIt hint for the ExplicitImplicitChecker analysis. r=Ehsan 2018-08-24 14:11:26 +00:00
ExplicitImplicitChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ExplicitOperatorBoolChecker.cpp Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
ExplicitOperatorBoolChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
FopenUsageChecker.cpp Bug 1615245 - checker `fopen-usage` should ignore some `gtest` include files. r=froydnj 2020-02-15 17:56:39 +00:00
FopenUsageChecker.h Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
KungFuDeathGripChecker.cpp Bug 1605075 - Ignore kfdg variables initialized from xvalues in KungFuDeatGripChecker. r=andi 2020-04-09 09:48:13 +00:00
KungFuDeathGripChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
LoadLibraryUsageChecker.cpp Bug 1511889 - Update clang-plugin LoadLibraryUsageChecker to use getBeginLoc. r=froydnj 2018-12-06 16:34:13 +00:00
LoadLibraryUsageChecker.h Bug 1440886 - Implement a static analysis checker to detect usage of PR_LoadLibrary and LoadLibraryA/LoadLibraryExA/LoadLibrary/LoadLibraryEx. r=Nika 2018-03-07 14:36:44 +02:00
Makefile.in Bug 1522771: Use -brepro to build clang-plugin.dll deterministically. r=mshal 2019-01-25 11:09:13 -05:00
MemMoveAnnotation.h Bug 1579351 - Add constant complexity for MemMoveAnnotation when looking for specific `std::atomic`. r=froydnj 2019-09-09 13:30:16 +00:00
MozCheckAction.cpp Bug 1591493 - Clang plugin should work with distributed builds. r=andi 2019-10-28 06:54:25 +00:00
MozillaTidyModule.cpp Bug 1652039 - Include checks in subdirectories in MozillaTidyModule.cpp r=andi 2020-07-20 07:50:47 +00:00
MustOverrideChecker.cpp Bug 1589096 - add registerPPCallbacks to our version of clang-tidy due to a limitation in mozilla-must-override. r=sylvestre 2019-10-31 12:16:35 +00:00
MustOverrideChecker.h Bug 1589096 - add registerPPCallbacks to our version of clang-tidy due to a limitation in mozilla-must-override. r=sylvestre 2019-10-31 12:16:35 +00:00
MustReturnFromCallerChecker.cpp Bug 1666307 - Turn assertion failure into an early return for now. r=andi 2020-09-22 12:33:32 +00:00
MustReturnFromCallerChecker.h Bug 1580260 - rework the logic for `MustReturnFromCaller` checker. r=froydnj 2020-02-05 08:34:36 +00:00
MustUseChecker.cpp Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj 2018-11-03 13:41:36 +00:00
MustUseChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NaNExprChecker.cpp Bug 1332689 - Remove clang 3.9 compat code for the clang-plugin. r=andi 2019-10-28 06:55:00 +00:00
NaNExprChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NeedsNoVTableTypeChecker.cpp Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj 2018-11-03 13:41:36 +00:00
NeedsNoVTableTypeChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoAddRefReleaseOnReturnChecker.cpp Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj 2018-11-03 13:41:36 +00:00
NoAddRefReleaseOnReturnChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoAutoTypeChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoAutoTypeChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoDuplicateRefCntMemberChecker.cpp Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj 2018-11-03 13:41:36 +00:00
NoDuplicateRefCntMemberChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoExplicitMoveConstructorChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoExplicitMoveConstructorChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoNewThreadsChecker.cpp Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-27 12:53:54 +00:00
NoNewThreadsChecker.h Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-27 12:53:54 +00:00
NoPrincipalGetURI.cpp Bug 1638576 - Correct spelling of "deprecated" (follow-up to bug 1611160). r=sylvestre 2020-05-17 20:20:38 +00:00
NoPrincipalGetURI.h Bug 1611160 - Add Clang Plugin for nsIPrincipal r=ckerschb,andi 2020-03-03 14:30:36 +00:00
NoUsingNamespaceMozillaJavaChecker.cpp Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
NoUsingNamespaceMozillaJavaChecker.h Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
NonMemMovableMemberChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonMemMovableMemberChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonMemMovableTemplateArgChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonMemMovableTemplateArgChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonParamInsideFunctionDeclChecker.cpp Bug 1487622 - Refactor the clang plugin wrt attributes r=andi 2018-09-18 13:03:33 +00:00
NonParamInsideFunctionDeclChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonTrivialTypeInFfiChecker.cpp Bug 1613176 - Introduce NonTrivialTypeInFfiChecker. r=andi 2020-02-11 13:11:29 +00:00
NonTrivialTypeInFfiChecker.h Bug 1613176 - Introduce NonTrivialTypeInFfiChecker. r=andi 2020-02-11 13:11:29 +00:00
OverrideBaseCallChecker.cpp Bug 1487622 - Refactor the clang plugin wrt attributes r=andi 2018-09-18 13:03:33 +00:00
OverrideBaseCallChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
OverrideBaseCallUsageChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
OverrideBaseCallUsageChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ParamTraitsEnumChecker.cpp Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
ParamTraitsEnumChecker.h Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
RecurseGuard.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
RefCountedCopyConstructorChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
RefCountedCopyConstructorChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
RefCountedInsideLambdaChecker.cpp Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj 2018-11-03 13:41:36 +00:00
RefCountedInsideLambdaChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ScopeChecker.cpp Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
ScopeChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
SprintfLiteralChecker.cpp Bug 1332689 - Remove clang 3.9 compat code for the clang-plugin. r=andi 2019-10-28 06:55:00 +00:00
SprintfLiteralChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
StmtToBlockMap.h Bug 1646158 - Make `DynTypedNodeList` work with clang11 r=static-analysis-reviewers,andi 2020-06-17 15:56:44 +00:00
TemporaryLifetimeBoundChecker.cpp Bug 1651323 - Add temporary lifetime bound checker. r=andi,xpcom-reviewers,nika 2020-07-10 12:15:57 +00:00
TemporaryLifetimeBoundChecker.h Bug 1651323 - Add temporary lifetime bound checker. r=andi,xpcom-reviewers,nika 2020-07-10 12:15:57 +00:00
ThirdPartyPaths.h Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs 2019-07-08 09:27:47 +00:00
ThirdPartyPaths.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
ThreadAllows.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
ThreadAllows.txt Bug 1657521 - P3. Have the RemoteDecoderManagerChild use its own dedicated thread. r=mattwoodrow 2020-08-13 03:19:36 +00:00
ThreadFileAllows.txt Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-27 12:53:54 +00:00
TrivialCtorDtorChecker.cpp Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj 2018-11-03 13:41:36 +00:00
TrivialCtorDtorChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
TrivialDtorChecker.cpp Bug 1615826 - Reformat `clang-plugin` to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
TrivialDtorChecker.h Bug 1569681: Part 1 - Add support for moz_static_local_class and moz_trivial_dtor to clang-plugin; r=Ehsan 2019-07-30 18:50:52 +00:00
Utils.h Bug 1664898 - move media/mtransport to media/transport. r=ng 2020-09-22 21:43:49 +00:00
VariableUsageHelpers.cpp Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs 2019-07-08 09:27:47 +00:00
VariableUsageHelpers.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
import_mozilla_checks.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
plugin.h Bug 1650804 - Update clang-tidy code for new ClangTidyCheck.h header in recent clangs r=static-analysis-reviewers,andi 2020-07-06 16:31:17 +00:00