diff options
author | Nathan James <n.james93@hotmail.co.uk> | 2022-11-07 18:25:46 +0000 |
---|---|---|
committer | Nathan James <n.james93@hotmail.co.uk> | 2022-11-07 18:25:48 +0000 |
commit | 108e41d962463ea1cb956d1a929692a5b49c0a80 (patch) | |
tree | b80540f94aa4366e4dbef3aea2ad4b388dd22b07 /clang/lib/Basic/SourceLocation.cpp | |
parent | 89ddcff1d2d6e9f4de78f3a563a8b1987bf7ea8f (diff) | |
download | llvm-108e41d962463ea1cb956d1a929692a5b49c0a80.zip llvm-108e41d962463ea1cb956d1a929692a5b49c0a80.tar.gz llvm-108e41d962463ea1cb956d1a929692a5b49c0a80.tar.bz2 |
[clang][NFC] Use c++17 style variable type traits
This was done as a test for D137302 and it makes sense to push these changes
Reviewed By: shafik
Differential Revision: https://reviews.llvm.org/D137491
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r-- | clang/lib/Basic/SourceLocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp index 6e5e55f..f9ecd52 100644 --- a/clang/lib/Basic/SourceLocation.cpp +++ b/clang/lib/Basic/SourceLocation.cpp @@ -42,11 +42,11 @@ void PrettyStackTraceLoc::print(raw_ostream &OS) const { // SourceLocation //===----------------------------------------------------------------------===// -static_assert(std::is_trivially_destructible<SourceLocation>::value, +static_assert(std::is_trivially_destructible_v<SourceLocation>, "SourceLocation must be trivially destructible because it is " "used in unions"); -static_assert(std::is_trivially_destructible<SourceRange>::value, +static_assert(std::is_trivially_destructible_v<SourceRange>, "SourceRange must be trivially destructible because it is " "used in unions"); |