clangd :)

This commit is contained in:
YesseYesseY
2025-04-11 23:40:08 +02:00
parent 37749ebb04
commit 23f215cc0c
4 changed files with 36 additions and 6 deletions

29
.clangd Normal file
View File

@@ -0,0 +1,29 @@
# NOTE: replace /home/yes with your home folder, it won't recognize ~ as the home folder
# I also have no idea what most flags after Wno-prgma-pack does. i kinda just built it in visual studio then copied flags
CompileFlags:
Compiler: clang-cl
Add:
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/um"
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/shared"
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/ucrt"
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/winrt"
- "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/km"
- "-I/home/yes/msvc/VC/Tools/MSVC/14.43.34808/atlmfc/include/"
- "-I/home/yes/msvc/VC/Tools/MSVC/14.43.34808/include/"
- "-I../vendor"
- "/std:c++latest"
- "-ferror-limit=0"
- "-Wno-pragma-pack"
- "/permissive-"
- "/EHsc"
- "/MT"
- "/GS"
- "/Gy"
- "Gm-"
- "/D _UNICODE"
- "/D UNICODE"
- "/fp:precise"
- "/Zc:wchar_t"
- "/Zc:forScope"
- "/Zc:inline"

View File

@@ -53,7 +53,7 @@ public:
float& GetMinNetUpdateFrequency();
const AActor* GetNetOwner() const;
void GetActorEyesViewPoint(FVector* OutLocation, FRotator* OutRotation) const;
AActor* GetClosestActor(UClass* ActorClass, float DistMax, std::function<bool(AActor*)> AdditionalCheck = [&](AActor*) { return true; });
AActor* GetClosestActor(UClass* ActorClass, float DistMax, std::function<bool(AActor*)> AdditionalCheck = [](AActor*) { return true; });
bool IsRelevancyOwnerFor(const AActor* ReplicatedActor, const AActor* ActorOwner, const AActor* ConnectionActor) const
{
@@ -68,4 +68,4 @@ public:
}
static class UClass* StaticClass();
};
};

View File

@@ -1,7 +1,7 @@
#pragma once
#include "Actor.h"
#include "TSubClassOf.h"
#include "TSubclassOf.h"
class APawn : public AActor
{
@@ -23,4 +23,4 @@ public:
static auto AIControllerClassOffset = GetOffset("AIControllerClass");
return Get<TSubclassOf<class AController>>(AIControllerClassOffset);
}
};
};

View File

@@ -36,7 +36,8 @@ template <typename SetType>
class TSet
{
private:
friend TSparseArray;
template <typename>
friend class TSparseArray;
public:
typedef TSetElement<SetType> ElementType;
@@ -217,4 +218,4 @@ public:
mutable TInlineAllocator<1>::ForElementType<int> Hash;
mutable int32 HashSize;
}; */
}; */