配一下clang-tidy
参考clang-tidy checkers 最后成品 UseColor: true Checks: > android-cloexec-*, android-comparison-in-temp-failure-retry, bugprone-*, clang-analyzer-*, modernize-*, -modernize-use-trailing...
参考clang-tidy checkers 最后成品 UseColor: true Checks: > android-cloexec-*, android-comparison-in-temp-failure-retry, bugprone-*, clang-analyzer-*, modernize-*, -modernize-use-trailing...
如果hook了库函数,集成的时候对于运行时库的link顺序其实是有点要求的 计算机系统篇之链接(16):真正理解 RTLD_NEXT 的作用 Dangers of using dlsym() with RTLD_NEXT linux hook机制研究
leveldb在unix下编译很简单,不赘述。 之前看代码都是在linux下编译的,在win下看相关的实现的话,还是要配合编译一下的 本次编译环境 win == 11 cmake == 3.31.0 ninja == 1.12.1 clang == 18.1.0rc msvc == 2022 到手clone文件之后首先还是把third_party里的submo...
undefine behavior On the limits of time travel in the face of undefined behavior in C Undefined behavior can result in time travel (among other things, but time travel is the funkiest) What...
起因是看到这个Speeding up the insertion of a sorted (or mostly-sorted) key list into a std::map or other ordered associative container 代码对比 // normal for (auto&& v : source) { map.try_emplac...
自己手写代码应该是拍马都赶不上lib里的了,都用linux下x86的实现来看看. 实际上这些mem相关的操作,在现代cpu上都有rep ***这种指令。 memcpy 实现32和64的分离了,最后还是一套,代码在arch/x86/lib/memcpy_64.S和arch/x86/lib/memcpy_32.S里 // SPDX-License-Identifier: GPL-2.0 ...
描述一下删除文件可能遇到的错误场景 最常见的情况就是文件属性问题,比如权限不够,或者文件被保护之类的 lsattr -a <file> chattr -R -a -i <file> rm -rf <file> 用lsattr看文件属性,常见的描述 a - append only c - compressed d - no dump e - e...
muduo的tcpclient属于tcp connection + connector的组合使用封装 首先看到构造tcpclient,然后connection,有connected回调之后就可以关注业务逻辑了、 构造 TcpClient::TcpClient(EventLoop* loop, const InetAddress& ser...
One Billion Row Challenge in Golang - From 95s to 1.96s One Billion Row Challenge in Golang - From 95s to 1.96s 程序员阅读清单:我喜欢的 100 篇技术文章 程序员阅读清单:我喜欢的 100 篇技术文章(1-20) 程序员阅读清单:我喜欢的 100 篇技术文...
android studio在国内安装插件的时候遇到网速慢的问题,可以配置代理 在Settings->Appearance & Behavior->System Settings->HTTP Proxy中配置代理 自己如果有http代理的话就manual配置,如果没有的话可以考虑用aliyun或者腾讯的代理网址 下面两个任选一个就可以 https://mir...