diff --git a/README.md b/README.md index bae1fb2c..0b53dc81 100644 --- a/README.md +++ b/README.md @@ -17,13 +17,13 @@ see [github/Rconybea/indentlog](https://github.com/Rconybea/indentlog) ### copy `refcnt` repository locally ``` $ git clone git@github.com:rconybea/refcnt.git -$ ls -d refcnt -refcnt +$ ls -d xo-refcnt +xo-refcnt ``` ### build + install ``` -$ cd refcnt +$ cd xo-refcnt $ mkdir build $ cd build $ cmake -DCMAKE_MODULE_PATH=${INSTALL_PREFIX}/share/cmake -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} .. @@ -39,22 +39,28 @@ $ git clone git@github.com:rconybea/xo-nix.git $ ls -d xo-nix xo-nix $ cd xo-nix -$ nix-build -A refcnt +$ nix-build -A xo-refcnt ``` ### build for unit test coverage ``` -$ cd refcnt +$ cd xo-refcnt $ mkdir ccov $ cd ccov $ cmake -DCMAKE_MODULE_PATH=${INSTALL_PREFIX}/share/cmake -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} -DCODE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug .. ``` +### LSP support +``` +$ cd xo-refcnt +$ ln -s build/compile_commands.json # lsp will look for compile_commands.json in the root of the source tree +``` + ## Examples ### 1 ``` -#include "refcnt/Refcounted.hpp" +#include "xo/refcnt/Refcounted.hpp" using xo::ref::Refcounted; diff --git a/include/xo/refcnt/Refcounted.hpp b/include/xo/refcnt/Refcounted.hpp index dc069cf5..3db621a1 100644 --- a/include/xo/refcnt/Refcounted.hpp +++ b/include/xo/refcnt/Refcounted.hpp @@ -2,8 +2,8 @@ #pragma once -#include "indentlog/scope.hpp" -#include "cxxutil/demangle.hpp" +#include "xo/indentlog/scope.hpp" +#include "xo/cxxutil/demangle.hpp" //#include #include diff --git a/utest/intrusive_ptr.test.cpp b/utest/intrusive_ptr.test.cpp index f9d1f212..bc45d38c 100644 --- a/utest/intrusive_ptr.test.cpp +++ b/utest/intrusive_ptr.test.cpp @@ -1,7 +1,7 @@ /* @file intrusive_ptr.test.cpp */ #include "Refcounted.hpp" -#include "indentlog/scope.hpp" +#include "xo/indentlog/scope.hpp" #include "catch2/catch.hpp" #include #include