#!/usr/bin/python import sys instantiatedSet = set() definitionSet = set() parentChildDict = {} definitionToFileDict = {} with open("loplugin.mergeclasses.log") as txt: for line in txt: tokens = line.strip().split("\t") if len(tokens) == 1: pass elif tokens[0] == "instantiated:": clazzName = tokens[1] if (clazzName.startswith("const ")): clazzName = clazzName[6:] if (clazzName.startswith("class ")): clazzName = clazzName[6:] if (clazzName.startswith("::")): clazzName = clazzName[2:] instantiatedSet.add(clazzName) elif tokens[0] == "definition:": clazzName = tokens[1] # the 1.. is so we skip the leading / fileName = tokens[2][1:] definitionSet.add(clazzName) definitionToFileDict[clazzName] = fileName elif tokens[0] == "has-subclass:": child = tokens[1] parent = tokens[2] if (parent.startswith("class ")): parent = parent[6:] elif (parent.startswith("struct ")): parent = parent[7:] if (child.startswith("class ")): child = child[6:] elif (child.startswith("struct ")): child = child[7:] if (parent not in parentChildDict): parentChildDict[parent] = set() parentChildDict[parent].add(child) def extractModuleName(clazz): filename = definitionToFileDict[clazz] if filename.startswith("include/"): filename = filename[8:] idx = filename.find("/") return filename[:idx] with open("compilerplugins/clang/mergeclasses.results", "wt") as f: # loop over defined, but not instantiated classes for clazz in sorted(definitionSet - instantiatedSet): # ignore classes without any children, and classes with more than one child if (clazz not in parentChildDict) or (len(parentChildDict[clazz]) != 1): continue # exclude some common false positives a = ['Dialog', 'Dlg', 'com::sun', 'Base'] if any(x in clazz for x in a): continue # ignore base class that contain the word "mutex", they are normally there to # help with the WeakComponentImpl template magic if ("mutex" in clazz) or ("Mutex" in clazz): continue otherclazz = next(iter(parentChildDict[clazz])) # exclude combinations that span modules because we often use those to make cross-module dependencies more manageable. if extractModuleName(clazz) != extractModuleName(otherclazz): continue f.write( "merge " + clazz + " with " + otherclazz + "\n" ) o-24.04.10'>distro/collabora/co-24.04.10 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sc/inc/AccessibleGlobal.hxx
12:25:21 +0100'>2019-11-12
AgeCommit message (Expand)Author
2012-09-10Change some comments to meet doxygen standardsFaisal M. Al-Otaibi
2012-06-21re-base on ALv2 code.Michael Meeks
tdf#121239 give writer, calc and draw/impress the same underline optionsCaolán McNamara
2019-09-26menubars add separator before AutoCorrectDlg for better visibilityandreas kainz
2019-09-23Resolves tdf#127400 - Allow to show tip of the day againHeiko Tietze
2019-08-08Resolves tdf#126608 - Unclear page formattingHeiko Tietze
2019-08-08tdf#126634 Move uno:Grid back to Form controls toolbarRoman Kuznetsov
2019-07-16tdf:126142 ImageMap menubar entry moved to tools sectionandreas kainz
2019-06-18tdf#125947 Two tools are missing from default Form Controls toolbarRoman Kuznetsov
2019-05-16tdf#124825 sync UI between LibO implementations and LOOLandreas kainz
2019-05-02writer: sync global and print toolbars between dif UI layoutsandreas kainz
2019-04-13tdf#124649 menubar show icons for the most important itemsandreas kainz
2019-04-05menubar: reverte recentfilelist change to have it after openremoteandreas kainz
2019-04-02sw menubar: rearrange subgroup items to have > items last sortedandreas kainz
2019-03-13tdf#112411 Merge "Form controls" and "More controls" into one toolbarRoman Kuznetsov
2019-03-05sync sweb ui files with swriter ui filesandreas kainz
2019-02-18tdf#123261 Styles items get checkbox option in menubar and popupmenuandreas kainz
2019-01-20tdf#92542 add index elements to table context menus in sw modulesandreas kainz
2019-01-15tdf#121033 drawtextobjectbar follow now textobjectbarandreas kainz
2018-12-07tdf#121017, tdf#121897: editstyle is always paragraph styleXisco Fauli
2018-11-16tdf#121017 context menu web text: editstyle is always paragraph styleandreas kainz
2018-11-09tdf#119581 add FormatPaintbrush to text and table popupmenuandreas kainz
2018-11-08tdf#121018 Split labels for sub menusMaxim Monastirsky
2018-11-08sw: Remove the comment sub menu from table.xmlMaxim Monastirsky
2018-11-01Context Menu: Remove Comment section in sw modulesandreas kainz
2018-10-29sw modules: finish context menuesandreas kainz
2018-10-28sw toolbars sync context toolbars between different appsandreas kainz
2018-10-28tdf#119410 Menubar sw: combine mirror and rotateandreas kainz
2018-10-27tdf#119773 update sw table context barandreas kainz
2018-10-27sw text context menu sync between different sw appsandreas kainz
2018-10-26tdf#120861 move paste special to a submenu in menubarandreas kainz
2018-10-23Frame Contextmenu in Writer and other sw appsandreas kainz
2018-10-15tdf#120429 - Functions Insert Columns Exist Two Timesheiko tietze
2018-10-11tdf#64242 sw add minimize table col/row UIJustin Luth
2018-10-09tdf#120264 - Access to "Get Involved"heiko tietze