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(); float& GetMinNetUpdateFrequency();
const AActor* GetNetOwner() const; const AActor* GetNetOwner() const;
void GetActorEyesViewPoint(FVector* OutLocation, FRotator* OutRotation) 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 bool IsRelevancyOwnerFor(const AActor* ReplicatedActor, const AActor* ActorOwner, const AActor* ConnectionActor) const
{ {

View File

@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "Actor.h" #include "Actor.h"
#include "TSubClassOf.h" #include "TSubclassOf.h"
class APawn : public AActor class APawn : public AActor
{ {

View File

@@ -36,7 +36,8 @@ template <typename SetType>
class TSet class TSet
{ {
private: private:
friend TSparseArray; template <typename>
friend class TSparseArray;
public: public:
typedef TSetElement<SetType> ElementType; typedef TSetElement<SetType> ElementType;