gecko-dev/build/clang-plugin
Emilio Cobos Álvarez 80439edf68 Bug 1699844 - Add an escape hatch for the refcounted inside lambda checker. r=andi
Allow using the MOZ_KnownLive function to get around it.

Use case is the following: I have an std::function member variable, and I want
that member to be able to capture `this`.

Using a strong reference creates a cycle and thus would leak. I know `this` to
always outlive the member, so it is fine to use a weak capture there.

Differential Revision: https://phabricator.services.mozilla.com/D111850
2021-04-14 19:12:02 +00:00
..
alpha Bug 1662652 - New non-standard move checker. r=andi 2021-03-12 08:15:32 +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 1418001 - Generate analysis for file inclusions. r=asuth,andi 2020-11-03 15:57:32 +00:00
tests Bug 1699844 - Add an escape hatch for the refcounted inside lambda checker. r=andi 2021-04-14 19:12:02 +00:00
.clang-format
ArithmeticArgChecker.cpp
ArithmeticArgChecker.h
AssertAssignmentChecker.cpp
AssertAssignmentChecker.h
BaseCheck.h
CanRunScriptChecker.cpp Bug 1691515 - Add MOZ_KNOWN_LIVE member annotation r=andi 2021-03-05 23:23:03 +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
CustomAttributes.h
CustomAttributes.inc Bug 1691515 - Add MOZ_KNOWN_LIVE member annotation r=andi 2021-03-05 23:23:03 +00:00
CustomMatchers.h Bug 1691515 - Add MOZ_KNOWN_LIVE member annotation r=andi 2021-03-05 23:23:03 +00: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
import_mozilla_checks.py Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
KungFuDeathGripChecker.cpp
KungFuDeathGripChecker.h
LoadLibraryUsageChecker.cpp
LoadLibraryUsageChecker.h
Makefile.in
MemMoveAnnotation.h
moz.build Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
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 Bug 1600239 - Make message produced by NoAddRefReleaseOnReturnChecker more explicit. r=andi 2021-02-23 16:24:30 +00:00
NoAddRefReleaseOnReturnChecker.h
NoAutoTypeChecker.cpp
NoAutoTypeChecker.h
NoDuplicateRefCntMemberChecker.cpp
NoDuplicateRefCntMemberChecker.h
NoExplicitMoveConstructorChecker.cpp
NoExplicitMoveConstructorChecker.h
NoNewThreadsChecker.cpp
NoNewThreadsChecker.h
NonMemMovableMemberChecker.cpp
NonMemMovableMemberChecker.h
NonMemMovableTemplateArgChecker.cpp
NonMemMovableTemplateArgChecker.h
NonParamInsideFunctionDeclChecker.cpp
NonParamInsideFunctionDeclChecker.h
NonTrivialTypeInFfiChecker.cpp
NonTrivialTypeInFfiChecker.h
NoPrincipalGetURI.cpp
NoPrincipalGetURI.h
NoUsingNamespaceMozillaJavaChecker.cpp
NoUsingNamespaceMozillaJavaChecker.h
OverrideBaseCallChecker.cpp
OverrideBaseCallChecker.h
OverrideBaseCallUsageChecker.cpp
OverrideBaseCallUsageChecker.h
ParamTraitsEnumChecker.cpp
ParamTraitsEnumChecker.h
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
RecurseGuard.h
RefCountedCopyConstructorChecker.cpp
RefCountedCopyConstructorChecker.h
RefCountedInsideLambdaChecker.cpp Bug 1699844 - Add an escape hatch for the refcounted inside lambda checker. r=andi 2021-04-14 19:12:02 +00:00
RefCountedInsideLambdaChecker.h
ScopeChecker.cpp
ScopeChecker.h
SprintfLiteralChecker.cpp
SprintfLiteralChecker.h
StmtToBlockMap.h Bug 1682611 - Update clang-plugin for removal of ast_type_traits namespace in clang 12 r=static-analysis-reviewers,andi 2020-12-15 19:30:51 +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 1694462 - Remove the nsIThreadManager.newThread API (newNamedThread should be used instead), r=bas,KrisWright. 2021-03-02 22:34:51 +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