diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-06-17 16:46:58 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-06-17 16:46:58 +0000 |
commit | 813cf55c141b65d2ceaf067dcaad577863d0c7bb (patch) | |
tree | 499746355e48ee8c2972a1d72ad2811b19caf28f /lib | |
parent | 32461f90fb1e3e38ba08b6b3ea2f3c88a6507bfc (diff) | |
download | FreeBSD-src-813cf55c141b65d2ceaf067dcaad577863d0c7bb.zip FreeBSD-src-813cf55c141b65d2ceaf067dcaad577863d0c7bb.tar.gz |
Add clang-format under WITH_CLANG_EXTRAS.
Reviewed by: dim
Approved by: re (gjb)
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D6856
Diffstat (limited to 'lib')
-rw-r--r-- | lib/clang/Makefile | 4 | ||||
-rw-r--r-- | lib/clang/libclangformat/Makefile | 20 | ||||
-rw-r--r-- | lib/clang/libclangformat/Makefile.depend | 15 | ||||
-rw-r--r-- | lib/clang/libclangtoolingcore/Makefile | 19 | ||||
-rw-r--r-- | lib/clang/libclangtoolingcore/Makefile.depend | 15 |
5 files changed, 72 insertions, 1 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile index 71e5202..a42a6da 100644 --- a/lib/clang/Makefile +++ b/lib/clang/Makefile @@ -90,7 +90,9 @@ SUBDIR= libclanganalysis \ libllvmx86utils .if ${MK_CLANG_EXTRAS} != "no" -SUBDIR+=libllvmdebuginfodwarf \ +SUBDIR+=libclangformat \ + libclangtoolingcore \ + libllvmdebuginfodwarf \ libllvmdebuginfopdb \ libllvmlibdriver \ libllvmlto \ diff --git a/lib/clang/libclangformat/Makefile b/lib/clang/libclangformat/Makefile new file mode 100644 index 0000000..6d82a58 --- /dev/null +++ b/lib/clang/libclangformat/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= clangformat + +SRCDIR= tools/clang/lib/Format + +SRCS= BreakableToken.cpp \ + ContinuationIndenter.cpp \ + Format.cpp \ + FormatToken.cpp \ + TokenAnnotator.cpp \ + UnwrappedLineFormatter.cpp \ + UnwrappedLineParser.cpp \ + WhitespaceManager.cpp + +TGHDRS= DiagnosticCommonKinds + +.include "../clang.lib.mk" diff --git a/lib/clang/libclangformat/Makefile.depend b/lib/clang/libclangformat/Makefile.depend new file mode 100644 index 0000000..3e7f3f5 --- /dev/null +++ b/lib/clang/libclangformat/Makefile.depend @@ -0,0 +1,15 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + include \ + include/xlocale \ + lib/libc++ \ + lib/msun \ + + +.include <dirdeps.mk> + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif diff --git a/lib/clang/libclangtoolingcore/Makefile b/lib/clang/libclangtoolingcore/Makefile new file mode 100644 index 0000000..5f7b5e3 --- /dev/null +++ b/lib/clang/libclangtoolingcore/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= clangtoolingcore + +SRCDIR= tools/clang/lib/Tooling/Core +CFLAGS+= -I${LLVM_SRCS}/tools +SRCS= Lookup.cpp \ + Replacement.cpp + +TGHDRS= AttrList \ + Attrs \ + CommentCommandList \ + DeclNodes \ + DiagnosticCommonKinds \ + StmtNodes + +.include "../clang.lib.mk" diff --git a/lib/clang/libclangtoolingcore/Makefile.depend b/lib/clang/libclangtoolingcore/Makefile.depend new file mode 100644 index 0000000..3e7f3f5 --- /dev/null +++ b/lib/clang/libclangtoolingcore/Makefile.depend @@ -0,0 +1,15 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + include \ + include/xlocale \ + lib/libc++ \ + lib/msun \ + + +.include <dirdeps.mk> + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif |