摘要: Cpp CppCoreGuidelines Compiler Explorer Other obsidian插件 快速掌握一个语言最常用的50% 阅读全文
posted @ 2025-06-21 16:23 又玄 阅读(7) 评论(0) 推荐(0)
摘要: "clangd.arguments": [ // 启用 Clang-Tidy 以提供「静态检查」 "--clang-tidy", // "--clang-tidy-executable=${workspaceFolder}/prebuilts/clang/ohos/linux-x86_64/llvm 阅读全文
posted @ 2025-04-21 21:21 又玄 阅读(464) 评论(1) 推荐(0)
摘要: # Debian/Ubuntu sudo apt install git-delta # Arch Linux sudo pacman -S git-delta # MacOS (Homebrew) brew install git-delta git config --global core.pa 阅读全文
posted @ 2025-04-10 18:11 又玄 阅读(25) 评论(0) 推荐(0)
摘要: inline inline cppreference 重定义 举例: .LC0: .string "\345\245\207" .LC1: .string "\345\201\266" num_check(int): push rbp mov rbp, rsp mov DWORD PTR [rbp- 阅读全文
posted @ 2025-04-01 13:55 又玄 阅读(30) 评论(1) 推荐(0)
摘要: 当运行 pacman 报错时 sudo pacman -Syy pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_callback_set2 可以打开网址https://arch 阅读全文
posted @ 2025-03-31 20:21 又玄 阅读(122) 评论(0) 推荐(0)
摘要: 鸿蒙代码自检项 自检项 自检结果 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 成员变量进行赋值或创建需要排查并发 谨慎在lambda表达式中使用引用捕获 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 map\vector\list\set等stl模板类使用时需要排查并发 谨慎 阅读全文
posted @ 2025-03-27 16:21 又玄 阅读(37) 评论(0) 推荐(0)
摘要: https://godbolt.org/ cppinsights tar -czvf 压缩文件名.tar.gz 要压缩的文件/目录 -c:创建新归档文件。 -z:使用 gzip 压缩。 -v:显示详细信息。 -f:指定输出的文件名。 tar -xzvf 压缩文件名.tar.gz 完整命令速查表 操作 阅读全文
posted @ 2025-03-26 17:11 又玄 阅读(18) 评论(0) 推荐(0)
摘要: 工具 clangd compelie_commands.json 项目 TinyWebServer 第三方库 日志库 https://www.zhihu.com/question/613879711/answer/3134744187?utm_psn=1888275055890371346 提到的 阅读全文
posted @ 2025-03-26 17:07 又玄 阅读(13) 评论(0) 推荐(0)
摘要: export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup curl --prot 阅读全文
posted @ 2025-03-24 19:25 又玄 阅读(190) 评论(0) 推荐(0)
摘要: 指针 struct C { int x, y; } c; int* px = &c.x; int* pxe= px + 1; int* py = &c.y; int main() { printf("value of c.x: = %d\n", c.x); printf("value of c.y: 阅读全文
posted @ 2025-03-17 17:33 又玄 阅读(7) 评论(0) 推荐(0)