Intellisense clangd fix
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
#include "Engine/GameViewportClient.h"
|
#include "Engine/GameViewportClient.h"
|
||||||
|
#include "Layout/WidgetPath.h"
|
||||||
#include "LuprexViewportClient.generated.h"
|
#include "LuprexViewportClient.generated.h"
|
||||||
|
|
||||||
UCLASS()
|
UCLASS()
|
||||||
|
|||||||
4
build.py
4
build.py
@@ -309,7 +309,7 @@ def build_compile_commands_from_luprex():
|
|||||||
parts = line.split()
|
parts = line.split()
|
||||||
if (parts[0] == "g++") and ("-c" in parts):
|
if (parts[0] == "g++") and ("-c" in parts):
|
||||||
source = os.path.abspath(os.path.join(INTEGRATION, parts[-1]))
|
source = os.path.abspath(os.path.join(INTEGRATION, parts[-1]))
|
||||||
entries.append({ "file": source, "command": line, "directory": INTEGRATION })
|
entries.append({ "file": source, "command": line.replace("g++ ", "g++ -D__INTELLISENSE__ ", 1), "directory": INTEGRATION })
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ def build_compile_commands_from_integration():
|
|||||||
ccdir = f"{UNREALENGINE}/Engine/Source"
|
ccdir = f"{UNREALENGINE}/Engine/Source"
|
||||||
for cpp in sorted(cpp_to_rsp.keys()):
|
for cpp in sorted(cpp_to_rsp.keys()):
|
||||||
rsp = cpp_to_rsp[cpp]
|
rsp = cpp_to_rsp[cpp]
|
||||||
args = [clang, "@"+rsp]
|
args = [clang, "-D__INTELLISENSE__", "@"+rsp]
|
||||||
entries.append({ "file": cpp, "arguments": args, "directory": ccdir })
|
entries.append({ "file": cpp, "arguments": args, "directory": ccdir })
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user