Xinqi Bao's Git

add .config/clangd
authorXinqi Bao <[email protected]>
Wed, 29 Dec 2021 09:11:30 +0000 (17:11 +0800)
committerXinqi Bao <[email protected]>
Wed, 29 Dec 2021 09:11:30 +0000 (17:11 +0800)
.config/clangd/config.yaml [new file with mode: 0644]

diff --git a/.config/clangd/config.yaml b/.config/clangd/config.yaml
new file mode 100644 (file)
index 0000000..709ad13
--- /dev/null
@@ -0,0 +1,30 @@
+CompileFlags:
+  Add: [
+    -Wall,
+    #-Wextra -Werror,
+    -xc++,
+    -std=c++11,
+    -DCLANGD=1,
+
+    -I.,
+    -Ilib,
+    -Iinclude,
+
+    -I/home/xbao/lib,
+
+    -DVERBOSE=1,
+  ]
+  Remove: []
+
+Diagnostics:
+  ClangTidy:
+    Add: [
+      #performance-*,
+      #bugprone-*,
+      #portability-*,
+      #modernize-*,
+    ]
+    Remove: [
+      #misc-definitions-in-headers,
+      #modernize-use-trailing-return-type,
+    ]