Skip to content

Instantly share code, notes, and snippets.

@hxhc
hxhc / .clang-tidy
Created November 13, 2022 10:57
clang-tidy yaml configuration
Diagnostics:
ClangTidy:
Add:
[
boost-*,
bugprone-*,
clang-analyzer-*,
cppcoreguidelines-*,
modernize-*,
openmp-*,
@hxhc
hxhc / vimrc
Last active July 14, 2023 10:06
vimrc
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
" Enable plugins and load plugin for the detected file type.
filetype plugin on
" Load an indent file for the detected file type.
@hxhc
hxhc / clang-format.yaml
Created July 11, 2023 10:19
clang-format
---
# 语言: None, Cpp, Java, JavaScript, ObjC, Proto, TableGen, TextProto
Language: Cpp
BasedOnStyle: Google
# 每行字符的限制,0表示没有限制
ColumnLimit: 120
# 访问说明符(public、private等)的偏移
AccessModifierOffset: -4
# 开括号(开圆括号、开尖括号、开方括号)后的对齐: Align, DontAlign, AlwaysBreak(总是在开括号后换行)
AlignAfterOpenBracket: Align