summaryrefslogtreecommitdiff
path: root/helpcompiler
AgeCommit message (Collapse)AuthorFilesLines
2014-10-15More -Werror,-Wunused-private-fieldStephan Bergmann1-2/+1
...detected with a modified trunk Clang with > Index: lib/Sema/SemaDeclCXX.cpp > =================================================================== > --- lib/Sema/SemaDeclCXX.cpp (revision 219190) > +++ lib/Sema/SemaDeclCXX.cpp (working copy) > @@ -1917,9 +1917,10 @@ > const Type *T = FD.getType()->getBaseElementTypeUnsafe(); > // FIXME: Destruction of ObjC lifetime types has side-effects. > if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) > - return !RD->isCompleteDefinition() || > - !RD->hasTrivialDefaultConstructor() || > - !RD->hasTrivialDestructor(); > + return !RD->hasAttr<WarnUnusedAttr>() && > + (!RD->isCompleteDefinition() || > + !RD->hasTrivialDefaultConstructor() || > + !RD->hasTrivialDestructor()); > return false; > } > > @@ -3517,9 +3518,11 @@ > bool addFieldInitializer(CXXCtorInitializer *Init) { > AllToInit.push_back(Init); > > +#if 0 > // Check whether this initializer makes the field "used". > if (Init->getInit()->HasSideEffects(S.Context)) > S.UnusedPrivateFields.remove(Init->getAnyMember()); > +#endif > > return false; > } to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about initializations with side effects (cf. <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html> "-Wunused-private-field distracted by side effects"). Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
2014-09-11(Rudimentary) C++11 support is a hard requirement nowStephan Bergmann1-4/+1
Change-Id: I43ed776d52336b822aa6152f0f2a29e39303bb75
2014-07-01New loplugin:stringconcatStephan Bergmann1-2/+1
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2014-06-17coverity#1223090 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: Iec100b86e2952a5efe4fa52bd85fbc00b51f78c3
2014-06-10coverity#983682 Uncaught exceptionCaolán McNamara2-2/+4
Change-Id: Ie5c7ce0ba499ce67365c5e2079a50d73b9849e73
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin3-8/+1
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-05-28Fix memory leakStephan Bergmann1-6/+11
...and add---most likely necessary---null check Change-Id: I3f31c20442c45ddfd98429347f5c2521597c1769
2014-05-17Correct common misspellings, and remove some ASCII art along the way.Chris Laplante1-1/+1
Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c Reviewed-on: https://gerrit.libreoffice.org/9356 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2014-04-19fixincludeguards.sh: some smaller dirsThomas Arnhold4-8/+8
Change-Id: Ic25bd678dc299627299b22145efd7bebcf2b39d0
2014-04-17Avoid possible memory leaks in case of exceptionsTakeshi Abe2-8/+8
Change-Id: Ibadadacbe09a93e7d7a7210868c52a8fa582d427
2014-04-14typo: paramter -> parameterThomas Arnhold1-2/+2
2014-02-26Remove visual noise from helpcompilerAlexander Wilms1-1/+1
Change-Id: Ied20352592de019c3b4735af8cc63947cd7d61a2 Reviewed-on: https://gerrit.libreoffice.org/8266 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-11coverity#707948 Uninitialized scalar fieldCaolán McNamara1-3/+5
Change-Id: I254c5695f1a80eba8a90421da3417969b3e0e8f8
2014-01-28bool improvementsStephan Bergmann1-2/+2
Change-Id: I510d75d784c357dfd3420202fc8c5769e665e456
2013-12-17Remove unnecessary use of OUString constructor in + expressionsNoel Grandin1-2/+2
Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin1-3/+3
Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-11remove unnecessary use of OUString constructorNoel Grandin1-3/+2
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-04remove redundant calls to OUString constructorNoel Grandin1-4/+3
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
2013-10-28Remove unnecessary SyntaxHighlighter::Tokenizer statefulnessStephan Bergmann1-1/+0
...which reveals that SyntaxHighlighter::notifyChange does nothing, so remove it. Change-Id: I49834af29081ee703d9e62e182e3c1f8ce7e212e
2013-10-28Fold SyntaxHighlighter::initialize into ctorStephan Bergmann1-2/+2
...which reveals that m_pKeyWords, m_nKeyWordCount members are unused. Change-Id: I55020e892d463f2e40d5bcf71efba92778b317c1
2013-10-28Remove unused SimpleTokenizer_Impl::nLine/nColStephan Bergmann1-2/+2
...which are never read; remove thereby unused parameters from functions. Change-Id: I644d2dc1b2d13ae2f932d04243521eef97e67e3e
2013-10-22Use conventional std::vector idiomsStephan Bergmann1-5/+5
Change-Id: I4d26372ea40e7890b76461a764435f8948466ae1
2013-10-22Unwind HighlightPortions typedefStephan Bergmann1-1/+1
Change-Id: I0ecc15f9bfd557d0a70a05536906a4984a46463c
2013-06-20remove last uses of config 'GUI' variableMatúš Kukan1-5/+4
Change-Id: I97188235f0b72b5b54423e05deeaf17c5c681048 Reviewed-on: https://gerrit.libreoffice.org/4188 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-06-13rename HAVE_CXX0X->HAVE_CXX11 and clean up to #define in a config headerLuboš Luňák2-7/+3
Change-Id: Id13e77fe890301a8510952994a91853568a7aea6
2013-05-07helpcompiler: remove Package_incMichael Stahl13-281/+14
Change-Id: Iddafa9068edcc20135c08ed205b8fb7fb5382eba
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks10-231/+40
2013-04-09rename expat external to 'expat'David Tardon3-3/+3
expat_utf16 is long gone, so there is no need to fool around with expat_utf8. Change-Id: I0dd4a5c4d78805e98913e645cc83d2ab634bcb89
2013-04-08HelpLinker: add comment for mysterious XML parsingMichael Stahl1-0/+3
Change-Id: I9aa5fd2cb0cb4eae0a94f8d3d6b6185a1fcffdc4
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák12-111/+111
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-03Remove Mac OS X for PowerPC supportTor Lillqvist1-7/+0
Change-Id: I10b15141e6a5f93365e1cfa6fbc0c7cc3ea49b15
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold1-7/+7
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-3/+0
2013-03-06fdo#60148 Clean up warnings from the Clang compiler pluginnccuong1-2/+1
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671 loplugin: clean warnings: unused variables, incorrect indentation and log area. Reviewed-on: https://gerrit.libreoffice.org/2544 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28do not create index for shared help moduleDavid Tardon2-0/+7
Change-Id: I83f9b99abcc952dfea924662a0db8d98efc56307
2013-02-26add opt -nolangroot needed for gbuildDavid Tardon2-1/+7
Change-Id: Id76dfc5698619f8095e0c682ae4ce5e181c9a599
2013-02-26avoid string substr/replace with invalid posDavid Tardon1-3/+6
Change-Id: Iceb9851bcb5e6fe66efd701fcb31e16596fe8b5a
2013-02-16Move SyntaxHighlighter class from svtools to comphelperAndras Timar3-4/+3
We use this class in helpcompiler, and it is not desirable to compile svtools (thus half of LibreOffice) for a build tool in cross-compiling environment. Change-Id: I5e6bc3e576af41eb03c1420dd347c542306f69fa
2013-02-13compact help xml files with xslt which removes the cruftAndras Timar4-6/+41
Change-Id: Iee923174169d6ba9961a9cee14115c9a4bf7ba09
2013-02-13add headers to new filesCaolán McNamara2-0/+22
Change-Id: Iaa390e50ed3cfe2ba9770c446869158b758bc48d
2013-02-13make building help not crashCaolán McNamara1-7/+3
a) subStr is not ours to delete, belongs to the OString b) and anyway subStr points to the buffer of the out-of-scope temporary OString Change-Id: I1689c6626c52ae9d94e0cfa5de4235be3c1f3262
2013-02-13fdo#41737 syntax highlighting of Basic code examples in offline helpAndras Timar4-57/+48
Change-Id: I7dc5b189e98a0351bac0eab28c1161b5893f5ef1
2013-02-13WaE: warning C4101: 'ex' : unreferenced local variableAndras Timar1-1/+1
Change-Id: I99a66ac3af8e391b5feaeafbb3abd63dcdd2bb2b
2013-02-13Basic code syntaxhighlighting added to LibreOffice helpDávid Vastag7-9/+359
Change-Id: Id47172d0386e7aa28d82178f04b5f626f0c441fe
2013-01-26gbuild: fix silly "expandtabs" in makefile VIM modelinesMichael Stahl3-3/+3
Change-Id: I54d8923ad315e8041fd3904da3a29f1a7a8c8b16
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl2-0/+2
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2012-12-25Get rid of (most uses of) GUITor Lillqvist1-0/+1
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: https://gerrit.libreoffice.org/1304 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2012-11-21re-base on ALv2 code. Includes:Michael Meeks1-1/+1
Patch contributed by Herbert Duerr: #i118662# remove berkeleyDB from module xmlhelp (author=orwitt) http://svn.apache.org/viewvc?view=revision&revision=1213188 #i119141# remove ISCII converter for now http://svn.apache.org/viewvc?view=revision&revision=1306246 make exceptions for cppunittester verbose http://svn.apache.org/viewvc?view=revision&revision=1174831 Patches contributed by Pedro Giffuni: Avoid some uses of non portable #!/bin/bash in shell scripts. http://svn.apache.org/viewvc?view=revision&revision=1235297 Patch contributed by Oliver-Rainer Wittmann 88652: applied patch, remove unicows deps http://svn.apache.org/viewvc?view=revision&revision=1177585 drop OS/2 code, remove in-line assembler ARM atomics, and obsolete armarch header.
2012-11-15helpcompiler: evidently does not care that it uses UTF16 expatMichael Stahl1-1/+1
... seeing as there isn't actually a handler in the compileExtensionHelp function; possibly dead code there. Change-Id: I96b3edff6be2d58d0c1852eb1043547c33e97c3a