aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/Syntax/TreeTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TreeTest.cpp')
-rw-r--r--clang/unittests/Tooling/Syntax/TreeTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/unittests/Tooling/Syntax/TreeTest.cpp b/clang/unittests/Tooling/Syntax/TreeTest.cpp
index 712d2bd..44cf42f 100644
--- a/clang/unittests/Tooling/Syntax/TreeTest.cpp
+++ b/clang/unittests/Tooling/Syntax/TreeTest.cpp
@@ -151,9 +151,8 @@ TEST_F(TreeTest, Iterators) {
// FIXME: mutate and observe no invalidation. Mutations are private for now...
auto It = Range.begin();
auto CIt = ConstRange.begin();
- static_assert(std::is_same<decltype(*It), syntax::Node &>::value,
- "mutable range");
- static_assert(std::is_same<decltype(*CIt), const syntax::Node &>::value,
+ static_assert(std::is_same_v<decltype(*It), syntax::Node &>, "mutable range");
+ static_assert(std::is_same_v<decltype(*CIt), const syntax::Node &>,
"const range");
for (unsigned I = 0; I < 3; ++I) {