pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/clang-tools-extra



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Apr 18 07:58:50 UTC 2020

Modified Files:
        pkgsrc/lang/clang-tools-extra: PLIST distinfo

Log Message:
clang-tools-extra: updated to 10.0.0

What’s New in Extra Clang Tools 10.0.0?

Some of the major new features and improvements to Extra Clang Tools are listed here. Generic improvements to Extra Clang Tools as a whole or to its underlying infrastructure are described first, 
followed by tool-specific sections.

Improvements to clangd

clangd documentation is now found at https://clangd.llvm.org/
Go-to-definition, hover, find-references etc use a new mechanism to identify what is under the cursor, which is (hopefully) more consistent and accurate.
clangd should be able to reliably locate the standard library/SDK on macOS.
Shutdown more cleanly on receiving a signal. In particular temporary PCH files should be cleaned up.
Find references now works on macros.
clangd can be more easily used remotely or in a docker container.
The --path-mappings flag translates between local and remote paths.
Experimental support for renaming across files (behind the --cross-file-rename flag).
Hover now exposes more information, including the type of symbols and the value of constant expressions.
Go to definition now works in dependent code in more cases, by assuming the primary template is used.
Better recovery and reporting when the compile command for a file can’t be fully parsed.
Switch header/source (an extension) now uses index information in addition to filename heuristics, and is much more robust.
Semantic selection (expand/contract selection) is supported.
Semantic highlighting is more robust, highlights more types of tokens, and as an extension provides information about inactive preprocessor regions.
Code completion results now include an extension field score.
This allows clients to incorporate clangd quality signals when re-ranking code completion after client-side fuzzy-matching.
New refactorings: define function out-of-line, define function in-line, extract function, remove using namespace directive, localize Objective-C string.
Bug fixes and performance improvements :-)

Improvements to clang-doc

clang-doc now generates documentation in HTML format.
Improvements to clang-tidy

New checks

New bugprone-bad-signal-to-kill-thread check.
Finds pthread_kill function calls when a thread is terminated by raising SIGTERM signal.

New bugprone-dynamic-static-initializers check.
Finds instances where variables with static storage are initialized dynamically in header files.

New bugprone-infinite-loop check.
Finds obvious infinite loops (loops where the condition variable is not changed at all).

New bugprone-not-null-terminated-result check
Finds function calls where it is possible to cause a not null-terminated result.

New bugprone-signed-char-misuse check.
Finds signed char to integer conversions which might indicate a programming error.

New cert-mem57-cpp check.
Checks if an object of type with extended alignment is allocated by using the default operator new.

New cert-oop58-cpp check.
Finds assignments to the copied object and its direct or indirect members in copy constructors and copy assignment operators.

New cppcoreguidelines-init-variables check.
Checks whether there are local variables that are declared without an initial value.

New darwin-dispatch-once-nonstatic check.
Finds declarations of dispatch_once_t variables without static or global storage.

New google-upgrade-googletest-case check.
Finds uses of deprecated Googletest APIs with names containing case and replaces them with equivalent APIs with suite.

New linuxkernel-must-use-errs check.
Checks Linux kernel code to see if it uses the results from the functions in linux/err.h.

New llvm-prefer-register-over-unsigned check.
Finds historical use of unsigned to hold vregs and physregs and rewrites them to use Register

New objc-missing-hash check.
Finds Objective-C implementations that implement -isEqual: without also appropriately implementing -hash.

New performance-no-automatic-move check.
Finds local variables that cannot be automatically moved due to constness.

New performance-trivially-destructible check.
Finds types that could be made trivially-destructible by removing out-of-line defaulted destructor declarations.

New readability-make-member-function-const check.
Finds non-static member functions that can be made const because the functions don’t use this in a non-const way.

New readability-qualified-auto check.
Adds pointer and const qualifications to auto-typed variables that are deduced to pointers and const pointers.

New readability-redundant-access-specifiers check.
Finds classes, structs, and unions that contain redundant member access specifiers.

New aliases

New alias cert-pos44-c to bugprone-bad-signal-to-kill-thread was added.
New alias llvm-qualified-auto to readability-qualified-auto was added.

Changes in existing checks

Improved bugprone-posix-return check.
Now also checks if any calls to pthread_* functions expect negative return values.

Improved hicpp-signed-bitwise check.
The check now supports the IgnorePositiveIntegerLiterals option.

Improved modernize-avoid-bind check.
The check now supports supports diagnosing and fixing arbitrary callables instead of only simple free functions. The PermissiveParameterList option has also been added to address situations where the 
existing fix-it logic would sometimes generate code that no longer compiles.

The modernize-use-equals-default fix no longer adds semicolons where they would be redundant.

Improved modernize-use-override check.
The check now supports the AllowOverrideAndFinal option to eliminate conflicts with gcc -Wsuggest-override or gcc -Werror=suggest-override.

The modernize-use-using check now converts typedefs containing struct definitions and multiple comma-separated types.

Improved readability-magic-numbers check.
The check now supports the IgnoreBitFieldsWidths option to suppress the warning for numbers used to specify bit field widths.

The check was updated to eliminate some false positives (such as using class enumeration as non-type template parameters, or the synthetically computed length of a static user string literal.)

Improved readability-redundant-member-init check.
The check now supports the IgnoreBaseInCopyConstructors option to avoid “base class ‘Foo’ should be explicitly initialized in the copy constructor” warnings or errors with gcc -Wextra or gcc 
-Werror=extra.

The readability-redundant-string-init check now supports a StringNames option enabling its application to custom string classes.

Renamed checks

The ‘objc-avoid-spinlock’ check was renamed to darwin-avoid-spinlock


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/clang-tools-extra/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/clang-tools-extra/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/clang-tools-extra/PLIST
diff -u pkgsrc/lang/clang-tools-extra/PLIST:1.2 pkgsrc/lang/clang-tools-extra/PLIST:1.3
--- pkgsrc/lang/clang-tools-extra/PLIST:1.2     Sat Oct 19 13:58:10 2019
+++ pkgsrc/lang/clang-tools-extra/PLIST Sat Apr 18 07:58:49 2020
@@ -1,14 +1,16 @@
-@comment $NetBSD: PLIST,v 1.2 2019/10/19 13:58:10 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2020/04/18 07:58:49 adam Exp $
 bin/clang-apply-replacements
 bin/clang-change-namespace
 bin/clang-doc
 bin/clang-include-fixer
+bin/clang-move
 bin/clang-query
 bin/clang-reorder-fields
 bin/clang-tidy
 bin/clangd
 bin/find-all-symbols
 bin/modularize
+bin/pp-trace
 lib/libclangApplyReplacements.a
 lib/libclangChangeNamespace.a
 lib/libclangDaemon.a
@@ -26,10 +28,12 @@ lib/libclangTidyBoostModule.a
 lib/libclangTidyBugproneModule.a
 lib/libclangTidyCERTModule.a
 lib/libclangTidyCppCoreGuidelinesModule.a
+lib/libclangTidyDarwinModule.a
 lib/libclangTidyFuchsiaModule.a
 lib/libclangTidyGoogleModule.a
 lib/libclangTidyHICPPModule.a
 lib/libclangTidyLLVMModule.a
+lib/libclangTidyLinuxKernelModule.a
 lib/libclangTidyMPIModule.a
 lib/libclangTidyMiscModule.a
 lib/libclangTidyModernizeModule.a
@@ -42,8 +46,10 @@ lib/libclangTidyReadabilityModule.a
 lib/libclangTidyUtils.a
 lib/libclangTidyZirconModule.a
 lib/libfindAllSymbols.a
+share/clang/clang-doc-default-stylesheet.css
 share/clang/clang-include-fixer.el
 share/clang/clang-include-fixer.py
 share/clang/clang-tidy-diff.py
+share/clang/index.js
 share/clang/run-clang-tidy.py
 share/clang/run-find-all-symbols.py

Index: pkgsrc/lang/clang-tools-extra/distinfo
diff -u pkgsrc/lang/clang-tools-extra/distinfo:1.5 pkgsrc/lang/clang-tools-extra/distinfo:1.6
--- pkgsrc/lang/clang-tools-extra/distinfo:1.5  Sun Dec 29 15:31:22 2019
+++ pkgsrc/lang/clang-tools-extra/distinfo      Sat Apr 18 07:58:49 2020
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.5 2019/12/29 15:31:22 adam Exp $
+$NetBSD: distinfo,v 1.6 2020/04/18 07:58:49 adam Exp $
 
-SHA1 (clang-9.0.1.src.tar.xz) = 0d72ce018c85c54fc709c7da71d3dd1463af0bfc
-RMD160 (clang-9.0.1.src.tar.xz) = 424b98b3b6252f119fc06c8dfbc8fb1344531e88
-SHA512 (clang-9.0.1.src.tar.xz) = 3bcdcfd1ebb20a2cb15d57c608106b6e6e9c2eda4b781f573e84e0600b775bb7609f6df9edcf819ee5d91cc01a28ee089353c29fd57c23b867afbf6ad2f5cd13
-Size (clang-9.0.1.src.tar.xz) = 13452780 bytes
-SHA1 (clang-tools-extra-9.0.1.src.tar.xz) = f0571ec2135cb735f22baa149ac84e7334d0ac70
-RMD160 (clang-tools-extra-9.0.1.src.tar.xz) = f05643036eb0b394fe0cabb1e88fc8bc0c759837
-SHA512 (clang-tools-extra-9.0.1.src.tar.xz) = 4a671596460809f314ed96b0cc0be7f2498692275d0a7bd08266f9cdf4b85fb39cb4eea4131602e9a170a75eb5d9623449960f873e25b999e06c016387a1918d
-Size (clang-tools-extra-9.0.1.src.tar.xz) = 2175728 bytes
+SHA1 (clang-10.0.0.src.tar.xz) = cfaa4c4e89a45b604e6f3057f984d73365074727
+RMD160 (clang-10.0.0.src.tar.xz) = 7a2a0b3fd1b6b0d9c59a506f99d628417a565724
+SHA512 (clang-10.0.0.src.tar.xz) = b1cccc13c46abcda3d689f51d486fa613ecec40c581c72d8b15951715100a2b8fb24370161601e6716cdba5a784337439e99ec2f0766f988e9cce92de6d775da
+Size (clang-10.0.0.src.tar.xz) = 14190012 bytes
+SHA1 (clang-tools-extra-10.0.0.src.tar.xz) = e41467d4e8c6afe917c9f9c44b1d6a95a85adadb
+RMD160 (clang-tools-extra-10.0.0.src.tar.xz) = ea0465fbad01c8991cf676574542cefa96ea7291
+SHA512 (clang-tools-extra-10.0.0.src.tar.xz) = 33b6019e64e9ac94bd7c000b77a4a927602a2705baa9b370e392a56b53fe09c8dad1ff7d583892729e9eb291440433ad7d71df768a96d927e4dbc1988fc01d99
+Size (clang-tools-extra-10.0.0.src.tar.xz) = 2604944 bytes
 SHA1 (patch-tools_extra_clangd_CMakeLists.txt) = a9c3c2686f04a06eef10c1ebc14f0c95fef4a9e7



Home | Main Index | Thread Index | Old Index