gecko-dev/build/clang-plugin
serge-sans-paille eec5191498 Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium
This patch both:

1. Provides a static checker to detect global variables which may not be
   initialized at compile-time

2. Verify that variables flagged as MOZ_RUNINIT are indeed
   initialized at runtime

3. In case of variables whose initialisation status varies based on
   macro definition or template parameters, just flag them as
   MOZ_GLOBINIT.

Differential Revision: https://phabricator.services.mozilla.com/D223342
2024-10-30 11:05:25 +00:00
..
alpha Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre 2023-12-08 04:26:45 +00:00
external
mozsearch-plugin Bug 1922888 - Fix IndexConsumer::getContext(SourceLocation) when Ctxt->Decl is null. r=asuth 2024-10-05 16:12:20 +00:00
tests Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium 2024-10-30 11:05:25 +00:00
.clang-format
ArithmeticArgChecker.cpp
ArithmeticArgChecker.h
AssertAssignmentChecker.cpp
AssertAssignmentChecker.h
BaseCheck.h
CanRunScriptChecker.cpp Bug 1826036 - Make CanRunScriptChecker treat references as safe if initialized with safe things r=andi 2023-04-04 05:07:33 +00:00
CanRunScriptChecker.h
Checks.inc Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium 2024-10-30 11:05:25 +00:00
ChecksIncludes.inc Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium 2024-10-30 11:05:25 +00:00
CustomAttributes.cpp Bug 1798305 - for clang-tidy do not cache attributes using a matcher since incomplete definitions may occur. r=sergesanspaille 2023-03-27 16:04:39 +00:00
CustomAttributes.h
CustomAttributes.inc Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium 2024-10-30 11:05:25 +00:00
CustomMatchers.h Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium 2024-10-30 11:05:25 +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
GlobalVariableInitializationChecker.cpp Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium 2024-10-30 11:05:25 +00:00
GlobalVariableInitializationChecker.h Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium 2024-10-30 11:05:25 +00:00
JSHandleRootedTypedefChecker.cpp
JSHandleRootedTypedefChecker.h
KnownLiveChecker.cpp
KnownLiveChecker.h
KungFuDeathGripChecker.cpp
KungFuDeathGripChecker.h
LoadLibraryUsageChecker.cpp
LoadLibraryUsageChecker.h
Makefile.in Bug 1902214 - Move clang library linkage to moz.build. r=firefox-build-system-reviewers,sergesanspaille 2024-06-14 01:59:04 +00:00
MemMoveAnnotation.h
MozCheckAction.cpp
MozillaTidyModule.cpp
MustOverrideChecker.cpp
MustOverrideChecker.h
MustReturnFromCallerChecker.cpp Bug 1814134 - Fix clang plugin to build with recent clang trunk. r=firefox-build-system-reviewers,ahochheiden 2023-01-31 17:18:03 +00:00
MustReturnFromCallerChecker.h
NaNExprChecker.cpp Bug 1717448 - Exclude {fmt} from gecko-specific checks. r=glandium,nika 2024-10-21 12:54:54 +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
NoNewThreadsChecker.h
NoPrincipalGetURI.cpp
NoPrincipalGetURI.h
NoUsingNamespaceMozillaJavaChecker.cpp
NoUsingNamespaceMozillaJavaChecker.h
NonMemMovableMemberChecker.cpp
NonMemMovableMemberChecker.h
NonMemMovableTemplateArgChecker.cpp
NonMemMovableTemplateArgChecker.h
NonParamInsideFunctionDeclChecker.cpp Bug 1803471 - Adjust clang plugin to upstream changes on trunk. r=firefox-build-system-reviewers,ahochheiden 2022-12-01 23:59:01 +00:00
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
RefCountedThisInsideConstructorChecker.cpp Bug 1842871 - Add static check to forbid RefPtr(this) inside constructors r=sergesanspaille 2024-02-01 11:04:00 +00:00
RefCountedThisInsideConstructorChecker.h Bug 1842871 - Add static check to forbid RefPtr(this) inside constructors r=sergesanspaille 2024-02-01 11:04:00 +00:00
ScopeChecker.cpp
ScopeChecker.h
SprintfLiteralChecker.cpp
SprintfLiteralChecker.h
StmtToBlockMap.h Bug 1814134 - Fix clang plugin to build with recent clang trunk. r=firefox-build-system-reviewers,ahochheiden 2023-01-31 17:18:03 +00:00
ThirdPartyPaths.h
ThirdPartyPaths.py
ThreadAllows.py Bug 1790816 - Reformat build/ with isort. r=linter-reviewers,ahal DONTBUILD 2022-11-24 17:23:47 +00:00
ThreadAllows.txt Bug 1901197: do synchronous Content Analysis for clipboard operations on a background thread r=dlp-reviewers,ipc-reviewers,handyman 2024-07-04 01:24:53 +00:00
ThreadFileAllows.txt Bug 1772908 - [5/6] Implement WinHandleWatcher r=xpcom-reviewers,nika 2022-12-13 16:38:06 +00:00
TrivialCtorDtorChecker.cpp
TrivialCtorDtorChecker.h
TrivialDtorChecker.cpp
TrivialDtorChecker.h
Utils.h Bug 1893578 - Fix clang-plugin to build against clang trunk. r=sylvestre 2024-04-26 07:28:29 +00:00
VariableUsageHelpers.cpp Bug 1814134 - Fix clang plugin to build with recent clang trunk. r=firefox-build-system-reviewers,ahochheiden 2023-01-31 17:18:03 +00:00
VariableUsageHelpers.h
import_mozilla_checks.py Bug 1790816 - Reformat build/ with isort. r=linter-reviewers,ahal DONTBUILD 2022-11-24 17:23:47 +00:00
moz.build Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium 2024-10-30 11:05:25 +00:00
plugin.h