[PATCH] D137205: [clang-tidy] Add performance-unnecessary-copy-on-last-use check
    Eugene Zelenko via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Nov  2 12:23:14 PDT 2022
    
    
  
Eugene.Zelenko added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/performance/UnnecessaryCopyOnLastUseCheck.h:1
+//===--- UnnecessaryCopyOnLastUseCheck.h - clang-tidy-------------*- C++-*-===//
+//
----------------
Sorry, overlooked last time. Please add space after `clang-tidy'.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/performance/unnecessary-copy-on-last-use.rst:32
+   A semicolon-separated list of names of types allowed to be copied on last
+   usage. Regular expressions are accepted, e.g. ``[Rr]ef(erence)?$`` matches
+   every type with suffix ``Ref``, ``ref``, ``Reference`` and ``reference``.
----------------
Please use single back-ticks for option values. Same below.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137205/new/
https://reviews.llvm.org/D137205
    
    
More information about the cfe-commits
mailing list