Use "" to quote apps/openmw includes and remove unused

Using "" makes clangd to find unused includes which makes it quite easy to
remove them.
pull/3233/head
elsid 1 year ago
parent bfb60c5504
commit 067957f57b
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -1,7 +1,7 @@
#include <cstring> #include <cstring>
#include <vector> #include <vector>
#include <apps/openmw/mwsound/alext.h> #include "apps/openmw/mwsound/alext.h"
#include "openalutil.hpp" #include "openalutil.hpp"

@ -9,7 +9,6 @@
#include <fstream> #include <fstream>
#include <regex> #include <regex>
#include <apps/openmw/mwgui/textcolours.hpp>
#include <components/compiler/exception.hpp> #include <components/compiler/exception.hpp>
#include <components/compiler/extensions0.hpp> #include <components/compiler/extensions0.hpp>
#include <components/compiler/lineparser.hpp> #include <components/compiler/lineparser.hpp>
@ -20,6 +19,8 @@
#include <components/misc/utf8stream.hpp> #include <components/misc/utf8stream.hpp>
#include <components/settings/values.hpp> #include <components/settings/values.hpp>
#include "apps/openmw/mwgui/textcolours.hpp"
#include "../mwscript/extensions.hpp" #include "../mwscript/extensions.hpp"
#include "../mwscript/interpretercontext.hpp" #include "../mwscript/interpretercontext.hpp"

@ -43,6 +43,8 @@
#include <components/esm4/loadtree.hpp> #include <components/esm4/loadtree.hpp>
#include <components/esm4/loadweap.hpp> #include <components/esm4/loadweap.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/cellstore.hpp" #include "../mwworld/cellstore.hpp"
#include "../mwworld/worldmodel.hpp" #include "../mwworld/worldmodel.hpp"

@ -21,6 +21,7 @@
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/statemanager.hpp" #include "../mwbase/statemanager.hpp"
#include "../mwbase/windowmanager.hpp" #include "../mwbase/windowmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/action.hpp" #include "../mwworld/action.hpp"
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwworld/datetimemanager.hpp" #include "../mwworld/datetimemanager.hpp"

@ -21,11 +21,13 @@
#include <components/lua_ui/util.hpp> #include <components/lua_ui/util.hpp>
#include "../mwbase/windowmanager.hpp" #include "../mwbase/windowmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwrender/postprocessor.hpp" #include "../mwrender/postprocessor.hpp"
#include "../mwworld/datetimemanager.hpp" #include "../mwworld/datetimemanager.hpp"
#include "../mwworld/esmstore.hpp" #include "../mwworld/esmstore.hpp"
#include "../mwworld/player.hpp"
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/scene.hpp" #include "../mwworld/scene.hpp"
#include "../mwworld/worldmodel.hpp" #include "../mwworld/worldmodel.hpp"

@ -20,6 +20,9 @@
#include "../mwmechanics/creaturestats.hpp" #include "../mwmechanics/creaturestats.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "luaevents.hpp" #include "luaevents.hpp"
#include "luamanagerimp.hpp" #include "luamanagerimp.hpp"
#include "types/types.hpp" #include "types/types.hpp"

@ -5,10 +5,6 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {
template <> template <>

@ -6,8 +6,10 @@
#include <components/lua/luastate.hpp> #include <components/lua/luastate.hpp>
#include <components/settings/values.hpp> #include <components/settings/values.hpp>
#include "apps/openmw/mwbase/environment.hpp"
#include "apps/openmw/mwbase/mechanicsmanager.hpp" #include "apps/openmw/mwbase/mechanicsmanager.hpp"
#include "apps/openmw/mwbase/windowmanager.hpp" #include "apps/openmw/mwbase/windowmanager.hpp"
#include "apps/openmw/mwbase/world.hpp"
#include "apps/openmw/mwmechanics/actorutil.hpp" #include "apps/openmw/mwmechanics/actorutil.hpp"
#include "apps/openmw/mwmechanics/creaturestats.hpp" #include "apps/openmw/mwmechanics/creaturestats.hpp"
#include "apps/openmw/mwmechanics/drawstate.hpp" #include "apps/openmw/mwmechanics/drawstate.hpp"

@ -4,16 +4,15 @@
#include <sol/sol.hpp> #include <sol/sol.hpp>
#include <components/esm/defs.hpp> #include <components/esm/defs.hpp>
#include <components/esm3/loadclas.hpp>
#include <components/esm3/loadnpc.hpp>
#include <components/lua/luastate.hpp> #include <components/lua/luastate.hpp>
#include "apps/openmw/mwbase/environment.hpp"
#include "apps/openmw/mwworld/esmstore.hpp" #include "apps/openmw/mwworld/esmstore.hpp"
#include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwbase/world.hpp>
#include <components/esm3/loadclas.hpp>
#include <components/esm3/loadnpc.hpp>
#include "../context.hpp" #include "../context.hpp"
#include "../object.hpp"
namespace MWLua namespace MWLua
{ {

@ -5,9 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {

@ -5,9 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {

@ -4,14 +4,12 @@
#include <components/misc/strings/lower.hpp> #include <components/misc/strings/lower.hpp>
#include <components/esm3/loadbook.hpp> #include <components/esm3/loadbook.hpp>
#include <components/esm3/loadskil.hpp>
#include <components/lua/luastate.hpp> #include <components/lua/luastate.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
#include <components/esm3/loadskil.hpp>
namespace sol namespace sol
{ {

@ -5,9 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {

@ -5,7 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwworld/class.hpp> #include "apps/openmw/mwworld/class.hpp"
namespace sol namespace sol
{ {

@ -6,10 +6,6 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {
template <> template <>

@ -7,7 +7,6 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include "apps/openmw/mwworld/esmstore.hpp"
#include "apps/openmw/mwworld/worldmodel.hpp" #include "apps/openmw/mwworld/worldmodel.hpp"
namespace sol namespace sol

@ -6,10 +6,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -5,9 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {

@ -1,11 +1,11 @@
#include "types.hpp" #include "types.hpp"
#include <components/esm3/loadmisc.hpp> #include <components/esm3/loadmisc.hpp>
#include <components/esm3/loadspel.hpp> #include <components/esm3/loadspel.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include "apps/openmw/mwworld/esmstore.hpp"
namespace MWLua namespace MWLua
{ {

@ -5,9 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {

@ -6,9 +6,8 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp> #include "apps/openmw/mwworld/esmstore.hpp"
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {

@ -5,12 +5,12 @@
#include <components/esm3/loadnpc.hpp> #include <components/esm3/loadnpc.hpp>
#include <components/lua/luastate.hpp> #include <components/lua/luastate.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/mechanicsmanager.hpp> #include "apps/openmw/mwbase/mechanicsmanager.hpp"
#include <apps/openmw/mwbase/world.hpp> #include "apps/openmw/mwbase/world.hpp"
#include <apps/openmw/mwmechanics/npcstats.hpp> #include "apps/openmw/mwmechanics/npcstats.hpp"
#include <apps/openmw/mwworld/class.hpp> #include "apps/openmw/mwworld/class.hpp"
#include <apps/openmw/mwworld/esmstore.hpp> #include "apps/openmw/mwworld/esmstore.hpp"
#include "../classbindings.hpp" #include "../classbindings.hpp"
#include "../localscripts.hpp" #include "../localscripts.hpp"

@ -1,12 +1,13 @@
#include "types.hpp" #include "types.hpp"
#include "../luamanagerimp.hpp" #include "../luamanagerimp.hpp"
#include <apps/openmw/mwbase/inputmanager.hpp>
#include <apps/openmw/mwbase/journal.hpp> #include "apps/openmw/mwbase/inputmanager.hpp"
#include <apps/openmw/mwbase/world.hpp> #include "apps/openmw/mwbase/journal.hpp"
#include <apps/openmw/mwmechanics/npcstats.hpp> #include "apps/openmw/mwbase/world.hpp"
#include <apps/openmw/mwworld/class.hpp> #include "apps/openmw/mwmechanics/npcstats.hpp"
#include <apps/openmw/mwworld/globals.hpp> #include "apps/openmw/mwworld/class.hpp"
#include "apps/openmw/mwworld/globals.hpp"
namespace MWLua namespace MWLua
{ {

@ -5,9 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {

@ -5,9 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {

@ -5,7 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
namespace sol namespace sol
{ {

@ -5,10 +5,6 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {
template <> template <>

@ -7,7 +7,6 @@
#include <components/lua/luastate.hpp> #include <components/lua/luastate.hpp>
#include "apps/openmw/mwbase/environment.hpp" #include "apps/openmw/mwbase/environment.hpp"
#include "apps/openmw/mwbase/world.hpp"
#include "apps/openmw/mwworld/esmstore.hpp" #include "apps/openmw/mwworld/esmstore.hpp"
#include "apps/openmw/mwworld/store.hpp" #include "apps/openmw/mwworld/store.hpp"

@ -5,9 +5,7 @@
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
namespace sol namespace sol
{ {
@ -16,7 +14,6 @@ namespace sol
{ {
}; };
} }
#include <components/resource/resourcesystem.hpp>
namespace namespace
{ {

@ -2,7 +2,7 @@
#include "luamanagerimp.hpp" #include "luamanagerimp.hpp"
#include <apps/openmw/profile.hpp> #include "apps/openmw/profile.hpp"
#include <components/debug/debuglog.hpp> #include <components/debug/debuglog.hpp>
#include <components/settings/values.hpp> #include <components/settings/values.hpp>

@ -1,7 +1,7 @@
#ifndef OPENMW_MWRENDER_AGENTSPATHS_H #ifndef OPENMW_MWRENDER_AGENTSPATHS_H
#define OPENMW_MWRENDER_AGENTSPATHS_H #define OPENMW_MWRENDER_AGENTSPATHS_H
#include <apps/openmw/mwworld/ptr.hpp> #include "apps/openmw/mwworld/ptr.hpp"
#include <osg/ref_ptr> #include <osg/ref_ptr>

@ -9,7 +9,7 @@
#include <components/sceneutil/util.hpp> #include <components/sceneutil/util.hpp>
#include <components/settings/values.hpp> #include <components/settings/values.hpp>
#include <apps/openmw/mwworld/cell.hpp> #include "apps/openmw/mwworld/cell.hpp"
namespace MWRender namespace MWRender
{ {

@ -8,10 +8,10 @@
#include <components/esm3/objectstate.hpp> #include <components/esm3/objectstate.hpp>
#include <components/esm4/loadrefr.hpp> #include <components/esm4/loadrefr.hpp>
#include <apps/openmw/mwbase/environment.hpp> #include "apps/openmw/mwbase/environment.hpp"
#include <apps/openmw/mwbase/world.hpp> #include "apps/openmw/mwbase/world.hpp"
#include <apps/openmw/mwmechanics/spellutil.hpp> #include "apps/openmw/mwmechanics/spellutil.hpp"
#include <apps/openmw/mwworld/esmstore.hpp> #include "apps/openmw/mwworld/esmstore.hpp"
namespace MWWorld namespace MWWorld
{ {

@ -9,8 +9,6 @@
#include <components/misc/strings/lower.hpp> #include <components/misc/strings/lower.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "store.hpp" #include "store.hpp"
namespace MWWorld namespace MWWorld

@ -1,4 +1,5 @@
#include "apps/openmw/mwdialogue/keywordsearch.hpp" #include "apps/openmw/mwdialogue/keywordsearch.hpp"
#include <gtest/gtest.h> #include <gtest/gtest.h>
struct KeywordSearchTest : public ::testing::Test struct KeywordSearchTest : public ::testing::Test

@ -1,4 +1,5 @@
#include <apps/openmw/options.hpp> #include "apps/openmw/options.hpp"
#include <components/files/configurationmanager.hpp> #include <components/files/configurationmanager.hpp>
#include <components/files/conversion.hpp> #include <components/files/conversion.hpp>

Loading…
Cancel
Save