Emilio Cobos Álvarez
f8bf50c79e
Bug 1434326: Cleanup DiagnosticsMatcher constructor. r=mystor
...
Removing a bit of the ugly :)
MozReview-Commit-ID: ATf2b2oh1F1
--HG--
extra : rebase_source : da6e36533c2b2ec8820c728953b0c0544c5a085e
2018-01-30 17:40:00 +01:00
Emilio Cobos Álvarez
b012f3eebd
Bug 1434001: Handle lambdas in CanRunScriptChecker. r=mystor
...
Such a shame that the functionDecl() matcher doesn't handle them. I didn't find
a cleaner way to handle them, but I'm a 100% noob with AST matchers, so there
may be a more elegant way to do this.
MozReview-Commit-ID: 3HJQdFpN4hy
--HG--
extra : rebase_source : 27e48e6fb264499fd99e75eb54a22276758ab3e4
2018-01-29 22:08:15 +01:00
Kartikaya Gupta
805ae43226
Bug 1430645 - Fix win64 compilation of mozsearch-plugin. r=emilio
...
MozReview-Commit-ID: 6xrnnZeYmFy
--HG--
extra : rebase_source : dd2e92b7179ac35baf5c39ecfb70952a21b87141
2018-01-15 14:33:04 -05:00
Chris Peterson
37efe4d0e6
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Emilio Cobos Álvarez
06f30cacd7
Bug 1428864: Fix indexer plugin build with clang >= 5. r=kats
...
MozReview-Commit-ID: J1DKFkyXu0v
--HG--
extra : rebase_source : 81d6abfa400c9c606d4bef5adc4633a831a713aa
2018-01-08 20:21:53 +01:00
Julian Hector
378f6d9cfb
Bug 1398874 - Add static analysis to reject ParamTraits specializations for enum types. r=mystor
2017-12-05 10:26:41 -05:00
Kartikaya Gupta
ef331d62ea
Bug 1421768 - Fix overeager clang-tidy behaviour causing silent breakage in searchfox. r=me
...
This is an import of the change from https://github.com/mozsearch/mozsearch/pull/66
plus a correction in the README file. The change was reviewed in github.
MozReview-Commit-ID: A7gINlBubZ4
2017-11-30 16:52:51 -05:00
Nika Layzell
a124bfae77
Bug 1418465 - Add an opt-out to the MOZ_CAN_RUN_SCRIPT analysis, r=andi
...
MozReview-Commit-ID: 2YKncUdrT5p
2017-11-24 11:15:17 -05:00
Kartikaya Gupta
4cf3084e60
Bug 1282172 - Detect enum constants generated by macros when generating the Searchfox index. r=billm
...
MozReview-Commit-ID: 5RUsVSMTU8
--HG--
extra : rebase_source : 32f803de363aaaaa8df9c3d0eac31653ecb3de48
2017-11-18 20:05:53 -05:00
Bill McCloskey
dd8af9fa5c
Bug 1418434 - Fix return value warning in clang plugin (r=mystor)
...
MozReview-Commit-ID: 3p7Vs4hZtoO
2017-11-18 15:41:06 -08:00
Bill McCloskey
794104b1e1
Bug 1413738 - Mozsearch clang plugin (r=mystor)
...
MozReview-Commit-ID: 53zUQ0vDMpd
2017-11-16 15:06:32 -08:00
André Bargull
a83f81a2c5
Bug 1405993 - Part 1: Don't report warnings for sprintf calls in ICU. r=mystor
...
--HG--
extra : rebase_source : 2ad0906e64804f22615373f387d5db427aad8313
2017-11-01 11:47:59 -07:00
Chris Manchester
2a7d541658
Bug 1411712 - Move ldflags munging by the clang-plugin to moz.build r=mshal
...
MozReview-Commit-ID: JTZlXscUvlX
--HG--
extra : rebase_source : 96d7963429a362ac246b5ff93c828709168ef3cf
2017-11-02 11:47:48 -07:00
Chris Manchester
d43c1ef2dd
Bug 1403346 - Implement clang-plugin cxxflags in moz.build. r=glandium
...
MozReview-Commit-ID: 9zSryJcTRGl
2017-10-25 15:12:10 -07:00
Sylvestre Ledru
0d4a611a04
Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor
...
MozReview-Commit-ID: AXrQEjWzxvg
--HG--
extra : rebase_source : bf972fbb22648af2edbb756eb899ebddf8444dbc
2017-10-20 19:11:50 +02:00
Chris Manchester
fab07bc443
Bug 1386876
- Replace all uses of NO_VISIBILITY_FLAGS with a template and remove NO_VISIBILITY_FLAGS. r=glandium
...
MozReview-Commit-ID: 194U1WMCAM0
--HG--
extra : rebase_source : 365b68b0a1772d238ae9b84966e53dcd1197fd85
2017-05-01 18:12:35 -07:00
Chris Manchester
c0a229d4c3
Bug 1386876
- Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
...
MozReview-Commit-ID: FMEtb5PY7iP
--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Tristan Bourvon
ba0998ae31
Bug 1380423 - Add static-analysis to enforce strict rules on functions which can run scripts. r=mystor
...
MozReview-Commit-ID: GGSyq0z5msB
2017-08-08 19:48:53 +03:00
Tristan Bourvon
5dba5275b8
Bug 1390064 - Fix IgnoreTrivials in Utils.h by changing cast to cast_or_null r=mystor
...
MozReview-Commit-ID: E1uMaMRrCuO
--HG--
extra : amend_source : 813d6f884ccb1736ee161d8cedce260a0a7a2a90
2017-08-14 11:40:36 +02:00
Tristan Bourvon
cdc988e24a
Bug 1374024 - apply clang-format on some files from static analysis. r=mystor
...
MozReview-Commit-ID: COh2u6PIeY
2017-07-13 12:00:06 +02:00
Tristan Bourvon
2e77c99160
Bug 1374024 - add checker to prevent dangling pointers returned by method calls on temporaries. r=mystor
...
MozReview-Commit-ID: 9khNt59ONF
2017-07-05 16:14:21 +02:00
Carsten "Tomcat" Book
6f930b42b1
Backed out changeset 1a0693cc418b (bug 1374024) for bustage
2017-07-13 15:14:51 +02:00
Carsten "Tomcat" Book
67bab57920
Backed out changeset b4a4d8144010 (bug 1374024)
2017-07-13 15:14:36 +02:00
Tristan Bourvon
8b77b81430
Bug 1374024 - clang-format on some files from static analysis directory. r=mystor
...
MozReview-Commit-ID: COh2u6PIeY
2017-07-12 14:32:09 +02:00
Tristan Bourvon
473b245885
Bug 1374024 - add checker to prevent dangling pointers returned by method calls on temporaries. r=mystor
...
MozReview-Commit-ID: 9khNt59ONFE
2017-07-05 16:14:21 +02:00
Carsten "Tomcat" Book
2332473008
Backed out changeset 1a49d403a9a4 (bug 1374024) for bustage
2017-07-13 11:10:31 +02:00
Carsten "Tomcat" Book
24be189485
Backed out changeset 7f768b83c928 (bug 1374024)
2017-07-13 11:10:19 +02:00
Tristan Bourvon
14eb685f4f
Bug 1374024 - clang-format on some files from static analysis directory. r=mystor
...
MozReview-Commit-ID: COh2u6PIeY
2017-07-12 14:32:09 +02:00
Tristan Bourvon
20068f7ba3
Bug 1374024 - add checker to prevent dangling pointers returned by method calls
...
on temporaries. r=mystor
MozReview-Commit-ID: 9khNt59ONFE
2017-07-05 16:14:21 +02:00
Bruce Sun
e5cd1bc4de
Bug 1368948: [5/7] Suppress clang-plugin errors. r=Ehsan
...
MozReview-Commit-ID: 3uJHP2oerqK
2017-06-29 17:16:38 -07:00
Michael Layzell
2372ce0fc1
Bug 1339537
- Part 5: Produce better annotation reason diagnostics for implicit annotations, r=ehsan
...
This allows for the alignas(_) case to be distinguished from the
MOZ_NON_PARAM case through notes.
MozReview-Commit-ID: 4KIbzEKnmNU
2017-04-27 12:44:55 -04:00
Michael Layzell
221c4e65ae
Bug 1339537
- Part 2: Update the MOZ_NON_PARAM analysis to implicitly apply to alignas(_) types, r=ehsan
...
MozReview-Commit-ID: 2VDJRxxkVjV
2017-04-27 12:44:49 -04:00
Michael Layzell
71b5c1a204
Bug 1339537
- Part 1: Teach the clang plugin about ThirdPartyPaths.txt, r=ehsan
...
MozReview-Commit-ID: PS9x7Nh1h8
2017-04-27 12:44:46 -04:00
Kearwood Gilbert
eba3a06d5f
Bug 1356382 - Move jsoncpp library and ensure it is included even when crashreporter is not r=ted
...
MozReview-Commit-ID: 2g9sFP6QQCU
--HG--
rename : toolkit/crashreporter/jsoncpp/AUTHORS => toolkit/components/jsoncpp/AUTHORS
rename : toolkit/crashreporter/jsoncpp/GIT-INFO => toolkit/components/jsoncpp/GIT-INFO
rename : toolkit/crashreporter/jsoncpp/LICENSE => toolkit/components/jsoncpp/LICENSE
rename : toolkit/crashreporter/jsoncpp/NEWS.txt => toolkit/components/jsoncpp/NEWS.txt
rename : toolkit/crashreporter/jsoncpp/README.md => toolkit/components/jsoncpp/README.md
rename : toolkit/crashreporter/jsoncpp/include/json/allocator.h => toolkit/components/jsoncpp/include/json/allocator.h
rename : toolkit/crashreporter/jsoncpp/include/json/assertions.h => toolkit/components/jsoncpp/include/json/assertions.h
rename : toolkit/crashreporter/jsoncpp/include/json/autolink.h => toolkit/components/jsoncpp/include/json/autolink.h
rename : toolkit/crashreporter/jsoncpp/include/json/config.h => toolkit/components/jsoncpp/include/json/config.h
rename : toolkit/crashreporter/jsoncpp/include/json/features.h => toolkit/components/jsoncpp/include/json/features.h
rename : toolkit/crashreporter/jsoncpp/include/json/forwards.h => toolkit/components/jsoncpp/include/json/forwards.h
rename : toolkit/crashreporter/jsoncpp/include/json/json.h => toolkit/components/jsoncpp/include/json/json.h
rename : toolkit/crashreporter/jsoncpp/include/json/reader.h => toolkit/components/jsoncpp/include/json/reader.h
rename : toolkit/crashreporter/jsoncpp/include/json/value.h => toolkit/components/jsoncpp/include/json/value.h
rename : toolkit/crashreporter/jsoncpp/include/json/version.h => toolkit/components/jsoncpp/include/json/version.h
rename : toolkit/crashreporter/jsoncpp/include/json/writer.h => toolkit/components/jsoncpp/include/json/writer.h
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_reader.cpp => toolkit/components/jsoncpp/src/lib_json/json_reader.cpp
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_tool.h => toolkit/components/jsoncpp/src/lib_json/json_tool.h
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_value.cpp => toolkit/components/jsoncpp/src/lib_json/json_value.cpp
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_valueiterator.inl => toolkit/components/jsoncpp/src/lib_json/json_valueiterator.inl
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_writer.cpp => toolkit/components/jsoncpp/src/lib_json/json_writer.cpp
extra : rebase_source : 6996fe5fd4a8e704a138b568d636c1d5238f15b2
2017-04-19 14:41:03 -07:00
Dan Minor
f44831c17d
Bug 964133 - Build gflags; r=ted.mielczarik
...
This adds gflags to the list of ignored directories for clang static
analysis and adds "explicit" where required in mutex.h.
We also stop building a duplicate copy of snprintf for windows as our builds
already include a definition for it.
MozReview-Commit-ID: 4uMhTMvAKL0
--HG--
extra : rebase_source : d63d3797053c7720c725b3994cb3b2ca11bb191f
2017-03-28 15:46:57 -04:00
Ting-Yu Chou
646b846105
Bug 1335991 part 2 - Make sure the cxxRecordDecl has definition before checking anything. r=Ehsan
...
MozReview-Commit-ID: 6iePpR7lErc
--HG--
extra : rebase_source : 93ca2919fcda84537bb92e0fd1fc09de70a8db72
2017-03-08 15:43:06 +08:00
Michael Layzell
4689eec07a
Bug 1331434 - Part 1: Add an analysis to require a return after calls to annotated functions, r=ehsan
...
MozReview-Commit-ID: 7NqXap8FdSn
2017-03-07 19:06:48 -05:00
Michael Layzell
54f10d1dd6
Bug 1336510 - Part 1: Correct the RefCountedInsideLambda Check to complain about capturing and using this
without a backing strong reference, r=ehsan
...
MozReview-Commit-ID: 19jiqArKgxo
2017-03-01 15:09:44 -05:00
Michael Layzell
ea70d36157
Bug 1332078 - Ignore trivial nodes when checking for MOZ_NO_ADDREF_RELEASE_ON_RETURN calls, r=ehsan
...
MozReview-Commit-ID: JWBQXSTrlad
2017-01-19 15:27:22 -05:00
Michael Layzell
fb045a0ce3
Bug 1326289 - Fix BitWidth assertion failure in debug clang-plugin, r=ehsan
...
MozReview-Commit-ID: JNPc4CqEgPd
2017-01-19 15:26:49 -05:00
Jonathan Kew
3d478b5e48
Bug 1324739 - patch 2 - Enable use of sfntly in Skia-PDF to subset fonts. r=lsalzman,glandium
2017-01-07 22:20:25 +00:00
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