Граф коммитов

130 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Chou 8703336152 Bug 1322462 - Ignore the is-NAN testings in libANGLE that clang plugin reports on Windows. r=Ehsan
MozReview-Commit-ID: 9pbUpA54dNq

--HG--
extra : rebase_source : 07b8bc1bfeec03fc486632dd56a7aa501b9fa8aa
2016-12-08 22:29:53 +08:00
Ting-Yu Chou 4118473061 Bug 1316545 part 6 - Suppress the warning of invalid noreturn. r=ehsan
MozReview-Commit-ID: CXt1DezWsgL

--HG--
extra : histedit_source : 8ad1d02a9abc00722d870810fc6c2e20744eb529
2016-11-25 16:22:00 +08:00
Ting-Yu Chou a008dced39 Bug 1316545 part 5 - Make misuseX() concrete such that the AST is computed even if it is unused. r=mystor
MozReview-Commit-ID: 4kkWJjvATzC

--HG--
extra : histedit_source : dedc8935c4dfe513f2a266e31c34eab03f897c71
2016-11-24 11:48:33 +08:00
Ting-Yu Chou 9786194bf9 Bug 1316545 part 3 - Remove LLVM_EXPORT_REGISTRY which has been dropped in r277806. r=ehsan
MozReview-Commit-ID: 1VlIu3FQOhH

--HG--
extra : histedit_source : 42c12bbcdadc99908bf0a5b32dbac1103e2881e2
2016-11-16 15:25:24 +08:00
Nathan Froyd 2ebbd09068 Bug 1320752 - remove mozilla/Function.h; r=gerald
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Ehsan Akhgari 718b18d849 Bug 1319903 - Part 3: Revert to using Expr::IgnoreImplicit, pushed on a CLOSED TREE 2016-11-23 18:14:33 -05:00
Ehsan Akhgari 88121ac8dd Bug 1319903 - Part 2: Rename IgnoreImplicit to IgnoreTrivials 2016-11-23 18:00:01 -05:00
Ehsan Akhgari bc354ecd55 Bug 1319903 - Part 1: Ignore ParenExpr's when ignoring trivial expressions; r=mystor 2016-11-23 18:00:00 -05:00
Ehsan Akhgari c7a9a38938 Bug 1319330 - Ignore system headers for the implicit constructor check; r=mystor 2016-11-23 13:25:25 -05:00
André Bargull fb59f826a3 Bug 1299615 - Part 2: Skip ICU source directory in Clang build plugin when searching for implicit conversion constructors. r=Waldo, r=mystor 2016-11-03 05:45:39 -07:00
Tooru Fujisawa 6a21d20cc6 Bug 1290337 - Part 22.1: Do not check deleted function parameter. r=ehsan 2016-10-18 16:45:58 +09:00
Tooru Fujisawa 19d7f7bb03 Bug 1290337 - Part 22: Add moz_non_param annotation. r=ehsan,jwalden 2016-09-11 18:23:11 +09:00
Gabriele Svelto 14c508ef9b Bug 1280477 - Import jsoncpp into the source tree and integrate it into the build r=ted 2016-10-13 11:19:05 +02:00
Andi-Bogdan Postelnicu e0d7fa5720 Bug 1307702 - clang-plugin - static analysis to reject ussage of MOZ_REQUIRED_BASE_METHOD on non-virtual base methods. r=mystor
MozReview-Commit-ID: 9G79Wm5fbHc
2016-10-06 14:02:20 +03:00
Andi-Bogdan Postelnicu d447f00057 Bug 1230311 - clang-plugin - static analysis to enforce that if a method is overridden also base method is called. r=mystor
MozReview-Commit-ID: 1JYzYZZOh3W
2016-10-06 13:49:00 +03:00
Tom Schuster 3cc61134b1 Bug 1302163 - Show an error for [v]snprintf with literals using the clang plugin. r=ehsan 2016-10-04 17:57:50 +02:00
Michael Layzell 9c75f35e6a 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 fe52c7727a 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 31295dc155 Bug 1287458 - clang-plugin - style consistency with LLVM. r=mystor
MozReview-Commit-ID: 41uSgifPWRw

--HG--
extra : amend_source : 2eaaf8d04d4d69cee0fd8234508811545b505ecd
2016-08-29 17:17:13 +02:00
Michael Layzell 7bd5ff6f30 Bug 1232038 - Fix assertion errors in the clang plugin, r=ehsan 2016-08-05 13:54:09 -04:00
Michael Layzell 44ec98cd05 Bug 1244825 - Detect classes with two superclasses with mRefCnt members, r=ehsan 2016-08-05 13:51:35 -04:00
Michael Layzell 652e9475bc Bug 1281935 - Part 1: Relax raw pointer inside lambda analysis, r=ehsan 2016-08-02 15:27:43 -04:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Andi-Bogdan Postelnicu de0b1d9c7a Bug 1283395 - clang-plugin - add an error if we encounter in MOZ_ASSERT assignment instead of logical expression. r=mystor
MozReview-Commit-ID: AybStmi6MIH

--HG--
extra : rebase_source : 6379599db347975436181c3807893f939f624b24
2016-07-19 09:59:22 +03:00
Michael Layzell 6dd5afa601 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 a5c843fe5f 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

--HG--
extra : rebase_source : 390ab56ef83d71eb6d28759a0195a79a78b153bd
2016-04-27 08:22:10 +10:00
Ehsan Akhgari 09ce2152c7 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 18c66f1103 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 c4c75e9287 Bug 1254247 - Ignore implicit Expr wrappers due to temporary cleanup in MUST_USE analysis, r=ehsan 2016-03-11 18:29:47 -05:00
Mike Hommey cbb8f056e6 Bug 1255540 - Properly run the clang-plugin tests. r=gps 2016-03-11 12:22:24 +09:00
Ehsan Akhgari fca32e35f3 Bug 1254807 - Disambiguate ArrayType for clang trunk static analysis builds; r=jrmuizel 2016-03-09 08:36:15 -05:00
Andrea Marchesini 856342a4be Bug 1253187 - Remove some warnings in clang-plugin tests, r=ehsan 2016-03-03 18:31:12 +01:00
Ehsan Akhgari 2218f47481 Bug 1251587 - Add Windows support to the clang plugin; r=jrmuizel 2016-02-26 16:14:12 -05:00
Ehsan Akhgari b7dad904d3 Bug 1246334 - Add support for building the clang plugin using clang-cl; r=glandium 2016-02-26 07:29:48 -05:00
Ehsan Akhgari b49b986147 Reformat clang-plugin.cpp using clang-format, no bug 2016-02-05 10:29:39 -05:00
Ehsan Akhgari ef18719332 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 e20df1a14b 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 41a734ee6d Backed out changeset b542e3e8bb79 (bug 1245269) for bustage on a CLOSED TREE 2016-02-03 15:47:02 +01:00
Carsten "Tomcat" Book f3a1230220 Backed out changeset ad3e81d12128 (bug 1245275) 2016-02-03 15:46:47 +01:00
Carsten "Tomcat" Book ad9044964a Backed out changeset 70ca2c2cb7d9 2016-02-03 15:46:46 +01:00
Ehsan Akhgari 0c9cd58411 Reformat clang-plugin.cpp using clang-format, no bug 2016-02-03 09:19:18 -05:00
Ehsan Akhgari e04c60ccf0 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 fc3fe4e32e Bug 1245269 - Make clang-plugin build with clang 3.8 and newer; r=mystor 2016-02-03 09:19:18 -05:00
Michael Layzell 299ac653c2 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 2b12d59585 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 9c83bc8f96 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 f377ca14ea 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 24a4505d6d 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 977f9a33ea 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
Ehsan Akhgari f8824f7e03 Bug 1182727 - Part 15: Build the clang-plugin C test in C11 mode; r=mystor
For some mysterious reason, the plugin crashes when loaded under
the -std=gnu89 that we use by default for C.
2015-10-02 11:09:23 -04:00