aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/clangd.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/clangd.in')
-rw-r--r--cmake/modules/clangd.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/cmake/modules/clangd.in b/cmake/modules/clangd.in
new file mode 100644
index 0000000..9388250
--- /dev/null
+++ b/cmake/modules/clangd.in
@@ -0,0 +1,32 @@
+#ClangTidy config is merged w/ .clang-tidy where this file takes precedence
+#Diagnostics:
+# ClangTidy:
+# Add: [clang-diagnostic-*, clang-analyzer-*, modernize-*, bugprone-*]
+#
+# Remove: [modernize-use-auto, modernize-use-nodiscard, modernize-use-using, modernize-use-trailing-return-type,
+# modernize-avoid-c-arrays, modernize-use-default-member-init, modernize-return-braced-init-list,
+# modernize-avoid-bind, modernize-use-transparent-functors,
+# bugprone-reserved-identifier, bugprone-easily-swappable-parameters, bugprone-assignment-in-if-condition,
+# bugprone-misplaced-widening-cast, bugprone-branch-clone]
+#
+# CheckOptions:
+# modernize-use-default-member-init.UseAssignment: true
+
+# Tell clangd to use the compile_commands.json file in the build/default folder
+CompileFlags:
+ CompilationDatabase: @CMAKE_CURRENT_BINARY_DIR@
+ Add: [@gamp_clangd_source_args@]
+
+Diagnostics:
+ UnusedIncludes: Strict
+
+InlayHints:
+ Enabled: No
+ BlockEnd: Yes
+ Designators: No
+ ParameterNames: Yes
+ DeducedTypes: Yes
+ TypeNameLimit: 24
+
+Hover:
+ ShowAKA: Yes