diff options
author | Fangrui Song <i@maskray.me> | 2022-08-07 00:26:33 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-08-07 00:26:33 +0000 |
commit | fa66789d06be2937b15e02a286b67c5f5274df31 (patch) | |
tree | 6aaab65500862e895ce4993003fd7ac0309f37db /llvm/unittests/ProfileData | |
parent | ec04e45c0358aa47c4696e474c350b9d56e42923 (diff) | |
download | llvm-fa66789d06be2937b15e02a286b67c5f5274df31.zip llvm-fa66789d06be2937b15e02a286b67c5f5274df31.tar.gz llvm-fa66789d06be2937b15e02a286b67c5f5274df31.tar.bz2 |
[llvm] LLVM_NODISCARD => [[nodiscard]]. NFC
With C++17 there is no Clang pedantic warning.
Diffstat (limited to 'llvm/unittests/ProfileData')
-rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 2 | ||||
-rw-r--r-- | llvm/unittests/ProfileData/InstrProfTest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index 758398d..e04265e 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -22,7 +22,7 @@ using namespace llvm; using namespace coverage; -LLVM_NODISCARD static ::testing::AssertionResult +[[nodiscard]] static ::testing::AssertionResult ErrorEquals(coveragemap_error Expected, Error E) { coveragemap_error Found; std::string FoundMsg; diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp index 6f11a2e..86a0492 100644 --- a/llvm/unittests/ProfileData/InstrProfTest.cpp +++ b/llvm/unittests/ProfileData/InstrProfTest.cpp @@ -23,7 +23,7 @@ using namespace llvm; -LLVM_NODISCARD static ::testing::AssertionResult +[[nodiscard]] static ::testing::AssertionResult ErrorEquals(instrprof_error Expected, Error E) { instrprof_error Found; std::string FoundMsg; |