Commit Graph

11 Commits

Author SHA1 Message Date
Michael Livshin
8e06a39574 clang-tools: fix clangd
Whatever change has necessitated
https://github.com/NixOS/nixpkgs/pull/122044, it also broke clangd --
<clang-wrapper>/resource-root/include is no longer automagically
searched for includes, which kills pretty much any indexing since that
directory contains vital stuff like stddef.h etc.

Fix by appending the directory to CPATH & CPLUS_INCLUDE_PATH in the
clangd wrapper.
2021-06-13 17:31:16 +03:00
Michael Livshin
782cb7aea0 fix clangd wrapper
* get libc-cflags and libcxx-cxxflags from the sibling clang
  derivation.

* fix the order of those for C++ (libc-cflags use -idirafter for a
  reason).
2021-04-24 10:37:57 +03:00
Ben Siraphob
c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
Jörg Thalheim
1caddbe258
clang-tools: fix substitution in wrapper 2019-12-01 17:12:00 +00:00
Jörg Thalheim
a10ef1aa4f
clang-tools: teach about nix's include path
By translating NIX_CFLAGS_COMPILE to CPATH,
all tools will now find c headers properly,
when run in a nix-shell.
2019-11-13 18:29:58 +00:00
Peter Hoeg
c29a53b3ce clang-tools: install clangd as well 2019-07-24 16:33:44 +08:00
worldofpeace
3f4a353737 treewide: use dontUnpack 2019-07-01 04:23:51 -04:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Orivej Desh
8dddd6d4a1 clang-tools: override llvm version in all-packages 2019-01-05 11:19:37 +00:00
Jörg Thalheim
973bc2f2ae
clang-tools: 5 -> 7
Since this not typically used as build dependencies, just use the latest
and greatest.
2019-01-03 21:57:15 +01:00
Andreas Herrmann
4a3e6d3091 clang-tools: New package
Creates and installs wrapper scripts around the clang-tools from
`llvmPackages.clang-unwrapped`.

Motivation
----------

Fixes #9214

Allows to install clang-tools for C++ development without also installing the
clang compiler and its tool-chain. This way it is possible to use e.g.
`clang-format` without conflicting with e.g. GCC's tool-chain, or the global
system tool-chain.
2016-09-28 09:31:30 +02:00