• Luboš Luňák's avatar
    make (some) clang plugins share the same RecursiveASTVisitor · adb08e89
    Luboš Luňák yazdı
    Each plugin currently uses its own recursive AST run, which adds up.
    This patch adds another shared plugin which internally contains all
    (suitable) plugins and dispatches to them from the same one recursive
    run. This patch converts ~25 plugins and for starmath's accessibility.cxx
    reduces clang build time from 5.43s to 5.14s (and it's 4.39s without any
    plugins). As there are almost 50 more plugins to go, this can theoretically
    result in 4.56s final time, although probably not all plugins can be
    that easily converted, if at all.
    
    This mostly requires very little change in many plugins (see e.g.
    BadStatics), some even work without any functionality change (e.g.
    CharRightShift). Traverse* calls require some changes but are often
    not that difficult. WalkUp* probably can't be supported, although some
    plugins can(?) possibly be adjusted to not rely on them. And of course
    some plugins can be left as they are, using their own recursive run.
    See description at the top of generator.cxx for description of how to
    convert a plugin.
    
    The sharedvisitor.cxx source is generated based on scanning relevant
    plugin sources using a clang-based scanner/generator. The generated
    source is intentionally included instead of getting always generated,
    as the generating currently takes some time, so it should get updated
    in git whenever a change in a plugin triggers a source change in it.
    
    Change-Id: Ia0d2e3a5a464659503dbb4ed6c20b6cc89b4de01
    Reviewed-on: https://gerrit.libreoffice.org/68026
    Tested-by: Jenkins
    Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
    Reviewed-by: 's avatarLuboš Luňák <l.lunak@collabora.com>
    adb08e89
Adı
Son kayıt (commit)
Son güncelleme
..
sharedvisitor Loading commit data...
store Loading commit data...
test Loading commit data...
automem.cxx Loading commit data...
badstatics.cxx Loading commit data...
blockblock.cxx Loading commit data...
buriedassign.cxx Loading commit data...
casttovoid.cxx Loading commit data...
changetoolsgen.cxx Loading commit data...
charrightshift.cxx Loading commit data...
check.cxx Loading commit data...
check.hxx Loading commit data...
checkconfigmacros.cxx Loading commit data...
checkunusedparams.cxx Loading commit data...
collapseif.cxx Loading commit data...
commaoperator.cxx Loading commit data...
comparisonwithconstant.cxx Loading commit data...
compat.hxx Loading commit data...
constantparam.bitmask.results Loading commit data...
constantparam.booleans.results Loading commit data...
constantparam.constructors.results Loading commit data...
constantparam.cxx Loading commit data...
constantparam.numbers.results Loading commit data...
constantparam.py Loading commit data...
constfields.cxx Loading commit data...
constfields.py Loading commit data...
constfieldsrewrite.cxx Loading commit data...
constparams.cxx Loading commit data...
conststringvar.cxx Loading commit data...
constvars.cxx Loading commit data...
convertlong.cxx Loading commit data...
countusersofdefaultparams.cxx Loading commit data...
countusersofdefaultparams.py Loading commit data...
cppunitassertequals.cxx Loading commit data...
cstylecast.cxx Loading commit data...
datamembershadow.cxx Loading commit data...
dbgunhandledexception.cxx Loading commit data...
derefnullptr.cxx Loading commit data...
dllprivate.cxx Loading commit data...
dodgyswitch.cxx Loading commit data...
doubleconvert.cxx Loading commit data...
dyncastvisibility.cxx Loading commit data...
dynexcspec.cxx Loading commit data...
empty.cxx Loading commit data...
emptyif.cxx Loading commit data...
expandablemethods.cxx Loading commit data...
expandablemethods.py Loading commit data...
expressionalwayszero.cxx Loading commit data...
external.cxx Loading commit data...
externandnotdefined.cxx Loading commit data...
externvar.cxx Loading commit data...
faileddyncast.cxx Loading commit data...
finalclasses.cxx Loading commit data...
finalclasses.py Loading commit data...
finalprotected.cxx Loading commit data...
flatten.cxx Loading commit data...
fragiledestructor.cxx Loading commit data...
functionaddress.hxx Loading commit data...
getimplementationname.cxx Loading commit data...
implicitboolconversion.cxx Loading commit data...
includeform.cxx Loading commit data...
indentation.cxx Loading commit data...
inlinefields.cxx Loading commit data...
inlinefields.py Loading commit data...
inlinesimplememberfunctions.cxx Loading commit data...
inlinevisible.cxx Loading commit data...
intvsfloat.cxx Loading commit data...
literaltoboolconversion.cxx Loading commit data...
loopvartoosmall.cxx Loading commit data...
memoryvar.cxx Loading commit data...
mergeclasses.cxx Loading commit data...
mergeclasses.py Loading commit data...
mergeclasses.results Loading commit data...
methodcycles.cxx Loading commit data...
methodcycles.partition.results Loading commit data...
methodcycles.py Loading commit data...
methodcycles.results Loading commit data...
nestedunnamed.cxx Loading commit data...
nullptr.cxx Loading commit data...
oncevar.cxx Loading commit data...
oslendian.cxx Loading commit data...
override.cxx Loading commit data...
overrideparam.cxx Loading commit data...
passparamsbyref.cxx Loading commit data...
passstuffbyref.cxx Loading commit data...
plugin.cxx Loading commit data...
plugin.hxx Loading commit data...
pluginhandler.cxx Loading commit data...
pluginhandler.hxx Loading commit data...
pointerbool.cxx Loading commit data...
privatebase.cxx Loading commit data...
ptrvector.cxx Loading commit data...
rangedforcopy.cxx Loading commit data...
readability-redundant-pp.cxx Loading commit data...
redundantcast.cxx Loading commit data...
redundantfcast.cxx Loading commit data...
redundantinline.cxx Loading commit data...
redundantpointerops.cxx Loading commit data...
refcounting.cxx Loading commit data...
rendercontext.cxx Loading commit data...
reservedid.cxx Loading commit data...
returnconstant.cxx Loading commit data...
salbool.cxx Loading commit data...
salcall.cxx Loading commit data...
sallogareas.cxx Loading commit data...
sallogareas.hxx Loading commit data...
salunicodeliteral.cxx Loading commit data...
sfxpoolitem.cxx Loading commit data...
shouldreturnbool.cxx Loading commit data...
simplifybool.cxx Loading commit data...
simplifyconstruct.cxx Loading commit data...
simplifydynamiccast.cxx Loading commit data...
singlevalfields.could-be-bool.results Loading commit data...
singlevalfields.cxx Loading commit data...
singlevalfields.py Loading commit data...
singlevalfields.results Loading commit data...
staticaccess.cxx Loading commit data...
staticanonymous.cxx Loading commit data...
staticconstfield.cxx Loading commit data...
staticmethods.cxx Loading commit data...
staticvar.cxx Loading commit data...
stringbuffer.cxx Loading commit data...
stringconcat.cxx Loading commit data...
stringconstant.cxx Loading commit data...
stringloop.cxx Loading commit data...
stringstatic.cxx Loading commit data...
subtlezeroinit.cxx Loading commit data...
typedefparam.cxx Loading commit data...
unicodetochar.cxx Loading commit data...
unnecessarycatchthrow.cxx Loading commit data...
unnecessaryoverride.cxx Loading commit data...
unnecessaryparen.cxx Loading commit data...
unnecessaryvirtual-dead.results Loading commit data...
unnecessaryvirtual.cxx Loading commit data...
unnecessaryvirtual.py Loading commit data...
unnecessaryvirtual.results Loading commit data...
unoany.cxx Loading commit data...
unreffun.cxx Loading commit data...
unusedenumconstants.cxx Loading commit data...
unusedenumconstants.py Loading commit data...
unusedenumconstants.readonly.results Loading commit data...
unusedenumconstants.untouched.results Loading commit data...
unusedenumconstants.writeonly.results Loading commit data...
unusedfields.cxx Loading commit data...
unusedfields.only-used-in-constructor.results Loading commit data...
unusedfields.py Loading commit data...
unusedfields.readonly.results Loading commit data...
unusedfields.untouched.results Loading commit data...
unusedfields.writeonly.results Loading commit data...
unusedfieldsremove.cxx Loading commit data...
unusedindex.cxx Loading commit data...
unusedmethods.cxx Loading commit data...
unusedmethods.py Loading commit data...
unusedmethods.results Loading commit data...
unusedmethods.unused-returns.results Loading commit data...
unusedmethodsremove.cxx Loading commit data...
unusedvariablecheck.cxx Loading commit data...
unusedvariablecheck.hxx Loading commit data...
unusedvariablemore.cxx Loading commit data...
useuniqueptr.cxx Loading commit data...
vclwidgets.cxx Loading commit data...
virtualdown.cxx Loading commit data...
virtualdown.py Loading commit data...
weakobject.cxx Loading commit data...
writeonlyvars.cxx Loading commit data...