Skip to content

Commit 6d592d1

Browse files
committed
update with llvm 19 linting fixups
1 parent 26e5c0b commit 6d592d1

File tree

7 files changed

+11
-2
lines changed

7 files changed

+11
-2
lines changed

src/console.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "pch.h"
22

3+
#include "console.h"
34
#include "version.inl"
45

56
namespace pluginloader::console {

src/dllmain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @param ul_reason_for_call Reason this is being called.
1212
* @return True if loaded successfully, false otherwise.
1313
*/
14-
// NOLINTNEXTLINE(readability-identifier-naming) - for `DllMain`
14+
// NOLINTNEXTLINE(misc-use-internal-linkage, readability-identifier-naming) - for `DllMain`
1515
BOOL APIENTRY DllMain(HMODULE h_module, DWORD ul_reason_for_call, LPVOID /*unused*/) {
1616
switch (ul_reason_for_call) {
1717
case DLL_PROCESS_ATTACH:

src/loader.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44

55
namespace pluginloader::loader {
66

7+
namespace {
8+
79
const constexpr auto PLUGINS_DIR_NAME = "Plugins";
810

911
std::vector<HMODULE> loaded_modules{};
1012

13+
} // namespace
14+
1115
void load(HMODULE this_dll) {
1216
wchar_t buf[MAX_PATH];
1317
if (GetModuleFileNameW(this_dll, &buf[0], ARRAYSIZE(buf)) == 0) {

src/proxy/d3d11.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "pch.h"
22

3+
#include "proxy.h"
34
#include "util.h"
45

56
// Based on https://github.com/FromDarkHell/BL3DX11Injection/

src/proxy/dsound.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "pch.h"
22

3+
#include "proxy.h"
34
#include "util.h"
45

56
namespace pluginloader::proxy {

src/proxy/none.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "pch.h"
22

3+
#include "proxy.h"
4+
35
// Empty proxy for dlls where we don't need to forward anything.
46

57
namespace pluginloader::proxy {

src/proxy/xinput1_3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "pch.h"
2-
#include <libloaderapi.h>
32

3+
#include "proxy.h"
44
#include "util.h"
55

66
namespace pluginloader::proxy {

0 commit comments

Comments
 (0)