Skip to content

Commit

Permalink
update with llvm 19 linting fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
apple1417 committed Oct 2, 2024
1 parent 26e5c0b commit 6d592d1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/console.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "pch.h"

#include "console.h"
#include "version.inl"

namespace pluginloader::console {
Expand Down
2 changes: 1 addition & 1 deletion src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @param ul_reason_for_call Reason this is being called.
* @return True if loaded successfully, false otherwise.
*/
// NOLINTNEXTLINE(readability-identifier-naming) - for `DllMain`
// NOLINTNEXTLINE(misc-use-internal-linkage, readability-identifier-naming) - for `DllMain`
BOOL APIENTRY DllMain(HMODULE h_module, DWORD ul_reason_for_call, LPVOID /*unused*/) {
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
Expand Down
4 changes: 4 additions & 0 deletions src/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

namespace pluginloader::loader {

namespace {

const constexpr auto PLUGINS_DIR_NAME = "Plugins";

std::vector<HMODULE> loaded_modules{};

} // namespace

void load(HMODULE this_dll) {
wchar_t buf[MAX_PATH];
if (GetModuleFileNameW(this_dll, &buf[0], ARRAYSIZE(buf)) == 0) {
Expand Down
1 change: 1 addition & 0 deletions src/proxy/d3d11.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "pch.h"

#include "proxy.h"
#include "util.h"

// Based on https://github.com/FromDarkHell/BL3DX11Injection/
Expand Down
1 change: 1 addition & 0 deletions src/proxy/dsound.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "pch.h"

#include "proxy.h"
#include "util.h"

namespace pluginloader::proxy {
Expand Down
2 changes: 2 additions & 0 deletions src/proxy/none.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "pch.h"

#include "proxy.h"

// Empty proxy for dlls where we don't need to forward anything.

namespace pluginloader::proxy {
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/xinput1_3.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "pch.h"
#include <libloaderapi.h>

#include "proxy.h"
#include "util.h"

namespace pluginloader::proxy {
Expand Down

0 comments on commit 6d592d1

Please sign in to comment.