[PATCH] D18582: [Clang-tidy] Update release notes with list of checks added since 3.8

Eugene Zelenko via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 29 15:46:41 PDT 2016


Eugene.Zelenko created this revision.
Eugene.Zelenko added reviewers: alexfh, LegalizeAdulthood, aaron.ballman, sbenza, etienne.bergeron.
Eugene.Zelenko added a subscriber: cfe-commits.
Eugene.Zelenko set the repository for this revision to rL LLVM.

Descriptions of checks were extracted from documentations. If style is wrong, will be good idea if native English speaker will fix both release notes and documentation.

I also mentioned fix of crash on compile database with relative paths.

Repository:
  rL LLVM

http://reviews.llvm.org/D18582

Files:
  docs/ReleaseNotes.rst

Index: docs/ReleaseNotes.rst
===================================================================
--- docs/ReleaseNotes.rst
+++ docs/ReleaseNotes.rst
@@ -63,11 +63,82 @@
 explain them more clearly, and provide more accurate fix-its for the issues
 identified.  The improvements since the 3.8 release include:
 
+- New ``cert-env33-c`` check
+
+  This check flags calls to ``system()``, ``popen()``, and ``_popen()``, which
+  execute a command processor.
+
+- New ``cert-flp30-c`` check
+
+  This check flags ``for`` loops where the induction expression has a floating-
+  point type.
+
+- New ``cppcoreguidelines-pro-type-member-init`` check
+
+  The check flags user-defined constructor definitions that do not initialize
+  all builtin and pointer fields which leaves their memory in an undefined
+  state.
+
+- New ``misc-dangling-handle`` check
+
+  This check detects dangling references in value handlers like
+  `std::experimental::string_view`.
+
+- New ``misc-forward-declaration-namespace`` check
+
+  This check checks if an unused forward declaration is in a wrong namespace.
+
+- New ``misc-misplaced-widening-cast`` check
+
+  This check warns when there is a explicit redundant cast of a calculation
+  result to a bigger type.
+
+- New ``misc-suspicious-semicolon`` check
+
+  This check finds most instances of stray semicolons that unexpectedly alter
+  the meaning of the code.
+
+- New ``modernize-deprecated-headers`` check
+
+  This check replaces C standard library headers with their C++ alternatives.
+
 - New ``modernize-raw-string-literal`` check
 
   This check selectively replaces string literals containing escaped
   characters with raw string literals.
 
+- New ``performance-faster-string-find`` check
+
+  Optimize calls to std::string::find() and friends when the needle passed is a
+  single character string literal.
+
+- New ``performance-implicit-cast-in-loop`` check
+
+  This check warns about range-based loop with loop variable of const ref type
+  where the type of the variable does not match the one returned by the
+  iterator.
+
+- New ``performance-unnecessary-value-param`` check
+
+  This check flags value parameter declarations of expensive to copy types that
+  are copied for each invocation but it would suffice to pass them by const
+  reference.
+
+- New ``readability-redundant-control-flow`` check
+
+  This check looks for procedures (functions returning no value) with `return`
+  statements at the end of the function.  Such `return` statements are
+  redundant.
+
+- New ``readability-redundant-string-init`` check
+
+  This check finds unnecessary string initializations.
+
+Fixed bugs:
+
+  Crash when ``clang-tidy`` runs on compile database with relative source files
+  paths.
+
 Improvements to ``modularize``
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18582.51997.patch
Type: text/x-patch
Size: 2814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160329/fbd7989c/attachment-0001.bin>


More information about the cfe-commits mailing list