-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: register operator api refine with optional
Signed-off-by: Jason Shui <jiashui@hotmail.com>
- Loading branch information
1 parent
b6a0db0
commit 5c3aeea
Showing
8 changed files
with
121 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"configurations": [ | ||
|
||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "LLDB Launch", | ||
"program": "${workspaceFolder}/build/shuidb", | ||
"args": [ | ||
"${workspaceFolder}/build/hello_world" | ||
], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"name": "(gdb) Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/build/shuidb", | ||
"args": [ | ||
"${workspaceFolder}/build/hello_world" | ||
], | ||
"stopAtEntry": false, | ||
"cwd": "${fileDirname}", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"miDebuggerPath": "/usr/bin/gdb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Test", | ||
"text": "python import sys;sys.path.insert(0, '/usr/share/gcc/python');from libstdcxx.v6.printers import register_libstdcxx_printers;register_libstdcxx_printers(None)", | ||
"ignoreFailures": false | ||
}, | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
}, | ||
{ | ||
"description": "Set Disassembly Flavor to Intel", | ||
"text": "-gdb-set disassembly-flavor intel", | ||
"ignoreFailures": true | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" | ||
sudo apt install -y libc++abi-17-dev libc++-17-dev lldb-17 clangd-17 | ||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100 | ||
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100 | ||
sudo update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-17 100 | ||
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-17 100 | ||
LLVM_VERSION=16 | ||
|
||
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" -- $LLVM_VERSION all | ||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-$LLVM_VERSION 300 | ||
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-$LLVM_VERSION 300 | ||
sudo update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-$LLVM_VERSION 300 | ||
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-$LLVM_VERSION 300 | ||
clang -v | ||
clang++ -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters