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

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 11 14:13:15 PDT 2016


rsmith added a subscriber: rsmith.

================
Comment at: test/clang-tidy/readability-redundant-inline.cpp:5
@@ +4,3 @@
+  inline int f1() {
+// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: 'inline' is redundant because method body is defined inside class [readability-redundant-inline]
+// CHECK-FIXES: {{^}}  int f1()
----------------
The `inline` keyword here is not actually redundant to Clang -- we generate an LLVM `inlinehint` if `inline` is specified here and not otherwise.


http://reviews.llvm.org/D18914





More information about the cfe-commits mailing list