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

142 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari 442fce9f66 Fix a non-unified build bustage, no bug 2016-12-29 22:06:11 -05:00
Ehsan Akhgari 9bf0b6bb08 Bug 1326229 - Move the include for FrontendPluginRegistry.h to MozCheckAction.cpp; r=mystor 2016-12-29 13:22:22 -05:00
Ehsan Akhgari 880f7fac36 Bug 1324328 follow-up: Make hasCustomAnnotation's second argument a StringRef 2016-12-28 21:20:43 -05:00
Ehsan Akhgari 65c49d82e4 Bug 1324320 follow-up: Fix a mistake that breaks the build 2016-12-28 21:19:30 -05:00
Ehsan Akhgari 21f0768c95 Bug 1324328 - Remove MozChecker and some unused code; r=mystor 2016-12-28 21:14:51 -05:00
Ehsan Akhgari 2f3ebccb92 Bug 1324325 - Port the muse-use check to the clang-tidy compatible framework; r=mystor 2016-12-28 21:14:49 -05:00
Ehsan Akhgari cd93cff857 Bug 1324320 - Port the must-override check to the clang-tidy compatible framework; r=mystor 2016-12-28 21:14:39 -05:00
Ehsan Akhgari 371365724c Bug 1324315 - Refactor the clang plugin to use a framework similar to clang-tidy's; r=mystor 2016-12-28 20:47:47 -05:00
Ehsan Akhgari 3ddb346120 Bug 1324239 - Refactor the clang plugin; r=mystor
This patch mostly just splits up clang-plugin.cpp into separate files for
different classes or helpers.
2016-12-28 20:17:48 -05:00
Ehsan Akhgari 18f30a60a6 Bug 1325694 - Mark the MSVC specific std::atomic base classes as memmovable for static analysis; r=froydnj 2016-12-23 21:03:21 -05:00
Ting-Yu Chou 4e68f1ffa7 Bug 1322465 part 8 - Use explicit/MOZ_IMPLICIT for the unary constructors in mfbt/. r=Ehsan
MozReview-Commit-ID: 2TpfrAaAIuu

--HG--
extra : rebase_source : 4fb5af1beb94c059cbadfaf27fe3949ae8b85efb
2016-12-16 15:57:15 +08:00
Ting-Yu Chou 97d61711ed Bug 1322465 part 2 - Skip external libraries for implicit conversion checking. r=Ehsan
MozReview-Commit-ID: ABmaHC9gGJf

--HG--
extra : rebase_source : 501c726e7382085c95d57f84aae9b5f9dcebae34
2016-12-16 15:46:11 +08:00
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