[PATCH] D42983: [clang-tidy] Add readability-simd-intrinsics check.

Tim Shen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 18:45:44 PST 2018


timshen added inline comments.


================
Comment at: clang-tidy/readability/SIMDIntrinsicsCheck.cpp:34
+    // [simd.binary]
+    {"add", "std::experimental::simd::operator+"},
+    {"sub", "std::experimental::simd::operator-"},
----------------
Technically, std::experimental::simd::operator+ (an all other binary operators) don't exist, as they are free functions, not member functions. `operator+ for std::experimental::simd objects` do exist.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D42983





More information about the cfe-commits mailing list