Stephan Bergmann
b4f9145fb4
Enable loplugin:loopvartoosmall
...
Change-Id: I114320ebaab9223b82b4fd9710c3cc221a836645
2015-06-02 18:21:58 +02:00
Noel Grandin
6ef9f7e202
loplugin:loopvartoosmall
...
Change-Id: Ib4def3435eab4625645c5afe3b151f9f430564ac
2015-06-02 12:09:56 +02:00
Stephan Bergmann
acd4ecc38f
loplugin:cstylecast: deal with those that are (technically) const_cast
...
Change-Id: Ice7bbdea1d0df0a92f2e1b38f033adaff2fb8b07
2015-06-02 11:29:13 +02:00
Noel Grandin
55bc128636
loplugin:loopvartoosmall
...
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
2015-06-01 09:58:56 +02:00
Stephan Bergmann
0571f3c503
loplugin:redundantcast: const_cast to same type
...
Change-Id: I1abdc2ab0b145e12f7fb00db529f52c11e4d7cfd
2015-05-29 12:05:09 +02:00
Noel Grandin
49ea2258d4
loplugin:loopvartoosmall
...
Change-Id: I5518e40a30bdad53470cc52b59eff04ab6d873d4
2015-05-29 08:48:41 +02:00
Noel Grandin
e0b2e6e3f7
loplugin:loopvartoosmall
...
Change-Id: Icbe68b31d4ab04ca3cd9f572e3598413946a75c7
2015-05-29 08:48:41 +02:00
Noel Grandin
6140ca9f1d
loplugin:loopvartoosmall
...
Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
2015-05-29 08:48:41 +02:00
Noel Grandin
afcf1ecee1
loplugin:loopvartoosmall
...
Change-Id: I1e9768c08af0bc7caac6a39c13842ee9d8ad962c
2015-05-29 08:48:41 +02:00
Noel Grandin
d5129a9dd6
new clang plugin: loopvartoosmall
...
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-28 12:49:54 +02:00
Noel Grandin
24600dcf31
loplugin:constantfunction
...
Change-Id: I7cb5b0c2cf9ade557173ca596ea5d42d853ff448
2015-05-22 09:59:46 +02:00
Noel Grandin
245142cef1
vclwidget plugin: check for memcpy of VclPtr
...
Change-Id: I873d3efbb7b78d0efe5d586b378d024ee22ac77e
2015-05-19 12:15:25 +02:00
Jan Holesovsky
80cf5251e3
loplugin rendercontext: No param => no check.
...
Change-Id: I30c8624fa00338c9cca7a054e08eacfc4fd6a630
2015-05-14 10:51:49 +02:00
Noel Grandin
117c728593
loplugin: rendercontext, limit output for now
...
we are only currently interested in methods where the first parameter is
RenderContext
Change-Id: Ic505541c93a765e56e920415d3665b7aa4abb10b
2015-05-14 10:13:10 +02:00
Noel Grandin
274c836cf8
check for static fields that needs to be wrapped in VclPtr
...
Change-Id: I6135cfd9aa70f90d58150733b6b48525e5c347c8
2015-05-13 12:21:19 +02:00
Stephan Bergmann
0bfc98e63b
loplugin:redundantcast: reinterpret_cast to void*
...
Change-Id: I947b49cfb15f0e7d6ddfaae386656c70e4bd48ba
2015-05-12 18:27:54 +02:00
Stephan Bergmann
3f3c4000d4
loplugin:cstylecast: nop between pointer types of exactly same spelling
...
Change-Id: I16fdb3a6e92c854f4143b5afd19d33818735222b
2015-05-11 12:51:57 +02:00
Stephan Bergmann
e12e0087e2
Suppress loplugin:implicitboolconversion warnings in Objective-C code
...
...(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-11 09:20:13 +02:00
Noel Grandin
fc9e78c788
sw,sc,sd,starmath: convert to vcl::RenderContext
...
Change-Id: I5d0a3b8ed1c49ba2806e0fa528d908da45afd58c
2015-05-11 09:17:41 +02:00
Stephan Bergmann
5eb6bd4db7
lopluign:staticmethods: Handle DECL_LINK
...
Change-Id: Ib27854a8470f3ff5b208cb949a7bd02f2a86c969
2015-05-08 19:15:32 +02:00
Stephan Bergmann
e6fa865b4d
lopluign:staticmethods: Improve diagnostics
...
Change-Id: I6079f387a697c5fe794655e455a19d0cb44b96bc
2015-05-08 19:15:31 +02:00
Stephan Bergmann
aa50b1c03f
Enable loplugin:staticmethods
...
Change-Id: Ic0062eddebf9225d298569bb4900047a0ee0b112
2015-05-08 16:57:49 +02:00
Stephan Bergmann
9be45dd750
lopluign:implicitboolconversion: warn about conversion from sal_Bool etc., too
...
Change-Id: I5bc23a2b599742c579ad82c1b1f68df130ac426b
2015-05-08 09:49:05 +02:00
Noel Grandin
08967d36ba
workaround for clang3.2 in vclwidgets clang plugin
...
Change-Id: I7ac67dd14d14a93fe163febe0f18df56dd613376
2015-05-07 11:18:49 +02:00
Noel Grandin
4eeaaf84d4
fix comment
...
Change-Id: Ifa59bdc4bfd80fe3100ba5f1ac8119ad990e3936
2015-05-07 11:18:49 +02:00
Tor Lillqvist
1275a450c1
More of the same
...
Change-Id: I2e735a3534a7f374a550d5072359aca70494a547
2015-05-07 11:53:05 +03:00
Tor Lillqvist
8d7791858a
It's its, not it's
...
Change-Id: Ic108625cdc8376095dfd19184ecad39bfeccd160
2015-05-07 11:44:15 +03:00
Noel Grandin
0825b020ca
new clang plugin: rendercontext
...
to help with converting calls to OutputDevice to pass via
vcl::RenderContext.
Change-Id: I4b49d2f5e4afca46898d2a7c7ed33cbf5577e664
2015-05-07 10:33:51 +02:00
Stephan Bergmann
d879d5346b
Downgrade for old Clang
...
Change-Id: Ia4c241040c52631df86c5bb7a95bca6af234251f
2015-05-05 14:16:08 +02:00
Noel Grandin
0a442d3815
loplugin:staticmethods
...
Change-Id: I4d19f868a618cb135aa7a949222972dc35b47d2a
2015-05-05 14:05:20 +02:00
Noel Grandin
7d426e6fd6
loplugin:staticmethods
...
Change-Id: I97160fc51dc16ff92b06d44570298eeec637e132
2015-05-05 14:05:20 +02:00
Noel Grandin
259820af71
loplugin:staticmethods
...
Change-Id: I90dd921077bbfc57200e398e7959306f26c65cfe
2015-05-05 09:30:41 +02:00
Noel Grandin
e95b073790
loplugin:staticmethods
...
Change-Id: I60678dfd1bd0d2e4754dbbe6ba053e90d5870780
2015-05-05 09:30:40 +02:00
Noel Grandin
f304a7a14a
loplugin:staticmethods
...
Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f
2015-05-05 09:30:39 +02:00
Noel Grandin
d3b5038cbb
loplugin:staticmethods
...
Change-Id: Iea68c4e466dd8e1cb7164959a680e5e52542166b
2015-05-05 09:30:39 +02:00
Stephan Bergmann
e1b1f18a6e
Adapt loplugin:checkconfigmacros to current Clang trunk
...
Change-Id: Ib2cb804fa42ac3cebd309de4ba3cdbbce9a1763d
2015-05-04 15:47:38 +02:00
Stephan Bergmann
385a248513
Do not warn about Link<Window *>
...
Change-Id: Id26adce17a2479eead935958556012f13f2821b7
2015-04-30 16:59:09 +02:00
Stephan Bergmann
a8174d258d
streamline containsWindowSubclass
...
Change-Id: I56d61b577df00855a49dd618e9dafcdb86cd7ca4
2015-04-30 16:59:08 +02:00
Tomaž Vajngerl
f1b0cf258d
Move paint method rewriter to store
...
Change-Id: If2bbd355a293e0a0feed7db8f179a0bdcf6dce43
2015-04-29 11:21:47 +09:00
Tomaž Vajngerl
d49013f67e
Paint method clang rewriter plugin
...
Change-Id: Ib66089f43b1df19a4c726f3cf198e8a4c4b101b6
2015-04-29 09:03:56 +09:00
Stephan Bergmann
cd41fa4308
Work around FieldDecl::getParent raising assertion
...
...when inside an ObjCInterfaceDecl, cf. thread starting at
<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2015-April/042629.html >
"FieldDecl::getParent() not working in Objective C code?"
Change-Id: Ifa9b4925979123c6b6fee1b46a1f57803207d3c8
2015-04-28 22:40:06 +02:00
Michael Meeks
e8b97a52c9
Merge remote-tracking branch 'origin/feature/vclptr'
...
Resolve several thousand lines of conflicts.
Conflicts:
accessibility/source/extended/accessiblelistbox.cxx
accessibility/source/standard/vclxaccessiblecombobox.cxx
accessibility/source/standard/vclxaccessibledropdowncombobox.cxx
accessibility/source/standard/vclxaccessibledropdownlistbox.cxx
accessibility/source/standard/vclxaccessiblelistbox.cxx
accessibility/source/standard/vclxaccessibletextfield.cxx
basctl/source/basicide/basidesh.cxx
cui/source/inc/chardlg.hxx
cui/source/tabpages/tpbitmap.cxx
dbaccess/source/ui/dlg/UserAdmin.cxx
dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
extensions/source/propctrlr/propertyeditor.hxx
extensions/source/scanner/sanedlg.cxx
filter/source/pdf/impdialog.cxx
include/sfx2/mgetempl.hxx
include/sfx2/sidebar/SidebarToolBox.hxx
include/sfx2/viewsh.hxx
include/svtools/brwbox.hxx
include/svtools/filectrl.hxx
include/svtools/scrwin.hxx
include/svx/dlgctrl.hxx
include/svx/sidebar/Popup.hxx
include/svx/sidebar/PopupContainer.hxx
include/svx/sidebar/PopupControl.hxx
include/svx/sidebar/SidebarDialControl.hxx
include/svx/sidebar/ValueSetWithTextControl.hxx
sc/source/ui/condformat/condformatdlgentry.cxx
sc/source/ui/navipi/navipi.cxx
sc/source/ui/sidebar/CellBorderStyleControl.hxx
sd/source/ui/animations/CustomAnimationDialog.cxx
sd/source/ui/inc/DrawViewShell.hxx
sd/source/ui/inc/Ruler.hxx
sd/source/ui/inc/SlideSorter.hxx
sd/source/ui/inc/ViewTabBar.hxx
sd/source/ui/inc/Window.hxx
sd/source/ui/inc/morphdlg.hxx
sd/source/ui/inc/sdpreslt.hxx
sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx
sd/source/ui/sidebar/LayoutMenu.hxx
sd/source/ui/sidebar/MasterPagesSelector.hxx
sd/source/ui/sidebar/NavigatorWrapper.hxx
sd/source/ui/sidebar/PanelBase.hxx
sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
sd/source/ui/sidebar/RecentMasterPagesSelector.hxx
sd/source/ui/slideshow/showwindow.hxx
sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
sd/source/ui/view/ViewShellBase.cxx
sd/source/ui/view/drviewsa.cxx
sfx2/source/appl/fileobj.hxx
sfx2/source/appl/opengrf.cxx
sfx2/source/control/thumbnailviewacc.hxx
sfx2/source/dialog/securitypage.cxx
sfx2/source/dialog/templdlg.cxx
sfx2/source/doc/docinsert.cxx
sfx2/source/doc/guisaveas.cxx
sfx2/source/inc/alienwarn.hxx
sfx2/source/sidebar/Deck.cxx
sfx2/source/sidebar/Deck.hxx
sfx2/source/sidebar/DeckTitleBar.cxx
sfx2/source/sidebar/DeckTitleBar.hxx
sfx2/source/sidebar/MenuButton.cxx
sfx2/source/sidebar/MenuButton.hxx
sfx2/source/sidebar/Panel.cxx
sfx2/source/sidebar/Panel.hxx
sfx2/source/sidebar/PanelTitleBar.hxx
sfx2/source/sidebar/SidebarDockingWindow.hxx
sfx2/source/sidebar/SidebarToolBox.cxx
sfx2/source/sidebar/TabBar.hxx
sfx2/source/sidebar/TabItem.cxx
sfx2/source/sidebar/TabItem.hxx
sfx2/source/sidebar/TitleBar.hxx
sfx2/source/toolbox/imgmgr.cxx
starmath/inc/edit.hxx
starmath/inc/smmod.hxx
starmath/qa/cppunit/test_starmath.cxx
starmath/source/edit.cxx
starmath/source/smmod.cxx
svtools/source/brwbox/brwbox1.cxx
svtools/source/brwbox/datwin.hxx
svtools/source/contnr/fileview.cxx
svtools/source/contnr/simptabl.cxx
svtools/source/control/filectrl.cxx
svtools/source/control/valueimp.hxx
svx/inc/GalleryControl.hxx
svx/source/dialog/dlgctrl.cxx
svx/source/dialog/swframeexample.cxx
svx/source/fmcomp/fmgridif.cxx
svx/source/gallery2/GalleryControl.cxx
svx/source/sidebar/EmptyPanel.hxx
svx/source/sidebar/area/AreaPropertyPanel.hxx
svx/source/sidebar/area/AreaTransparencyGradientControl.hxx
svx/source/sidebar/graphic/GraphicPropertyPanel.hxx
svx/source/sidebar/insert/InsertPropertyPanel.cxx
svx/source/sidebar/insert/InsertPropertyPanel.hxx
svx/source/sidebar/line/LinePropertyPanel.hxx
svx/source/sidebar/line/LineWidthControl.cxx
svx/source/sidebar/line/LineWidthControl.hxx
svx/source/sidebar/line/LineWidthValueSet.hxx
svx/source/sidebar/paragraph/ParaPropertyPanel.hxx
svx/source/sidebar/possize/SidebarDialControl.cxx
svx/source/sidebar/text/TextCharacterSpacingPopup.hxx
svx/source/sidebar/text/TextPropertyPanel.hxx
svx/source/sidebar/tools/PopupContainer.cxx
svx/source/sidebar/tools/PopupControl.cxx
svx/source/sidebar/tools/ValueSetWithTextControl.cxx
svx/source/svdraw/svdfmtf.hxx
svx/source/svdraw/svdibrow.cxx
svx/source/tbxctrls/colrctrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
sw/source/ui/dbui/mmaddressblockpage.cxx
sw/source/ui/dialog/uiregionsw.cxx
sw/source/ui/index/cnttab.cxx
sw/source/uibase/inc/drpcps.hxx
sw/source/uibase/sidebar/PageColumnControl.hxx
sw/source/uibase/sidebar/PageMarginControl.hxx
sw/source/uibase/sidebar/PageOrientationControl.hxx
sw/source/uibase/sidebar/PagePropertyPanel.hxx
sw/source/uibase/sidebar/PageSizeControl.hxx
sw/source/uibase/uiview/view2.cxx
sw/source/uibase/utlui/navipi.cxx
vcl/inc/svdata.hxx
vcl/source/control/combobox.cxx
vcl/source/control/lstbox.cxx
vcl/source/window/dockwin.cxx
vcl/source/window/winproc.cxx
Change-Id: I056cf3026ff17d65cca0b6e6588bda4a88fa8d95
2015-04-28 15:08:48 +01:00
Stephan Bergmann
dbb75877c2
loplugin:simplifybool: Need to ignore imp. casts when determining literals
...
Change-Id: I6b25ef369a9d445322f7500630a6a4ed38ae7d8f
2015-04-27 15:31:04 +02:00
Stephan Bergmann
5beac3c0b7
Add clarifying comment
...
Change-Id: Ie891404a4d21e1917e5e653737e35257df3dfcae
2015-04-24 15:01:20 +02:00
Stephan Bergmann
2d855ab9d0
loplugin:simplifybool
...
Change-Id: I44b563269a68cd2d57a906e10939ac290a0a2ebd
2015-04-24 12:36:32 +02:00
Stephan Bergmann
6052a839f5
Mac OS X ctype.h isdigit is not extern "C"
...
Change-Id: Ied43178bacc020b848ee3196080713e08c780133
2015-04-23 23:48:01 +02:00
Stephan Bergmann
4d7b194dd5
Improved loplugin:literaltoboolconversion looking into cond. exprs.
...
Change-Id: If54ab99fc82c7895da6bb88ebf18a11570f597ed
2015-04-23 18:39:07 +02:00
Stephan Bergmann
59076a9825
Improve loplugin:implicitboolconversion cond. expr. handling
...
...so that
... ? isdigit(...) : true
will not trigger a warning (where isdigit is the standard C function returning
int). (Odd code like that will fall out of the improved
loplugin:literaltoboolconversion rewriter shortly.)
Change-Id: If51402bd5f4b3f8b0630e874988f4b836ae246f8
2015-04-23 18:39:06 +02:00
Noel Grandin
7ab8b08b6c
loplugin:staticmethods
...
Change-Id: Iab2f10b000ef41fb090e0034785d4ed0bda4cf43
2015-04-23 13:08:48 +02:00
Noel Grandin
0a7b739cc3
loplugin:staticmethods
...
Change-Id: I2ee91d07cf9d46cdc385a4db8473550b05e2f0ad
2015-04-23 13:08:48 +02:00