From da752af9b3d0da15b84b96570abac0c474e752c8 Mon Sep 17 00:00:00 2001 From: bd Date: Wed, 26 Feb 2025 23:58:21 -0500 Subject: ignore ccls language server files --- .gitignore | 2 ++ CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index e788ced..c8346bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ # IDE /.dir-locals.el /manifest.scm +/.ccls-cache +/compile_commands.json # generated __pycache__ diff --git a/CMakeLists.txt b/CMakeLists.txt index 03f0ca3..f9390a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.5) project(risc_vector) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # cpp standard set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -- cgit v1.2.3 From ce10dc7449cabf30e2b56d7d5990af9aa167812d Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 27 Feb 2025 00:21:03 -0500 Subject: Add .clang-format file --- .clang-format | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..df4a55b --- /dev/null +++ b/.clang-format @@ -0,0 +1,9 @@ +--- +Language: Cpp +AlignAfterOpenBracket: AlwaysBreak +AllowAllParametersOfDeclarationOnNextLine: true +BinPackParameters: false +BreakBeforeBraces: Allman +PointerAlignment: Right +ColumnLimit: 80 +IndentWidth: 2 \ No newline at end of file -- cgit v1.2.3 From 658ffc1ad4beae41262800095c2512005531e84e Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 1 Mar 2025 17:07:27 -0500 Subject: update README with dependencies and test information --- .clang-format | 6 ++++-- README.md | 13 ++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.clang-format b/.clang-format index df4a55b..39ed432 100644 --- a/.clang-format +++ b/.clang-format @@ -3,7 +3,9 @@ Language: Cpp AlignAfterOpenBracket: AlwaysBreak AllowAllParametersOfDeclarationOnNextLine: true BinPackParameters: false -BreakBeforeBraces: Allman +BreakBeforeBraces: Linux PointerAlignment: Right ColumnLimit: 80 -IndentWidth: 2 \ No newline at end of file +IndentWidth: 4 +TabWidth: 4 +UseTab: Always \ No newline at end of file diff --git a/README.md b/README.md index 6a8982d..34ae8af 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,19 @@ # Risc V[ECTOR] +## dependencies +- cmake +- g++ (GCC) 11.4.0 +- python 3.10 or newer +- catch2 version 3.5.3 + ## to compile Generate the build directory with + `cmake -S . -B build` -then -`cmake --build build` -## to test +then compile both the simulator and tests with + +`cmake --build build` # about -- cgit v1.2.3