diff options
author | River Riddle <riddleriver@gmail.com> | 2020-04-14 14:54:15 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2020-04-14 15:14:41 -0700 |
commit | 92f1562f3dd158d837c66a1dd20ae745477d9c36 (patch) | |
tree | bdde7ba5858c6461c127dbb51ea215a9aea1d56e /llvm | |
parent | ebf190fcda0b8b4e9de405ba13ddbc679550644b (diff) | |
download | llvm-92f1562f3dd158d837c66a1dd20ae745477d9c36.zip llvm-92f1562f3dd158d837c66a1dd20ae745477d9c36.tar.gz llvm-92f1562f3dd158d837c66a1dd20ae745477d9c36.tar.bz2 |
[mlir][NFC] Remove the STLExtras.h header file now that it has been merged into LLVM.
Now that no more utilities exist within, this file can be deleted.
Differential Revision: https://reviews.llvm.org/D78079
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/unittests/ADT/TypeTraitsTest.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/unittests/ADT/TypeTraitsTest.cpp b/llvm/unittests/ADT/TypeTraitsTest.cpp index d38505c..74d3bbe 100644 --- a/llvm/unittests/ADT/TypeTraitsTest.cpp +++ b/llvm/unittests/ADT/TypeTraitsTest.cpp @@ -33,9 +33,6 @@ template <typename CallableT> struct CheckFunctionTraits { using FuncType = bool (*)(const int &); struct CheckFunctionPointer : CheckFunctionTraits<FuncType> {}; -static bool func(const int &v); -struct CheckFunctionPointer2 : CheckFunctionTraits<decltype(&func)> {}; - /// Test method pointers. struct Foo { bool func(const int &v); @@ -43,7 +40,9 @@ struct Foo { struct CheckMethodPointer : CheckFunctionTraits<decltype(&Foo::func)> {}; /// Test lambda references. -auto lambdaFunc = [](const int &v) -> bool { return true; }; +LLVM_ATTRIBUTE_UNUSED auto lambdaFunc = [](const int &v) -> bool { + return true; +}; struct CheckLambda : CheckFunctionTraits<decltype(lambdaFunc)> {}; } // end anonymous namespace @@ -70,7 +69,7 @@ static_assert(!is_detected<has_foo_method_t, NoFooMethod>::value, // is_invocable //===----------------------------------------------------------------------===// -static void invocable_fn(int) {} +void invocable_fn(int); static_assert(is_invocable<decltype(invocable_fn), int>::value, "expected function to be invocable"); |