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
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
ArithmeticArgChecker.h
AssertAssignmentChecker.cpp
AssertAssignmentChecker.h
BaseCheck.h
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
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
CustomTypeAnnotation.h
DanglingOnTemporaryChecker.cpp
DanglingOnTemporaryChecker.h
DiagnosticsMatcher.cpp
DiagnosticsMatcher.h
ExplicitImplicitChecker.cpp
ExplicitImplicitChecker.h
ExplicitOperatorBoolChecker.cpp
ExplicitOperatorBoolChecker.h
FopenUsageChecker.cpp
FopenUsageChecker.h
KungFuDeathGripChecker.cpp
KungFuDeathGripChecker.h
LoadLibraryUsageChecker.cpp
LoadLibraryUsageChecker.h
Makefile.in
MemMoveAnnotation.h
MozCheckAction.cpp
MozillaTidyModule.cpp Bug 1652039 - Include checks in subdirectories in MozillaTidyModule.cpp r=andi 2020-07-20 07:50:47 +00:00
MustOverrideChecker.cpp
MustOverrideChecker.h
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
MustUseChecker.cpp
MustUseChecker.h
NaNExprChecker.cpp
NaNExprChecker.h
NeedsNoVTableTypeChecker.cpp
NeedsNoVTableTypeChecker.h
NoAddRefReleaseOnReturnChecker.cpp
NoAddRefReleaseOnReturnChecker.h
NoAutoTypeChecker.cpp
NoAutoTypeChecker.h
NoDuplicateRefCntMemberChecker.cpp
NoDuplicateRefCntMemberChecker.h
NoExplicitMoveConstructorChecker.cpp
NoExplicitMoveConstructorChecker.h
NoNewThreadsChecker.cpp
NoNewThreadsChecker.h
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
NoUsingNamespaceMozillaJavaChecker.cpp
NoUsingNamespaceMozillaJavaChecker.h
NonMemMovableMemberChecker.cpp
NonMemMovableMemberChecker.h
NonMemMovableTemplateArgChecker.cpp
NonMemMovableTemplateArgChecker.h
NonParamInsideFunctionDeclChecker.cpp
NonParamInsideFunctionDeclChecker.h
NonTrivialTypeInFfiChecker.cpp
NonTrivialTypeInFfiChecker.h
OverrideBaseCallChecker.cpp
OverrideBaseCallChecker.h
OverrideBaseCallUsageChecker.cpp
OverrideBaseCallUsageChecker.h
ParamTraitsEnumChecker.cpp
ParamTraitsEnumChecker.h
RecurseGuard.h
RefCountedCopyConstructorChecker.cpp
RefCountedCopyConstructorChecker.h
RefCountedInsideLambdaChecker.cpp
RefCountedInsideLambdaChecker.h
ScopeChecker.cpp
ScopeChecker.h
SprintfLiteralChecker.cpp
SprintfLiteralChecker.h
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
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
TrivialCtorDtorChecker.cpp
TrivialCtorDtorChecker.h
TrivialDtorChecker.cpp
TrivialDtorChecker.h
Utils.h Bug 1664898 - move media/mtransport to media/transport. r=ng 2020-09-22 21:43:49 +00:00
VariableUsageHelpers.cpp
VariableUsageHelpers.h
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