pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/clang-tools-extra clang-tools-extra: updated to 9...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0403aa9bc5be
branches: trunk
changeset: 342450:0403aa9bc5be
user: adam <adam%pkgsrc.org@localhost>
date: Sat Oct 19 13:58:10 2019 +0000
description:
clang-tools-extra: updated to 9.0.0
9.0.0:
Improvements to clangd
* Background indexing is on by default
When using clangd, it will build an index of your code base (all files listed in your compile database). This index enables go-to-definition, find-references, and even code completion to find symbols
across your project.
This feature can consume a lot of CPU. It can be disabled using the --background-index=false flag, and respects -j to use fewer threads. The index is written to .clangd/index in the project root.
* Contextual code actions
Extract variable, expand auto, expand macro, convert string to raw string. More to come in the future!
* Clang-tidy warnings are available
These will be produced for projects that have a .clang-tidy file in their source tree, as described in the clang-tidy documentation.
* Improved diagnostics
Errors from headers are now shown (on the #including line). The message now indicates if fixes are available. Navigation between errors and associated notes is improved (for editors that support
Diagnostic.relatedInformation).
* Suggested includes
When a class or other name is not found, clangd may suggest to fix this by adding the corresponding #include directive.
* Semantic highlighting
clangd can push syntax information to the editor, allowing it to highlight e.g. member variables differently from locals. (requires editor support)
This implements the proposed protocol from https://github.com/microsoft/vscode-languageserver-node/pull/367
* Type hierachy
Navigation to base/derived types is possible in editors that support the proposed protocol from https://github.com/microsoft/vscode-languageserver-node/pull/426
* Improvements to include insertion
Only headers with #include-guards will be inserted, and the feature can be disabled with the --header-insertion=never flag.
Standard library headers should now be inserted more accurately, particularly for C++ other than libstdc++, and for the C standard library.
* Code completion
Overloads are bundled into a single completion item by default. (for editors that support signature-help).
Redundant const/non-const overloads are no longer shown.
Before clangd is warmed up (during preamble build), limited identifier- and index-based code completion is available.
* Format-on-type
A new implementation of format-on-type is triggered by hitting enter: it attempts to reformat the previous line and reindent the new line. (Requires editor support).
* Toolchain header detection
Projects that use an embedded gcc toolchain may only work when used with the corresponding standard library. clangd can now query the toolchain to find these headers. The compilation database must
correctly specify this toolchain, and the --query-driver=/path/to/toolchain/bin/* flag must be passed to clangd.
* Miscellaneous improvements
Hover now produces richer Markdown-formatted text (for supported editors).
Rename is safer and more helpful, though is still within one file only.
Files without extensions (e.g. C++ standard library) are handled better.
clangd can understand offsets in UTF-8 or UTF-32 through command-line flags or protocol extensions. (Useful with editors/platforms that don?t speak UTF-16).
Editors that support edits near the cursor in code-completion can set the textDocument.completion.editsNearCursor capability to true, and clangd will provide completions that correct . to ->, and
vice-versa.
Improvements to clang-tidy
New OpenMP module.
New abseil-duration-addition check.
New abseil-duration-conversion-cast check.
New abseil-duration-unnecessary-conversion check.
New abseil-time-comparison check.
New abseil-time-subtraction check.
New android-cloexec-pipe check.
New android-cloexec-pipe2 check.
New bugprone-branch-clone check.
New bugprone-posix-return check.
New bugprone-unhandled-self-assignment check.
New fuchsia-default-arguments-calls check.
New fuchsia-default-arguments-declarations check.
New google-objc-avoid-nsobject-new check.
New google-readability-avoid-underscore-in-googletest-name check.
New llvm-prefer-isa-or-dyn-cast-in-conditionals check.
New modernize-use-trailing-return-type check.
New objc-super-self check.
New openmp-exception-escape check.
New openmp-use-default-none check.
New readability-convert-member-functions-to-static check.
New alias cert-oop54-cpp to bugprone-unhandled-self-assignment was added.
New alias cppcoreguidelines-explicit-virtual-functions to modernize-use-override was added.
Added UseAssignment option to cppcoreguidelines-pro-type-member-init
The fuchsia-default-arguments check has been removed.
The google-runtime-int check has been disabled in Objective-C++.
The modernize-use-override now supports OverrideSpelling and FinalSpelling options.
The misc-throw-by-value-catch-by-reference now supports WarnOnLargeObject and MaxSize options to warn on any large trivial object caught by value.
The Acronyms and IncludeDefaultAcronyms options for the objc-property-declaration check have been removed.
Improvements to pp-trace
* Added a new option -callbacks to filter preprocessor callbacks. It replaces the -ignore option.
diffstat:
lang/clang-tools-extra/Makefile | 5 ++---
lang/clang-tools-extra/PLIST | 5 ++++-
lang/clang-tools-extra/distinfo | 18 +++++++++---------
3 files changed, 15 insertions(+), 13 deletions(-)
diffs (80 lines):
diff -r 4cf1d3558784 -r 0403aa9bc5be lang/clang-tools-extra/Makefile
--- a/lang/clang-tools-extra/Makefile Sat Oct 19 13:57:05 2019 +0000
+++ b/lang/clang-tools-extra/Makefile Sat Oct 19 13:58:10 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2019/08/05 19:06:49 adam Exp $
+# $NetBSD: Makefile,v 1.5 2019/10/19 13:58:10 adam Exp $
.include "../../lang/clang/Makefile.common"
@@ -7,7 +7,6 @@
COMMENT= Extra Clang tools
_EXTRA_DIST= ${DISTNAME:S/cfe/clang-tools-extra/}${EXTRACT_SUFX}
-SITES.${_EXTRA_DIST}= ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
DISTFILES= ${DEFAULT_DISTFILES} ${_EXTRA_DIST}
@@ -18,9 +17,9 @@
CMAKE_ARGS+= -DCLANG_ENABLE_STATIC_ANALYZER=ON
+REPLACE_PYTHON+= tools/extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
REPLACE_PYTHON+= tools/extra/clang-tidy/tool/clang-tidy-diff.py
REPLACE_PYTHON+= tools/extra/clang-tidy/tool/run-clang-tidy.py
-REPLACE_PYTHON+= tools/extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
.PHONY: inject-clang-tools
post-extract: inject-clang-tools
diff -r 4cf1d3558784 -r 0403aa9bc5be lang/clang-tools-extra/PLIST
--- a/lang/clang-tools-extra/PLIST Sat Oct 19 13:57:05 2019 +0000
+++ b/lang/clang-tools-extra/PLIST Sat Oct 19 13:58:10 2019 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1 2019/03/27 06:24:22 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/10/19 13:58:10 adam Exp $
bin/clang-apply-replacements
bin/clang-change-namespace
+bin/clang-doc
bin/clang-include-fixer
bin/clang-query
bin/clang-reorder-fields
@@ -11,6 +12,7 @@
lib/libclangApplyReplacements.a
lib/libclangChangeNamespace.a
lib/libclangDaemon.a
+lib/libclangDaemonTweaks.a
lib/libclangDoc.a
lib/libclangIncludeFixer.a
lib/libclangIncludeFixerPlugin.a
@@ -32,6 +34,7 @@
lib/libclangTidyMiscModule.a
lib/libclangTidyModernizeModule.a
lib/libclangTidyObjCModule.a
+lib/libclangTidyOpenMPModule.a
lib/libclangTidyPerformanceModule.a
lib/libclangTidyPlugin.a
lib/libclangTidyPortabilityModule.a
diff -r 4cf1d3558784 -r 0403aa9bc5be lang/clang-tools-extra/distinfo
--- a/lang/clang-tools-extra/distinfo Sat Oct 19 13:57:05 2019 +0000
+++ b/lang/clang-tools-extra/distinfo Sat Oct 19 13:58:10 2019 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.3 2019/08/05 19:06:49 adam Exp $
+$NetBSD: distinfo,v 1.4 2019/10/19 13:58:10 adam Exp $
-SHA1 (cfe-8.0.1.src.tar.xz) = e1d7f274c4fd623f19255cc52c6d7b39cf8769ee
-RMD160 (cfe-8.0.1.src.tar.xz) = 8bec1ef0e0e49000886d8caed5ef42fb56a418b2
-SHA512 (cfe-8.0.1.src.tar.xz) = 1227b2d32052c70b4b494659849000188fce46fc31a71f3352ba8457ac0b0b17e4bc7c8589874c8586d55aa808ee6c1fceb7df501aafa33599f8df7bfd2b791d
-Size (cfe-8.0.1.src.tar.xz) = 12810056 bytes
-SHA1 (clang-tools-extra-8.0.1.src.tar.xz) = 0174e060781fc01e5f97f2ff9b51a03165d7b37a
-RMD160 (clang-tools-extra-8.0.1.src.tar.xz) = f9d1192759b699cc1902eca8f0c71a3a9b0a06ad
-SHA512 (clang-tools-extra-8.0.1.src.tar.xz) = d39962c30ee9d8a1679d8007009b48dea2c8aaeb283bed781a9e22a1a57b8186c2cfe058da046658882ace1c84a30ddf9b4cb75bce988891189e8423b6c6a72c
-Size (clang-tools-extra-8.0.1.src.tar.xz) = 1994068 bytes
+SHA1 (cfe-9.0.0.src.tar.xz) = 6977cf7a802a053c57fa74138d3648b563e71e88
+RMD160 (cfe-9.0.0.src.tar.xz) = 43a9fde0f388fe6d021357bb4382bef6d445f279
+SHA512 (cfe-9.0.0.src.tar.xz) = 83fcca5499102b375e620cdac97d75e6111ebed4ef10240859ddd8a88bc5b022703739d2eae0d8693c91892ad11fc6b531c0dbee62fbce68d3be595b94f0b1fe
+Size (cfe-9.0.0.src.tar.xz) = 13533024 bytes
+SHA1 (clang-tools-extra-9.0.0.src.tar.xz) = ac64403321d8486699d8bea5376b2438663dbb41
+RMD160 (clang-tools-extra-9.0.0.src.tar.xz) = 284072baa8c9771de7e35cb1e9ad4ed813ff20c9
+SHA512 (clang-tools-extra-9.0.0.src.tar.xz) = 70fd5cdeb8d371e5bbc369bdea3b94a1e3f450e1fdc109a2328d75b30a09c56fbed31678e211172e0a1fc1ff82c9ab4dfea4238be2cc0b82598f71ce9b7ab7d3
+Size (clang-tools-extra-9.0.0.src.tar.xz) = 2183436 bytes
SHA1 (patch-tools_extra_clangd_CMakeLists.txt) = a9c3c2686f04a06eef10c1ebc14f0c95fef4a9e7
Home |
Main Index |
Thread Index |
Old Index