[PATCH] D18914: [clang-tidy] new readability-redundant-inline

Matthias Gehre via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 8 16:48:29 PDT 2016


mgehre created this revision.
mgehre added reviewers: sbenza, bkramer, aaron.ballman, alexfh.
mgehre added a subscriber: cfe-commits.

This check flags redundant 'inline' specifiers.
It flags 'inline' on member functions defined inside a class definition
like
.. code-block:: c++

  struct S {
    inline int f() {
	  return 0;
	}
  };

and 'inline' specifiers on functions that are also declared 'constexpr'.

http://reviews.llvm.org/D18914

Files:
  clang-tidy/readability/CMakeLists.txt
  clang-tidy/readability/ReadabilityTidyModule.cpp
  clang-tidy/readability/RedundantInlineCheck.cpp
  clang-tidy/readability/RedundantInlineCheck.h
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/readability-redundant-inline.rst
  test/clang-tidy/readability-redundant-inline.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18914.53102.patch
Type: text/x-patch
Size: 10534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160408/3d902cd1/attachment-0001.bin>


More information about the cfe-commits mailing list