|
@@ -17,12 +17,12 @@ Clangd has the best support for cross-compiling workflows, especially if configu
|
|
|
|
|
|
The official clangd extension can be used for C++ comprehension. It is recommended in general, as it is most likely to work on all platforms.
|
|
The official clangd extension can be used for C++ comprehension. It is recommended in general, as it is most likely to work on all platforms.
|
|
|
|
|
|
-clangd uses ``compile_commands.json`` files to understand the project. CMake will generate these in Build/lagom.
|
|
|
|
|
|
+clangd uses ``compile_commands.json`` files to understand the project. CMake will generate these in Build/ladybird.
|
|
Depending on which configuration you use most, set the CompilationDatabase configuration item in the below ``.clangd`` file accordingly. It goes at the root of your checkout (``ladybird/.clangd``):
|
|
Depending on which configuration you use most, set the CompilationDatabase configuration item in the below ``.clangd`` file accordingly. It goes at the root of your checkout (``ladybird/.clangd``):
|
|
|
|
|
|
```yaml
|
|
```yaml
|
|
CompileFlags:
|
|
CompileFlags:
|
|
- CompilationDatabase: Build/lagom
|
|
|
|
|
|
+ CompilationDatabase: Build/ladybird
|
|
|
|
|
|
Diagnostics:
|
|
Diagnostics:
|
|
UnusedIncludes: None
|
|
UnusedIncludes: None
|
|
@@ -60,10 +60,10 @@ following ``c_cpp_properties.json`` to circumvent some errors. Even with the con
|
|
"name": "ladybird-gcc",
|
|
"name": "ladybird-gcc",
|
|
"includePath": [
|
|
"includePath": [
|
|
"${workspaceFolder}",
|
|
"${workspaceFolder}",
|
|
- "${workspaceFolder}/Build/lagom/",
|
|
|
|
- "${workspaceFolder}/Build/lagom/Userland",
|
|
|
|
- "${workspaceFolder}/Build/lagom/Userland/Libraries",
|
|
|
|
- "${workspaceFolder}/Build/lagom/Userland/Services",
|
|
|
|
|
|
+ "${workspaceFolder}/Build/ladybird/",
|
|
|
|
+ "${workspaceFolder}/Build/ladybird/Userland",
|
|
|
|
+ "${workspaceFolder}/Build/ladybird/Userland/Libraries",
|
|
|
|
+ "${workspaceFolder}/Build/ladybird/Userland/Services",
|
|
"${workspaceFolder}/Userland",
|
|
"${workspaceFolder}/Userland",
|
|
"${workspaceFolder}/Userland/Libraries",
|
|
"${workspaceFolder}/Userland/Libraries",
|
|
"${workspaceFolder}/Userland/Services"
|
|
"${workspaceFolder}/Userland/Services"
|
|
@@ -74,7 +74,7 @@ following ``c_cpp_properties.json`` to circumvent some errors. Even with the con
|
|
"cStandard": "c17",
|
|
"cStandard": "c17",
|
|
"cppStandard": "c++23",
|
|
"cppStandard": "c++23",
|
|
"intelliSenseMode": "linux-gcc-x86",
|
|
"intelliSenseMode": "linux-gcc-x86",
|
|
- "compileCommands": "Build/lagom/compile_commands.json",
|
|
|
|
|
|
+ "compileCommands": "Build/ladybird/compile_commands.json",
|
|
"compilerArgs": [
|
|
"compilerArgs": [
|
|
"-Wall",
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Wextra",
|
|
@@ -83,16 +83,16 @@ following ``c_cpp_properties.json`` to circumvent some errors. Even with the con
|
|
"browse": {
|
|
"browse": {
|
|
"path": [
|
|
"path": [
|
|
"${workspaceFolder}",
|
|
"${workspaceFolder}",
|
|
- "${workspaceFolder}/Build/lagom/",
|
|
|
|
- "${workspaceFolder}/Build/lagom/Userland",
|
|
|
|
- "${workspaceFolder}/Build/lagom/Userland/Libraries",
|
|
|
|
- "${workspaceFolder}/Build/lagom/Userland/Services",
|
|
|
|
|
|
+ "${workspaceFolder}/Build/ladybird/",
|
|
|
|
+ "${workspaceFolder}/Build/ladybird/Userland",
|
|
|
|
+ "${workspaceFolder}/Build/ladybird/Userland/Libraries",
|
|
|
|
+ "${workspaceFolder}/Build/ladybird/Userland/Services",
|
|
"${workspaceFolder}/Userland",
|
|
"${workspaceFolder}/Userland",
|
|
"${workspaceFolder}/Userland/Libraries",
|
|
"${workspaceFolder}/Userland/Libraries",
|
|
"${workspaceFolder}/Userland/Services"
|
|
"${workspaceFolder}/Userland/Services"
|
|
],
|
|
],
|
|
"limitSymbolsToIncludedHeaders": true,
|
|
"limitSymbolsToIncludedHeaders": true,
|
|
- "databaseFilename": "${workspaceFolder}/Build/lagom/"
|
|
|
|
|
|
+ "databaseFilename": "${workspaceFolder}/Build/ladybird/"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -165,7 +165,7 @@ The following three example tasks should suffice in most situations, and allow y
|
|
"base": "$gcc",
|
|
"base": "$gcc",
|
|
"fileLocation": [
|
|
"fileLocation": [
|
|
"relative",
|
|
"relative",
|
|
- "${workspaceFolder}/Build/lagom"
|
|
|
|
|
|
+ "${workspaceFolder}/Build/ladybird"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -199,14 +199,14 @@ The following three example tasks should suffice in most situations, and allow y
|
|
"base": "$gcc",
|
|
"base": "$gcc",
|
|
"fileLocation": [
|
|
"fileLocation": [
|
|
"relative",
|
|
"relative",
|
|
- "${workspaceFolder}/Build/lagom"
|
|
|
|
|
|
+ "${workspaceFolder}/Build/ladybird"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"source": "gcc",
|
|
"source": "gcc",
|
|
"fileLocation": [
|
|
"fileLocation": [
|
|
"relative",
|
|
"relative",
|
|
- "${workspaceFolder}/Build/lagom"
|
|
|
|
|
|
+ "${workspaceFolder}/Build/ladybird"
|
|
],
|
|
],
|
|
"pattern": [
|
|
"pattern": [
|
|
{
|
|
{
|
|
@@ -241,14 +241,14 @@ The following three example tasks should suffice in most situations, and allow y
|
|
"base": "$gcc",
|
|
"base": "$gcc",
|
|
"fileLocation": [
|
|
"fileLocation": [
|
|
"relative",
|
|
"relative",
|
|
- "${workspaceFolder}/Build/lagom"
|
|
|
|
|
|
+ "${workspaceFolder}/Build/ladybird"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"source": "gcc",
|
|
"source": "gcc",
|
|
"fileLocation": [
|
|
"fileLocation": [
|
|
"relative",
|
|
"relative",
|
|
- "${workspaceFolder}/Build/lagom"
|
|
|
|
|
|
+ "${workspaceFolder}/Build/ladybird"
|
|
],
|
|
],
|
|
"pattern": [
|
|
"pattern": [
|
|
{
|
|
{
|
|
@@ -275,7 +275,7 @@ The following three example tasks should suffice in most situations, and allow y
|
|
],
|
|
],
|
|
"fileLocation": [
|
|
"fileLocation": [
|
|
"relative",
|
|
"relative",
|
|
- "${workspaceFolder}/Build/lagom"
|
|
|
|
|
|
+ "${workspaceFolder}/Build/ladybird"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|