summaryrefslogtreecommitdiff
path: root/l10ntools/source/common.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-11-17Extend loplugin:external to warn about enumsStephan Bergmann1-0/+4
To mitigate the dangers of silently breaking ADL when moving enums into unnamed namespaces (see the commit message of 206b5b2661be37efdff3c6aedb6f248c4636be79 "New loplugin:external"), note all functions that are affected. (The plan is to extend loplugin:external further to also warn about classes and class templates, and the code to identify affected functions already takes that into account, so some parts of that code are not actually relevant for enums.) But it appears that none of the functions that are actually affected by the changes in this commit relied on being found through ADL, so no adaptions were necessary for them. (clang::DeclContext::collectAllContexts is non-const, which recursively means that External's Visit... functions must take non-const Decl*. Which required compilerplugins/clang/sharedvisitor/analyzer.cxx to be generalized to support such Visit... functions with non-const Decl* parameters.) Change-Id: Ia215291402bf850d43defdab3cff4db5b270d1bd Reviewed-on: https://gerrit.libreoffice.org/83001 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-10-23loplugin:includeform: l10ntoolsStephan Bergmann1-1/+1
Change-Id: I73eed5cbaaa1a0668f0dfa89a1a26883f64b3107
2017-05-28remove unnecessary use of OString::getStrNoel Grandin1-2/+2
Change-Id: I0490efedf459190521f4339854b3394d57765fdb Reviewed-on: https://gerrit.libreoffice.org/38058 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-05-20Convert STATE to scoped enumNoel Grandin1-15/+13
Change-Id: Id2bb63be495a50376dbaccf6eeb27a900fc2ac7b
2014-07-01New loplugin:stringconcatStephan Bergmann1-6/+6
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2013-09-14fdo#68790: fix build error on Win when system locale=="Japanese(Japan)"Tomofumi Yagi1-2/+7
This patch modifies transex3. Modified transex3 outputs a file with BOM(if MergeMode is true). *.[hs]rc files with BOM avoid this problem. This problem is that MSVC interprets UTF-8 source code without BOM as local codepage when system locale is "Japanese(Japan)". Change-Id: I3e12499a91a954236f48e6d7e360d26c93d19ed6 Reviewed-on: https://gerrit.libreoffice.org/5851 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Kohei Yoshida <libreoffice@kohei.us> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2013-05-14typo fix: s/inavlid/invalid/Andras Timar1-2/+2
Change-Id: If75cad038f35033be6dcad6f051673bd795accf3
2013-04-21Some changes in qtz handlingZolnai Tamás1-1/+1
Executalbes, which work one language, generat qtz by own. (stringex,helpex,treex,propex) So these executables can generate qtz without po file when use them with qtz, call them with "-m" flag without parameter. Change-Id: I56c34db7151dc3ef0ce1c85ed607719e4cbb5e92
2013-03-27Fix build: typo and not needZolnai Tamás1-1/+0
Change-Id: I7bc1ee815e6ac333fb0c5b9a2c3135db2f81235e
2013-03-27Refactor l10ntoolsZolnai Tamás1-0/+153
Delete unused functions. Make Export class more encapsulated. Move to local that functions which are used only in one file. Common contans method which are used by all executables. Helper contains methods belong to xml parsing. Change-Id: I28773a2c7eea90da7df7f32720fd38de2cb661ac