gecko-dev/build/clang-plugin
David Major 401c1780fa Bug 1583138 - Prepare clang-tidy for clang-9 r=andi
In clang 9, the signature of `registerPPCallbacks` changed and it no longer provides us a `CompilerInstance` [0]. I couldn't find a way to reach the `CompilerInstance` from the new structures, so I've inserted a level into the class hierarchy that mimics the old functionality.

With this patch, clang-tidy compiles with either clang-8 or clang-9, so we can land this independently in preparation for bug 1573211.

[0] For reference: the new signature was introduced in bbc89dcb29, the old overload was marked deprecated in e9087fe75c and removed in ee737a84d7.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 17:27:02 +00:00
..
mozsearch-plugin Bug 1511025 - Correct searchfox template traversal. r=emilio 2019-09-05 07:17:57 +00:00
tests 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
.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
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
BaseCheck.h Bug 1583138 - Prepare clang-tidy for clang-9 r=andi 2019-09-24 17:27:02 +00:00
CanRunScriptChecker.cpp Bug 1539016 part 2. Teach MOZ_CAN_RUN_SCRIPT analysis about conditional operators. r=andi 2019-03-26 20:56:36 +00:00
CanRunScriptChecker.h
Checks.inc 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
ChecksIncludes.inc 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
CustomAttributes.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
CustomAttributes.h Bug 1487622 - Refactor the clang plugin wrt attributes r=andi 2018-09-18 13:03:33 +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 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
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 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
DanglingOnTemporaryChecker.h
DiagnosticsMatcher.cpp Bug 1583138 - Prepare clang-tidy for clang-9 r=andi 2019-09-24 17:27:02 +00:00
DiagnosticsMatcher.h
ExplicitImplicitChecker.cpp Bug 1483953 - Add a FixIt hint for the ExplicitImplicitChecker analysis. r=Ehsan 2018-08-24 14:11:26 +00:00
ExplicitImplicitChecker.h
ExplicitOperatorBoolChecker.cpp Bug 1557313 - Update ExplicitOperatorBoolChecker.cpp for clang trunk changes r=andi 2019-06-06 15:42:25 +00:00
ExplicitOperatorBoolChecker.h
KungFuDeathGripChecker.cpp Bug 1514801 - refactor clang based checker - KungFuDeathGripChecker. r=glandium 2019-07-17 05:05:30 +00:00
KungFuDeathGripChecker.h
LoadLibraryUsageChecker.cpp Bug 1511889 - Update clang-plugin LoadLibraryUsageChecker to use getBeginLoc. r=froydnj 2018-12-06 16:34:13 +00:00
LoadLibraryUsageChecker.h
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 1501903 - Cache the results of inThirdPartyPath. r=andi 2018-10-25 21:21:36 +00:00
MozillaTidyModule.cpp
MustOverrideChecker.cpp Bug 1583138 - Prepare clang-tidy for clang-9 r=andi 2019-09-24 17:27:02 +00:00
MustOverrideChecker.h Bug 1583138 - Prepare clang-tidy for clang-9 r=andi 2019-09-24 17:27:02 +00:00
MustReturnFromCallerChecker.cpp 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
MustReturnFromCallerChecker.h
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
NaNExprChecker.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
NaNExprChecker.h
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
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
NoAutoTypeChecker.cpp
NoAutoTypeChecker.h
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
NoExplicitMoveConstructorChecker.cpp
NoExplicitMoveConstructorChecker.h
NonMemMovableMemberChecker.cpp
NonMemMovableMemberChecker.h
NonMemMovableTemplateArgChecker.cpp
NonMemMovableTemplateArgChecker.h
NonParamInsideFunctionDeclChecker.cpp Bug 1487622 - Refactor the clang plugin wrt attributes r=andi 2018-09-18 13:03:33 +00:00
NonParamInsideFunctionDeclChecker.h
OverrideBaseCallChecker.cpp Bug 1487622 - Refactor the clang plugin wrt attributes r=andi 2018-09-18 13:03:33 +00:00
OverrideBaseCallChecker.h
OverrideBaseCallUsageChecker.cpp
OverrideBaseCallUsageChecker.h
ParamTraitsEnumChecker.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
ParamTraitsEnumChecker.h
RecurseGuard.h
RefCountedCopyConstructorChecker.cpp
RefCountedCopyConstructorChecker.h
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
ScopeChecker.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
ScopeChecker.h
SprintfLiteralChecker.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
SprintfLiteralChecker.h
StmtToBlockMap.h
ThirdPartyPaths.h Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs 2019-07-08 09:27:47 +00:00
ThirdPartyPaths.py Bug 1577726 - Move generated directories into a dedicated file (Generated.txt) from ThirdPartyPaths.txt r=ahal 2019-09-05 14:24:21 +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
TrivialDtorChecker.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
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 1536825. Fix the interaction of ignoreTrivials and typechecks in MOZ_CAN_RUN_SCRIPT analysis. r=andi 2019-03-21 11:50:55 +00:00
VariableUsageHelpers.cpp Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs 2019-07-08 09:27:47 +00:00
VariableUsageHelpers.h
import_mozilla_checks.py Bug 1577726 - Move generated directories into a dedicated file (Generated.txt) from ThirdPartyPaths.txt r=ahal 2019-09-05 14:24:21 +00:00
moz.build Bug 1577726 - Move generated directories into a dedicated file (Generated.txt) from ThirdPartyPaths.txt r=ahal 2019-09-05 14:24:21 +00:00
plugin.h Bug 1583138 - Prepare clang-tidy for clang-9 r=andi 2019-09-24 17:27:02 +00:00