gecko-dev/build/clang-plugin
kriswright acd0e7d09c Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi
Creates a NoNewThreadsChecker plugin that looks for the function and checks to see if it's allowed.
-Creates two allowlists - `ThreadAllows.txt` is for thread names, while `ThreadFileAllows.txt` checks for entire files where instances of `NS_NewNamedThread` should be ignored.
-If an instance of `NS_NewNamedThread` is not listed in either list, then the checker throws an error with an additional note containing a more descriptive explanation of the failure.

Differential Revision: https://phabricator.services.mozilla.com/D62635

--HG--
extra : moz-landing-system : lando
2020-02-22 00:35:40 +00:00
..
mozsearch-plugin Bug 1511025 - Correct searchfox template traversal. r=emilio 2019-09-05 07:17:57 +00:00
tests Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
.clang-format
ArithmeticArgChecker.cpp
ArithmeticArgChecker.h
AssertAssignmentChecker.cpp
AssertAssignmentChecker.h
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 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
CanRunScriptChecker.h
Checks.inc Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
ChecksIncludes.inc Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
CustomAttributes.cpp Bug 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
CustomAttributes.h Bug 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
CustomAttributes.inc Bug 1581315 part 1. Adjust MOZ_MUST_RETURN_FROM_CALLER to only apply to method calls on arguments. r=nika 2019-09-20 02:17:01 +00:00
CustomMatchers.h Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00: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
DiagnosticsMatcher.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
DiagnosticsMatcher.h Bug 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
ExplicitImplicitChecker.cpp
ExplicitImplicitChecker.h
ExplicitOperatorBoolChecker.cpp Bug 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
ExplicitOperatorBoolChecker.h
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
generate_thread_allows.py Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
import_mozilla_checks.py Bug 1332689 - Remove clang 3.8 compat code. r=andi 2019-10-28 06:54:43 +00:00
KungFuDeathGripChecker.cpp Bug 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
KungFuDeathGripChecker.h
LoadLibraryUsageChecker.cpp
LoadLibraryUsageChecker.h
Makefile.in
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
moz.build Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +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
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 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
MustReturnFromCallerChecker.h Bug 1580260 - rework the logic for MustReturnFromCaller checker. r=froydnj 2020-02-05 08:34:36 +00:00
MustUseChecker.cpp
MustUseChecker.h
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
NeedsNoVTableTypeChecker.cpp
NeedsNoVTableTypeChecker.h
NoAddRefReleaseOnReturnChecker.cpp
NoAddRefReleaseOnReturnChecker.h
NoAutoTypeChecker.cpp
NoAutoTypeChecker.h
NoDuplicateRefCntMemberChecker.cpp
NoDuplicateRefCntMemberChecker.h
NoExplicitMoveConstructorChecker.cpp
NoExplicitMoveConstructorChecker.h
NoNewThreadsChecker.cpp Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
NoNewThreadsChecker.h Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
NonMemMovableMemberChecker.cpp
NonMemMovableMemberChecker.h
NonMemMovableTemplateArgChecker.cpp
NonMemMovableTemplateArgChecker.h
NonParamInsideFunctionDeclChecker.cpp
NonParamInsideFunctionDeclChecker.h
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
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
OverrideBaseCallChecker.cpp
OverrideBaseCallChecker.h
OverrideBaseCallUsageChecker.cpp
OverrideBaseCallUsageChecker.h
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
plugin.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
RecurseGuard.h
RefCountedCopyConstructorChecker.cpp
RefCountedCopyConstructorChecker.h
RefCountedInsideLambdaChecker.cpp
RefCountedInsideLambdaChecker.h
ScopeChecker.cpp Bug 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj 2020-02-17 18:30:50 +00:00
ScopeChecker.h
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
StmtToBlockMap.h
TempRefPtrChecker.cpp Bug 1609638 - Add analysis identifying dereferences of temporary RefPtr objects. r=andi 2020-01-20 14:11:21 +00:00
TempRefPtrChecker.h Bug 1609638 - Add analysis identifying dereferences of temporary RefPtr objects. r=andi 2020-01-20 14:11:21 +00:00
ThirdPartyPaths.h
ThirdPartyPaths.py Bug 1617131 - Sort the list of third party paths. r=sylvestre 2020-02-21 11:04:12 +00:00
ThreadAllows.txt Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
ThreadFileAllows.txt Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
TrivialCtorDtorChecker.cpp
TrivialCtorDtorChecker.h
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 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi 2020-02-22 00:35:40 +00:00
VariableUsageHelpers.cpp
VariableUsageHelpers.h