Phil Ringnalda
0255904b71
Backed out 2 changesets (bug 1280477) for depending on something backed out
...
CLOSED TREE
Backed out changeset 17fe7328e60a (bug 1280477)
Backed out changeset d52564553d5e (bug 1280477)
2016-09-15 19:46:09 -07:00
Gabriele Svelto
05a2a1c436
Bug 1280477 - Import jsoncpp into the source tree and integrate it into the build r=ted
2016-09-15 17:56:21 +02:00
Michael Layzell
06aa779237
Bug 1018486 - Part 10: Add an analysis to reject the kungFuDeathGrip pattern on function results and member variables, r=ehsan
...
MozReview-Commit-ID: K8rehjAxIA6
2016-09-07 10:50:48 -04:00
Bob Owen
b6f3a14027
Bug 1287426 Part 1: Ignore clang warnings for implicit conversions in Chromium sandbox code. r=ehsan
...
MozReview-Commit-ID: Bq0PocdYdm9
2016-09-06 08:57:20 +01:00
Paul Bignier
49e7c486b2
Bug 1287458 - clang-plugin - style consistency with LLVM. r=mystor
...
MozReview-Commit-ID: 41uSgifPWRw
2016-08-29 17:17:13 +02:00
Michael Layzell
5290a70373
Bug 1232038 - Fix assertion errors in the clang plugin, r=ehsan
2016-08-05 13:54:09 -04:00
Michael Layzell
3625ba16d9
Bug 1244825 - Detect classes with two superclasses with mRefCnt members, r=ehsan
2016-08-05 13:51:35 -04:00
Michael Layzell
82be508959
Bug 1281935 - Part 1: Relax raw pointer inside lambda analysis, r=ehsan
2016-08-02 15:27:43 -04:00
Andi-Bogdan Postelnicu
4363905f64
Bug 1283395 - clang-plugin - add an error if we encounter in MOZ_ASSERT assignment instead of logical expression. r=mystor
...
MozReview-Commit-ID: AybStmi6MIH
2016-07-19 09:59:22 +03:00
Michael Layzell
a56a0683ab
Bug 1209227 - Part 1: Make the MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS analysis handle packs more correctly, r=ehsan
2016-05-19 09:34:01 -04:00
Nicholas Nethercote
93e01e245e
Bug 1267550 (part 1) - Rename MOZ_MUST_USE as MOZ_MUST_USE_TYPE. r=ehsan.
...
This will allow MOZ_MUST_USE to be used for a different and more common case.
MozReview-Commit-ID: 4dQsdWjJfc6
2016-04-27 08:22:10 +10:00
Ehsan Akhgari
6c451a4553
Bug 1264827 - Part 2: Add a static analysis to help check Rust wrapped C++ classes for members which are unsafe to memmove; r=mystor
2016-04-18 15:43:46 -04:00
Ehsan Akhgari
eb919a436f
Bug 1264827 - Part 1: Rename the existing code to make it clear it's checking for template args; r=mystor
2016-04-18 15:43:44 -04:00
Michael Layzell
7f8e3cd6ae
Bug 1254247 - Ignore implicit Expr wrappers due to temporary cleanup in MUST_USE analysis, r=ehsan
2016-03-11 18:29:47 -05:00
Ehsan Akhgari
8e793f9fae
Bug 1254807 - Disambiguate ArrayType for clang trunk static analysis builds; r=jrmuizel
2016-03-09 08:36:15 -05:00
Ehsan Akhgari
9fd2ba1f2e
Bug 1251587 - Add Windows support to the clang plugin; r=jrmuizel
2016-02-26 16:14:12 -05:00
Ehsan Akhgari
eead3a2429
Reformat clang-plugin.cpp using clang-format, no bug
2016-02-05 10:29:39 -05:00
Ehsan Akhgari
37c4261db2
Bug 1245269 - Part 2: Add a configure check for the existence of the new AST Matcher API names; r=glandium
2016-02-05 10:29:39 -05:00
Ehsan Akhgari
d9d9d8dea4
Bug 1245269 - Part 1: Make clang-plugin build with clang 3.8 and newer; r=mystor
2016-02-05 10:29:39 -05:00
Carsten "Tomcat" Book
878a673d20
Backed out changeset b542e3e8bb79 (bug 1245269) for bustage on a CLOSED TREE
2016-02-03 15:47:02 +01:00
Carsten "Tomcat" Book
301d18bd2f
Backed out changeset ad3e81d12128 (bug 1245275)
2016-02-03 15:46:47 +01:00
Carsten "Tomcat" Book
d69d8ecdbf
Backed out changeset 70ca2c2cb7d9
2016-02-03 15:46:46 +01:00
Ehsan Akhgari
9aa605a400
Reformat clang-plugin.cpp using clang-format, no bug
2016-02-03 09:19:18 -05:00
Ehsan Akhgari
5196cdf55e
Bug 1245275 - Fix "Name is not a simple identifier" assertions in clang-plugin; r=mystor
...
Some methods may not have names. NamedDecl::getName() already returns
an empty string for those, but it also asserts the consumer is asking
for something that makes sense.
2016-02-03 09:19:18 -05:00
Ehsan Akhgari
1b9af00b1f
Bug 1245269 - Make clang-plugin build with clang 3.8 and newer; r=mystor
2016-02-03 09:19:18 -05:00
Michael Layzell
ed7706b192
Bug 1242789 - Allow lambdas to capture raw pointers to refcounted objects by reference, r=ehsan
2016-01-26 13:32:41 -05:00
Michael Layzell
68ec23bd03
Bug 1226376 - Part 1: Allow non-trivial constexpr constructors in MOZ_TRIVIAL_CTOR_DTOR classes, r=ehsan
2016-01-08 15:34:24 -05:00
Randell Jesup
ef0b4e5d3b
Bug 1198458: Rollup of changes previously applied to media/webrtc/trunk/webrtc and fixes to those rs=jesup r=froyd,jib,bwc,jesup,gcp,sotaro,pkerr,pehrsons
...
Landing as one rolled-up patch to avoid breaking regression tests, and in
keeping with previous WebRTC imports. Broken out parts that needed review
are on the bug.
2015-11-18 15:03:25 -05:00
Jed Davis
c934ad1413
Bug 1201314 - Make most of std:: non-memmovable for static analysis purposes. r=mystor r=ehsan
...
For simplicity, the exceptions are hard-coded in the plugin: currently
std::pair and std::atomic.
2015-10-14 18:13:00 +02:00
Michael Layzell
ebfcf79933
Bug 1214037 - Don't consider the result of an assignment expression MOZ_MUST_USE, r=ehsan
2015-10-14 16:06:36 -04:00
Michael Layzell
b691311ead
Bug 1208814 - Part 1: Add an analysis to prevent default copy constructors from being called on refcounted objects, r=ehsan
2015-10-03 11:23:52 -04:00
Botond Ballo
e6e0666adb
Bug 1209330 - Get the clang plugin to compile with clang 3.7 and warnings-as-errors. r=mystor
2015-09-28 18:52:44 -04:00
Michael Layzell
e7bb823efa
Bug 1201190 - Part 1: Add an analysis to prevent a type from being allocated in a temporary, r=ehsan
2015-09-12 16:53:31 -04:00
Michael Layzell
7c2b524757
Bug 1156802 - Part 1: Add an analysis which prohibits explicit move constructors, r=ehsan
2015-09-12 12:34:44 -04:00
Jed Davis
3779e46161
Bug 1201309 - Make MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS work with MOZ_NON_MEMMOVABLE. r=ehsan f=mystor
...
This patch migrates moz_non_memmovable into the CustomTypeAnnotation
framework; bonus side-effects are more helpful error messages and less
code duplication.
2015-09-10 08:23:53 -07:00
Botond Ballo
f4dbd60c8b
Bug 1170388 - Removed an outdated workaround for old clang versions in the static analysis plugin. r=mystor
2015-09-04 12:37:33 -04:00
Michael Layzell
12d36559e8
Bug 1200413 - Part 1: Re-write RefCountedInsideLambdaChecker to use captures instead of checking for DeclRef instances, r=ehsan
2015-09-01 18:20:46 -04:00
Ehsan Akhgari
b59512272b
Run clang-format on clang-plugin.cpp, no bug
2015-08-18 23:09:24 -04:00
Michael Layzell
6067c848fe
Bug 1195960 - Correct naming of CustomTypeAnnotation::reportErrorIfAbsent, r=me
2015-08-18 20:24:30 -04:00
Michael Layzell
5df97f1256
Bug 1192130 - Part 1: Add MOZ_NON_AUTOABLE to restrict using auto in place of certain types, r=ehsan
2015-08-14 17:33:52 -04:00
Michael Layzell
ebe65f6d1b
Bug 1192271 - Add helper method CustomTypeAnnotation::reportErrorIfAbsent to clang-plugin, r=ehsan
2015-08-14 17:33:50 -04:00
Michael Layzell
ac1c4dbac1
Bug 885515 - Part 1: Add an analysis for detecting non-heap allocations of MOZ_HEAP_CLASS, r=ehsan
2015-08-09 12:42:10 -04:00
Michael Layzell
4c04d1c2fe
Bug 1192015 - Refactor allocation analysis in clang plugin to better allow adding new analyses, and support detecting temporary value allocations, r=ehsan
2015-08-09 12:42:09 -04:00
Michael Layzell
d973b18d3b
Bug 1187073 - Add the MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS annotation to clang-plugin. r=ehsan
2015-07-24 12:52:00 -04:00
Michael Layzell
cd50a9e8b9
Bug 1187486 - Update the clang plugin to detect templated implicit constructors; r=ehsan
2015-07-30 20:31:11 -04:00
Ryan VanderMeulen
8488d9d076
Backed out changeset 3e78fb4512a6 (bug 1187486) for static analysis failures.
2015-07-30 14:47:52 -04:00
Michael Layzell
394ce7a14b
Bug 1187486 - Update the clang plugin to detect templated implicit constructors; r=ehsan
2015-07-30 14:03:18 -04:00
Michael Layzell
31bdacbfe6
Bug 602122 - Add a static analysis to find XPCOM classes with duplicate mRefCnt members; r=ehsan
2015-07-30 01:05:06 -04:00
Boris Zbarsky
408d216981
Back out revision 6d94504b602d (bug 602122).
2015-07-28 17:19:46 -04:00
Michael Layzell
aba103c7e0
Bug 602122 - Add a static analysis to find XPCOM classes with duplicate mRefCnt members; r=ehsan
2015-07-28 16:55:20 -04:00