From 98c071d7eeea7369866f742d84ce2fb49d04858a Mon Sep 17 00:00:00 2001 From: cspark Date: Thu, 20 Nov 2025 01:30:17 +0000 Subject: [PATCH] Update README --- README.org | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/README.org b/README.org index 84a769f..2c1d464 100644 --- a/README.org +++ b/README.org @@ -1,16 +1,4 @@ * NixOS C++ Dev Template -Having issues getting clangd to detect std header files despite clang++ and g++ having no issues. So this template/workaround solves this. +Due to issues with clangd, switched to cc-ls. -I assume this is due to some wrapper script nonsense. - -As a workaround I use bear to generate the necessary paths/arguments to get clangd to pick these up. - -#+BEGIN_SRC -bear -- clang++ main.cpp -#+END_SRC - -In the generated compile_commands.json. There is a command for generating the main project but also a temporary object file. - -I assume this is more weird wrapper stuff (Bear does not support nixos clang wrappers) - -You need to move the cxx_isystem related flags as these are where the c++ stdlibs are kept. Also just rename them to isystem otherwise they dont work for whatever reason. +Also now a basic CMake template.