From 2d26a4268fb2b9c790f6edef9d3f9349f8082f74 Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Fri, 2 Apr 2021 12:55:13 +0800 Subject: [PATCH] clangd --- .clang-format | 4 ++++ .gitignore | 2 ++ package/dev.sh | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..d33dc46 --- /dev/null +++ b/.clang-format @@ -0,0 +1,4 @@ +BasedOnStyle: LLVM +IndentWidth: 4 +TabWidth: 4 +UseTab: ForIndentation diff --git a/.gitignore b/.gitignore index acc7bb5..1ea7f7d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ .DS_Store __pycache__ /.vscode +/.cache /font-builder/src/*.otd /font-builder/out /build /release +/compile_commands.json diff --git a/package/dev.sh b/package/dev.sh index dea2e59..cacb33c 100644 --- a/package/dev.sh +++ b/package/dev.sh @@ -1,9 +1,13 @@ #!/bin/bash +rm -r build/ release/ + cmake . -B build/ \ + -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ -DCMAKE_BUILD_TYPE="RelWithDebugInfo" cmake --build build/ -j$(nproc) +ln -s build/compile_commands.json . source build/config/config.sh VERSION=$VERSION-dev