C++: Sort source files in *.qbs

This makes the diff smaller when adding new files with the wizards.

Change-Id: Iabd35afc32f363c465c8d9b36c45d480ea666627
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-02-06 15:38:18 +01:00
parent cbe30a1cca
commit c0f2bc254e
5 changed files with 242 additions and 121 deletions

View File

@@ -43,9 +43,9 @@ QtcPlugin {
"clangassistproposalmodel.h", "clangassistproposalmodel.h",
"clangbackendipcintegration.cpp", "clangbackendipcintegration.cpp",
"clangbackendipcintegration.h", "clangbackendipcintegration.h",
"clangcodemodel.qrc",
"clangcodemodelplugin.cpp", "clangcodemodelplugin.cpp",
"clangcodemodelplugin.h", "clangcodemodelplugin.h",
"clangcodemodel.qrc",
"clangcompletionassistinterface.cpp", "clangcompletionassistinterface.cpp",
"clangcompletionassistinterface.h", "clangcompletionassistinterface.h",
"clangcompletionassistprocessor.cpp", "clangcompletionassistprocessor.cpp",
@@ -98,9 +98,9 @@ QtcPlugin {
condition: qtc.testsEnabled condition: qtc.testsEnabled
prefix: "test/" prefix: "test/"
files: [ files: [
"data/clangtestdata.qrc",
"clangcodecompletion_test.cpp", "clangcodecompletion_test.cpp",
"clangcodecompletion_test.h", "clangcodecompletion_test.h",
"data/clangtestdata.qrc",
] ]
} }

View File

@@ -14,16 +14,26 @@ QtcPlugin {
files: [ files: [
"classviewconstants.h", "classviewconstants.h",
"classviewmanager.cpp", "classviewmanager.h", "classviewmanager.cpp",
"classviewnavigationwidget.cpp", "classviewnavigationwidget.h", "classviewmanager.h",
"classviewnavigationwidgetfactory.cpp", "classviewnavigationwidgetfactory.h", "classviewnavigationwidget.cpp",
"classviewparser.cpp", "classviewparser.h", "classviewnavigationwidget.h",
"classviewparsertreeitem.cpp", "classviewparsertreeitem.h", "classviewnavigationwidgetfactory.cpp",
"classviewplugin.cpp", "classviewplugin.h", "classviewnavigationwidgetfactory.h",
"classviewsymbolinformation.cpp", "classviewsymbolinformation.h", "classviewparser.cpp",
"classviewsymbollocation.cpp", "classviewsymbollocation.h", "classviewparser.h",
"classviewtreeitemmodel.cpp", "classviewtreeitemmodel.h", "classviewparsertreeitem.cpp",
"classviewutils.cpp", "classviewutils.h", "classviewparsertreeitem.h",
"classviewplugin.cpp",
"classviewplugin.h",
"classviewsymbolinformation.cpp",
"classviewsymbolinformation.h",
"classviewsymbollocation.cpp",
"classviewsymbollocation.h",
"classviewtreeitemmodel.cpp",
"classviewtreeitemmodel.h",
"classviewutils.cpp",
"classviewutils.h",
] ]
} }

View File

@@ -20,47 +20,78 @@ QtcPlugin {
] ]
files: [ files: [
"cppautocompleter.cpp", "cppautocompleter.h", "cppautocompleter.cpp",
"cppcanonicalsymbol.cpp", "cppcanonicalsymbol.h", "cppautocompleter.h",
"cppcodemodelinspectordialog.cpp", "cppcodemodelinspectordialog.h", "cppcodemodelinspectordialog.ui", "cppcanonicalsymbol.cpp",
"cppdocumentationcommenthelper.cpp", "cppdocumentationcommenthelper.h", "cppcanonicalsymbol.h",
"cppeditor.cpp", "cppeditor.h", "cppcodemodelinspectordialog.cpp",
"cppcodemodelinspectordialog.h",
"cppcodemodelinspectordialog.ui",
"cppdocumentationcommenthelper.cpp",
"cppdocumentationcommenthelper.h",
"cppeditor.cpp",
"cppeditor.h",
"cppeditor.qrc", "cppeditor.qrc",
"cppeditor_global.h", "cppeditor_global.h",
"cppeditorconstants.h", "cppeditorconstants.h",
"cppeditordocument.cpp", "cppeditordocument.h", "cppeditordocument.cpp",
"cppeditordocument.h",
"cppeditorenums.h", "cppeditorenums.h",
"cppeditorplugin.cpp", "cppeditorplugin.h", "cppeditorplugin.cpp",
"cppelementevaluator.cpp", "cppelementevaluator.h", "cppeditorplugin.h",
"cppfollowsymbolundercursor.cpp", "cppfollowsymbolundercursor.h", "cppelementevaluator.cpp",
"cppfunctiondecldeflink.cpp", "cppfunctiondecldeflink.h", "cppelementevaluator.h",
"cpphighlighter.cpp", "cpphighlighter.h", "cppfollowsymbolundercursor.cpp",
"cpphoverhandler.cpp", "cpphoverhandler.h", "cppfollowsymbolundercursor.h",
"cppincludehierarchy.cpp", "cppincludehierarchy.h", "cppfunctiondecldeflink.cpp",
"cppfunctiondecldeflink.h",
"cpphighlighter.cpp",
"cpphighlighter.h",
"cpphoverhandler.cpp",
"cpphoverhandler.h",
"cppincludehierarchy.cpp",
"cppincludehierarchy.h",
"cppinsertvirtualmethods.cpp", "cppinsertvirtualmethods.cpp",
"cppinsertvirtualmethods.h", "cppinsertvirtualmethods.h",
"cpplocalrenaming.cpp", "cpplocalrenaming.h", "cpplocalrenaming.cpp",
"cppminimizableinfobars.cpp", "cppminimizableinfobars.h", "cpplocalrenaming.h",
"cppoutline.cpp", "cppoutline.h", "cppminimizableinfobars.cpp",
"cpppreprocessordialog.cpp", "cpppreprocessordialog.h", "cpppreprocessordialog.ui", "cppminimizableinfobars.h",
"cppparsecontext.cpp", "cppparsecontext.h", "cppoutline.cpp",
"cppquickfix.cpp", "cppquickfix.h", "cppoutline.h",
"cppquickfixassistant.cpp", "cppquickfixassistant.h", "cppparsecontext.cpp",
"cppquickfixes.cpp", "cppquickfixes.h", "cppparsecontext.h",
"cppsnippetprovider.cpp", "cppsnippetprovider.h", "cpppreprocessordialog.cpp",
"cpptypehierarchy.cpp", "cpptypehierarchy.h", "cpppreprocessordialog.h",
"cppuseselectionsupdater.cpp", "cppuseselectionsupdater.h", "cpppreprocessordialog.ui",
"cppvirtualfunctionassistprovider.cpp", "cppvirtualfunctionassistprovider.h", "cppquickfix.cpp",
"cppvirtualfunctionproposalitem.cpp", "cppvirtualfunctionproposalitem.h", "cppquickfix.h",
"resourcepreviewhoverhandler.cpp", "resourcepreviewhoverhandler.h", "cppquickfixassistant.cpp",
"cppquickfixassistant.h",
"cppquickfixes.cpp",
"cppquickfixes.h",
"cppsnippetprovider.cpp",
"cppsnippetprovider.h",
"cpptypehierarchy.cpp",
"cpptypehierarchy.h",
"cppuseselectionsupdater.cpp",
"cppuseselectionsupdater.h",
"cppvirtualfunctionassistprovider.cpp",
"cppvirtualfunctionassistprovider.h",
"cppvirtualfunctionproposalitem.cpp",
"cppvirtualfunctionproposalitem.h",
"resourcepreviewhoverhandler.cpp",
"resourcepreviewhoverhandler.h",
] ]
Group { Group {
name: "Tests" name: "Tests"
condition: qtc.testsEnabled condition: qtc.testsEnabled
files: [ files: [
"cppdoxygen_test.cpp", "cppdoxygen_test.h", "cppdoxygen_test.cpp",
"cppeditortestcase.cpp", "cppeditortestcase.h", "cppdoxygen_test.h",
"cppeditortestcase.cpp",
"cppeditortestcase.h",
"cppincludehierarchy_test.cpp", "cppincludehierarchy_test.cpp",
"cppquickfix_test.cpp", "cppquickfix_test.cpp",
"cppquickfix_test.h", "cppquickfix_test.h",

View File

@@ -28,88 +28,165 @@ Project {
} }
files: [ files: [
"abstracteditorsupport.cpp", "abstracteditorsupport.h", "abstracteditorsupport.cpp",
"baseeditordocumentparser.cpp", "baseeditordocumentparser.h", "abstracteditorsupport.h",
"baseeditordocumentprocessor.cpp", "baseeditordocumentprocessor.h", "baseeditordocumentparser.cpp",
"builtineditordocumentparser.cpp", "builtineditordocumentparser.h", "baseeditordocumentparser.h",
"builtineditordocumentprocessor.cpp", "builtineditordocumentprocessor.h", "baseeditordocumentprocessor.cpp",
"builtinindexingsupport.cpp", "builtinindexingsupport.h", "baseeditordocumentprocessor.h",
"clangdiagnosticconfig.cpp", "clangdiagnosticconfig.h", "builtineditordocumentparser.cpp",
"clangdiagnosticconfigsmodel.cpp", "clangdiagnosticconfigsmodel.h", "builtineditordocumentparser.h",
"clangdiagnosticconfigswidget.cpp", "clangdiagnosticconfigswidget.h", "builtineditordocumentprocessor.cpp",
"builtineditordocumentprocessor.h",
"builtinindexingsupport.cpp",
"builtinindexingsupport.h",
"clangcompileroptionsbuilder.cpp",
"clangcompileroptionsbuilder.h",
"clangdiagnosticconfig.cpp",
"clangdiagnosticconfig.h",
"clangdiagnosticconfigsmodel.cpp",
"clangdiagnosticconfigsmodel.h",
"clangdiagnosticconfigswidget.cpp",
"clangdiagnosticconfigswidget.h",
"clangdiagnosticconfigswidget.ui", "clangdiagnosticconfigswidget.ui",
"compileroptionsbuilder.cpp", "compileroptionsbuilder.h", "compileroptionsbuilder.cpp",
"cppchecksymbols.cpp", "cppchecksymbols.h", "compileroptionsbuilder.h",
"cppclassesfilter.cpp", "cppclassesfilter.h", "cppbaseprojectpartbuilder.cpp",
"cppcodeformatter.cpp", "cppcodeformatter.h", "cppbaseprojectpartbuilder.h",
"cppcodemodelinspectordumper.cpp", "cppcodemodelinspectordumper.h", "cppchecksymbols.cpp",
"cppcodemodelsettings.cpp", "cppcodemodelsettings.h", "cppchecksymbols.h",
"cppcodemodelsettingspage.cpp", "cppcodemodelsettingspage.h", "cppcodemodelsettingspage.ui", "cppclassesfilter.cpp",
"cppcodestylepreferences.cpp", "cppcodestylepreferences.h", "cppclassesfilter.h",
"cppcodestylepreferencesfactory.cpp", "cppcodestylepreferencesfactory.h", "cppcodeformatter.cpp",
"cppcodestylesettings.cpp", "cppcodestylesettings.h", "cppcodeformatter.h",
"cppcodestylesettingspage.cpp", "cppcodestylesettingspage.h", "cppcodestylesettingspage.ui", "cppcodemodelinspectordumper.cpp",
"cppcompletionassist.cpp", "cppcompletionassist.h", "cppcodemodelinspectordumper.h",
"cppcompletionassistprocessor.cpp", "cppcompletionassistprocessor.h", "cppcodemodelsettings.cpp",
"cppcompletionassistprovider.cpp", "cppcompletionassistprovider.h", "cppcodemodelsettings.h",
"cppcurrentdocumentfilter.cpp", "cppcurrentdocumentfilter.h", "cppcodemodelsettingspage.cpp",
"cppdoxygen.cpp", "cppdoxygen.h", "cppcodemodelsettingspage.h",
"cppeditoroutline.cpp", "cppeditoroutline.h", "cppcodemodelsettingspage.ui",
"cppfileiterationorder.cpp", "cppfileiterationorder.h", "cppcodestylepreferences.cpp",
"cppfilesettingspage.cpp", "cppfilesettingspage.h", "cppfilesettingspage.ui", "cppcodestylepreferences.h",
"cppfindreferences.cpp", "cppfindreferences.h", "cppcodestylepreferencesfactory.cpp",
"cppfunctionsfilter.cpp", "cppfunctionsfilter.h", "cppcodestylepreferencesfactory.h",
"cppincludesfilter.cpp", "cppincludesfilter.h", "cppcodestylesettings.cpp",
"cppindexingsupport.cpp", "cppindexingsupport.h", "cppcodestylesettings.h",
"cpplocalsymbols.cpp", "cpplocalsymbols.h", "cppcodestylesettingspage.cpp",
"cpplocatordata.cpp", "cpplocatordata.h", "cppcodestylesettingspage.h",
"cpplocatorfilter.cpp", "cpplocatorfilter.h", "cppcodestylesettingspage.ui",
"cppmodelmanager.cpp", "cppmodelmanager.h", "cppcompletionassist.cpp",
"cppmodelmanagersupport.cpp", "cppmodelmanagersupport.h", "cppcompletionassist.h",
"cppmodelmanagersupportinternal.cpp", "cppmodelmanagersupportinternal.h", "cppcompletionassistprocessor.cpp",
"cpppointerdeclarationformatter.cpp", "cpppointerdeclarationformatter.h", "cppcompletionassistprocessor.h",
"cppprojectfile.cpp", "cppprojectfile.h", "cppcompletionassistprovider.cpp",
"cppqtstyleindenter.cpp", "cppqtstyleindenter.h", "cppcompletionassistprovider.h",
"cpprefactoringchanges.cpp", "cpprefactoringchanges.h", "cppcurrentdocumentfilter.cpp",
"cppselectionchanger.cpp", "cppselectionchanger.h", "cppcurrentdocumentfilter.h",
"cppsemanticinfo.cpp", "cppsemanticinfo.h", "cppdoxygen.cpp",
"cppsemanticinfoupdater.cpp", "cppsemanticinfoupdater.h", "cppdoxygen.h",
"cppsourceprocessor.cpp", "cppsourceprocessor.h", "cppeditoroutline.cpp",
"cpptoolsbridge.cpp", "cpptoolsbridge.h", "cppeditoroutline.h",
"cpptoolsbridgeinterface.h", "cppfileiterationorder.cpp",
"cpptoolsbridgeqtcreatorimplementation.cpp", "cpptoolsbridgeqtcreatorimplementation.h", "cppfileiterationorder.h",
"cppfilesettingspage.cpp",
"cppfilesettingspage.h",
"cppfilesettingspage.ui",
"cppfindreferences.cpp",
"cppfindreferences.h",
"cppfunctionsfilter.cpp",
"cppfunctionsfilter.h",
"cppincludesfilter.cpp",
"cppincludesfilter.h",
"cppindexingsupport.cpp",
"cppindexingsupport.h",
"cpplocalsymbols.cpp",
"cpplocalsymbols.h",
"cpplocatordata.cpp",
"cpplocatordata.h",
"cpplocatorfilter.cpp",
"cpplocatorfilter.h",
"cppmodelmanager.cpp",
"cppmodelmanager.h",
"cppmodelmanagersupport.cpp",
"cppmodelmanagersupport.h",
"cppmodelmanagersupportinternal.cpp",
"cppmodelmanagersupportinternal.h",
"cpppointerdeclarationformatter.cpp",
"cpppointerdeclarationformatter.h",
"cppprojectfile.cpp",
"cppprojectfile.h",
"cppprojectfilecategorizer.cpp",
"cppprojectfilecategorizer.h",
"cppprojectinterface.h",
"cppprojectpartchooser.cpp",
"cppprojectpartchooser.h",
"cppqtstyleindenter.cpp",
"cppqtstyleindenter.h",
"cpprefactoringchanges.cpp",
"cpprefactoringchanges.h",
"cppselectionchanger.cpp",
"cppselectionchanger.h",
"cppsemanticinfo.cpp",
"cppsemanticinfo.h",
"cppsemanticinfoupdater.cpp",
"cppsemanticinfoupdater.h",
"cppsourceprocessor.cpp",
"cppsourceprocessor.h",
"cpptools.qrc", "cpptools.qrc",
"cpptools_global.h", "cpptools_global.h",
"cpptools_utils.h", "cpptools_utils.h",
"cpptoolsbridge.cpp",
"cpptoolsbridge.h",
"cpptoolsbridgeinterface.h",
"cpptoolsbridgeqtcreatorimplementation.cpp",
"cpptoolsbridgeqtcreatorimplementation.h",
"cpptoolsconstants.h", "cpptoolsconstants.h",
"cpptoolsjsextension.cpp", "cpptoolsjsextension.h", "cpptoolsjsextension.cpp",
"cpptoolsplugin.cpp", "cpptoolsplugin.h", "cpptoolsjsextension.h",
"cpptoolsreuse.cpp", "cpptoolsreuse.h", "cpptoolsplugin.cpp",
"cpptoolssettings.cpp", "cpptoolssettings.h", "cpptoolsplugin.h",
"cppworkingcopy.cpp", "cppworkingcopy.h", "cpptoolsreuse.cpp",
"doxygengenerator.cpp", "doxygengenerator.h", "cpptoolsreuse.h",
"editordocumenthandle.cpp", "editordocumenthandle.h", "cpptoolssettings.cpp",
"functionutils.cpp", "functionutils.h", "cpptoolssettings.h",
"generatedcodemodelsupport.cpp", "generatedcodemodelsupport.h", "cppworkingcopy.cpp",
"includeutils.cpp", "includeutils.h", "cppworkingcopy.h",
"indexitem.cpp", "indexitem.h", "doxygengenerator.cpp",
"insertionpointlocator.cpp", "insertionpointlocator.h", "doxygengenerator.h",
"projectinfo.cpp", "projectinfo.h", "editordocumenthandle.cpp",
"projectpart.cpp", "projectpart.h", "editordocumenthandle.h",
"projectpartbuilder.cpp", "projectpartbuilder.h", "functionutils.cpp",
"functionutils.h",
"generatedcodemodelsupport.cpp",
"generatedcodemodelsupport.h",
"includeutils.cpp",
"includeutils.h",
"indexitem.cpp",
"indexitem.h",
"insertionpointlocator.cpp",
"insertionpointlocator.h",
"projectinfo.cpp",
"projectinfo.h",
"projectpart.cpp",
"projectpart.h",
"projectpartbuilder.cpp",
"projectpartbuilder.h",
"projectpartheaderpath.h", "projectpartheaderpath.h",
"searchsymbols.cpp", "searchsymbols.h", "searchsymbols.cpp",
"semantichighlighter.cpp", "semantichighlighter.h", "searchsymbols.h",
"senddocumenttracker.cpp", "senddocumenttracker.h", "semantichighlighter.cpp",
"stringtable.cpp", "stringtable.h", "semantichighlighter.h",
"symbolfinder.cpp", "symbolfinder.h", "senddocumenttracker.cpp",
"symbolsfindfilter.cpp", "symbolsfindfilter.h", "senddocumenttracker.h",
"typehierarchybuilder.cpp", "typehierarchybuilder.h", "stringtable.cpp",
"cppprojectfilecategorizer.cpp", "cppprojectfilecategorizer.h", "stringtable.h",
"cppprojectinterface.h", "symbolfinder.cpp",
"cppbaseprojectpartbuilder.cpp", "cppbaseprojectpartbuilder.h", "symbolfinder.h",
"clangcompileroptionsbuilder.cpp", "clangcompileroptionsbuilder.h", "symbolsfindfilter.cpp",
"cppprojectpartchooser.cpp", "cppprojectpartchooser.h", "symbolsfindfilter.h",
"typehierarchybuilder.cpp",
"typehierarchybuilder.h",
] ]
Group { Group {
@@ -123,10 +200,13 @@ Project {
"cpplocatorfilter_test.cpp", "cpplocatorfilter_test.cpp",
"cppmodelmanager_test.cpp", "cppmodelmanager_test.cpp",
"cpppointerdeclarationformatter_test.cpp", "cpppointerdeclarationformatter_test.cpp",
"cppsourceprocessertesthelper.cpp", "cppsourceprocessertesthelper.h", "cppsourceprocessertesthelper.cpp",
"cppsourceprocessertesthelper.h",
"cppsourceprocessor_test.cpp", "cppsourceprocessor_test.cpp",
"cpptoolstestcase.cpp", "cpptoolstestcase.h", "cpptoolstestcase.cpp",
"modelmanagertesthelper.cpp", "modelmanagertesthelper.h", "cpptoolstestcase.h",
"modelmanagertesthelper.cpp",
"modelmanagertesthelper.h",
"symbolsearcher_test.cpp", "symbolsearcher_test.cpp",
"typehierarchybuilder_test.cpp", "typehierarchybuilder_test.cpp",
] ]

View File

@@ -17,8 +17,8 @@ QtcTool {
Group { Group {
prefix: "../qtcreatorcrashhandler/" prefix: "../qtcreatorcrashhandler/"
files: [ files: [
"crashhandlersetup.h",
"crashhandlersetup.cpp", "crashhandlersetup.cpp",
"crashhandlersetup.h",
] ]
} }