Closed WilliamHsieh closed 11 months ago
"clangd".text = (builtins.readFile ./config.nix) + '' ${pkgs.gcc}/bin/cpp -v -x c++ /dev/null 2>&1 | sed -n -e "/#include <...>/,/End/p" | sed '1d;$d' | sed 's/ / - -I/' '';
https://stackoverflow.com/questions/4980819/what-are-the-gcc-default-include-directories
https://clangd.llvm.org/guides/system-headers#query-driver
https://stackoverflow.com/questions/4980819/what-are-the-gcc-default-include-directories