summaryrefslogtreecommitdiff
path: root/compilerplugins
AgeCommit message (Collapse)AuthorFilesLines
2015-07-08loplugin:unusedmethods vclNoel Grandin2-4/+24
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
2015-07-07loplugin:unusedmethods packageNoel Grandin2-9/+12
Change-Id: I19d6bbb9288d72b99d1023b4983b1c3fff7570e8 Reviewed-on: https://gerrit.libreoffice.org/16811 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-07loplugin:unusedmethods ucbNoel Grandin2-17/+38
Change-Id: Idc0ca78da8ebbdfe8489eee92a1167eb1bd9722f Reviewed-on: https://gerrit.libreoffice.org/16794 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-06No MAP_POPULATE on Mac OS XStephan Bergmann1-1/+1
Change-Id: I6a0b8bbeec94fe19b609542550f9cce783daef20
2015-07-06new loplugin: unusedmethodsNoel Grandin3-0/+420
Change-Id: I72574e354aadf357d6d8181a514efb4783e79e28
2015-07-06improve the returnbyref lopluginNoel Grandin1-21/+35
Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb Reviewed-on: https://gerrit.libreoffice.org/16731 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-26loplugin:stringconstant: handle OUString+=OUString(literal)Stephan Bergmann1-0/+6
Change-Id: I85a88eaca89bb2c89a3ad374be09547f9b2ed78f
2015-06-26loplugin:stringconstant: OUStringLiteral1 can handle NUL literals just fineStephan Bergmann1-3/+3
Change-Id: I9b31b01a34a10d5bd329dccd39da83500d6fd2c7
2015-06-25...in case this ever gets used with an unsigned APSInt of bitwidth < 7Stephan Bergmann1-1/+1
Change-Id: Ic9436529321e523edd25d0f83ac09a0e22a44013
2015-06-25my previous fix triggered an assert in clangNoel Grandin1-1/+1
Change-Id: I67b8dec0d49032134a1b588363e72fa88f5993f7
2015-06-25error: invalid operands to binary expression ('llvm::APSInt' and 'int')Noel Grandin1-1/+1
Change-Id: I1a509ce133954a31a504dcc178687427f85f4c1c
2015-06-25loplugin:stringconstant: Flag more inefficienciesStephan Bergmann1-0/+133
Change-Id: I47726315f12ef05714bea248d79cc503fb99b23c
2015-06-22Add variadic PartialWeakComponentImplHelper, remove need for implbase_var.hxxStephan Bergmann1-2/+1
Change-Id: Iad3417822b2ab3afb75da09c311a0bf07af5e2e4
2015-06-22Fix for BUILDDIR != SRCDIRStephan Bergmann1-1/+1
Change-Id: I3ea2a0a6d8f54afcc1959b54c36f90bb849995b4
2015-06-15Remove loplugin:pointertoboolStephan Bergmann1-167/+0
For one, intended warnings about pointers as function call arguments being implicitly converted to bool are also covered (along with more) by loplugin:implicitboolconversion. For another, this code generates false positives inside lambdas (where the check for CallExpr eventually always hits in the PointerToBool::ignoreConversion recursion), see 762e90ffa0cd5f85dadd9bad93391d105e60e418 "vcl: loplugin:pointertobool." Change-Id: I55eaa668c1b4a2c66a5a015b2414bf161f796f2a
2015-06-15fix vclwidget plugin warning messageNoel Grandin1-1/+1
Change-Id: Iac6450ed3a7742022d97b0121165f992b483eea0
2015-06-15cppcheck:unreadVariableNoel Grandin1-6/+0
Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522
2015-06-12New VclPtr clang plugin to catch potential problems.Noel Grandin1-0/+19
Change-Id: I2571c4384e4c2dbe411e171325e10d57a0afe5a0 Reviewed-on: https://gerrit.libreoffice.org/16235 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-06-09loplugin:unreffun: workaround for visibility-adding redeclsStephan Bergmann1-0/+11
Change-Id: Ic18b44942f4fe02083c0e8167e8c8d4205e66abf
2015-06-09forgot to add this - the python file for the unnnecessaryvirtualNoel Grandin1-0/+77
clang plugin Change-Id: I1392ad1834dc590cec12e379d6478c42b1bbbc20
2015-06-09loplugin:unnecessaryvirtualsNoel Grandin2-31/+186
Improve the plugin a little. Create a python script to process the output. Run it again. Change-Id: I05c21d8a21c8f4243af739c412fda0a521f9b5f0
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann1-8/+0
Change-Id: Ic714e7f887b421e491544b7c985351077170344d
2015-06-02Enable loplugin:loopvartoosmallStephan Bergmann1-4/+4
Change-Id: I114320ebaab9223b82b4fd9710c3cc221a836645
2015-06-02loplugin:loopvartoosmallNoel Grandin1-1/+1
Change-Id: Ib4def3435eab4625645c5afe3b151f9f430564ac
2015-06-02loplugin:cstylecast: deal with those that are (technically) const_castStephan Bergmann1-13/+104
Change-Id: Ice7bbdea1d0df0a92f2e1b38f033adaff2fb8b07
2015-06-01loplugin:loopvartoosmallNoel Grandin1-1/+1
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
2015-05-29loplugin:redundantcast: const_cast to same typeStephan Bergmann1-0/+19
Change-Id: I1abdc2ab0b145e12f7fb00db529f52c11e4d7cfd
2015-05-29loplugin:loopvartoosmallNoel Grandin1-1/+1
Change-Id: I5518e40a30bdad53470cc52b59eff04ab6d873d4
2015-05-29loplugin:loopvartoosmallNoel Grandin1-5/+6
Change-Id: Icbe68b31d4ab04ca3cd9f572e3598413946a75c7
2015-05-29loplugin:loopvartoosmallNoel Grandin1-2/+2
Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
2015-05-29loplugin:loopvartoosmallNoel Grandin1-12/+11
Change-Id: I1e9768c08af0bc7caac6a39c13842ee9d8ad962c
2015-05-28new clang plugin: loopvartoosmallNoel Grandin1-0/+119
Idea from bubli - look for loops where the index variable is of such size that it cannot cover the range revealed by examining the length part of the condition. So far, I have only run the plugin up till the VCL module. Also the plugin deliberately excludes anything more complicated than a straightforward incrementing for loop. Change-Id: Ifced18b01c03ea537c64168465ce0b8287a42015
2015-05-22loplugin:constantfunctionNoel Grandin1-1/+6
Change-Id: I7cb5b0c2cf9ade557173ca596ea5d42d853ff448
2015-05-19vclwidget plugin: check for memcpy of VclPtrNoel Grandin1-0/+108
Change-Id: I873d3efbb7b78d0efe5d586b378d024ee22ac77e
2015-05-14loplugin rendercontext: No param => no check.Jan Holesovsky1-0/+2
Change-Id: I30c8624fa00338c9cca7a054e08eacfc4fd6a630
2015-05-14loplugin: rendercontext, limit output for nowNoel Grandin1-0/+7
we are only currently interested in methods where the first parameter is RenderContext Change-Id: Ic505541c93a765e56e920415d3665b7aa4abb10b
2015-05-13check for static fields that needs to be wrapped in VclPtrNoel Grandin1-14/+19
Change-Id: I6135cfd9aa70f90d58150733b6b48525e5c347c8
2015-05-12loplugin:redundantcast: reinterpret_cast to void*Stephan Bergmann1-30/+44
Change-Id: I947b49cfb15f0e7d6ddfaae386656c70e4bd48ba
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann1-4/+5
Change-Id: I16fdb3a6e92c854f4143b5afd19d33818735222b
2015-05-11Suppress loplugin:implicitboolconversion warnings in Objective-C codeStephan Bergmann1-5/+7
...(but not Objective-C++ code) where BOOL (aka unsigned char) expressions are routinely implicitly converted to int per the C rules, e.g., as operands of &&. Change-Id: I17e5dae9f065aaa814850196b1ef31f8fb07c99b
2015-05-11sw,sc,sd,starmath: convert to vcl::RenderContextNoel Grandin1-8/+46
Change-Id: I5d0a3b8ed1c49ba2806e0fa528d908da45afd58c
2015-05-08lopluign:staticmethods: Handle DECL_LINKStephan Bergmann1-9/+0
Change-Id: Ib27854a8470f3ff5b208cb949a7bd02f2a86c969
2015-05-08lopluign:staticmethods: Improve diagnosticsStephan Bergmann1-1/+8
Change-Id: I6079f387a697c5fe794655e455a19d0cb44b96bc
2015-05-08Enable loplugin:staticmethodsStephan Bergmann1-1/+1
Change-Id: Ic0062eddebf9225d298569bb4900047a0ee0b112
2015-05-08lopluign:implicitboolconversion: warn about conversion from sal_Bool etc., tooStephan Bergmann1-46/+85
Change-Id: I5bc23a2b599742c579ad82c1b1f68df130ac426b
2015-05-07workaround for clang3.2 in vclwidgets clang pluginNoel Grandin1-7/+16
Change-Id: I7ac67dd14d14a93fe163febe0f18df56dd613376
2015-05-07fix commentNoel Grandin1-1/+1
Change-Id: Ifa59bdc4bfd80fe3100ba5f1ac8119ad990e3936
2015-05-07More of the sameTor Lillqvist1-2/+2
Change-Id: I2e735a3534a7f374a550d5072359aca70494a547
2015-05-07It's its, not it'sTor Lillqvist1-1/+1
Change-Id: Ic108625cdc8376095dfd19184ecad39bfeccd160
2015-05-07new clang plugin: rendercontextNoel Grandin1-0/+93
to help with converting calls to OutputDevice to pass via vcl::RenderContext. Change-Id: I4b49d2f5e4afca46898d2a7c7ed33cbf5577e664