diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-15 20:03:13 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-15 20:03:13 -0700 |
commit | 5cff5142a894a184d5eef05339e1a5b41fb4c144 (patch) | |
tree | 1c2122c14f7f9c7dc33b866dd8eeba2470fff9f3 /clang-tools-extra/unittests | |
parent | Use value_or (NFC) (diff) | |
download | llvm-project-5cff5142a894a184d5eef05339e1a5b41fb4c144.tar.gz llvm-project-5cff5142a894a184d5eef05339e1a5b41fb4c144.tar.bz2 llvm-project-5cff5142a894a184d5eef05339e1a5b41fb4c144.zip |
Use value instead of getValue (NFC)
Diffstat (limited to 'clang-tools-extra/unittests')
-rw-r--r-- | clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp | 2 | ||||
-rw-r--r-- | clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp b/clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp index aa51231d363d..86a9a0fa2ac1 100644 --- a/clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp @@ -35,7 +35,7 @@ public: auto Hint = Aliaser->createAlias(*Result.Context, *Call, "::foo::bar", {"b", "some_alias"}); if (Hint) - diag(Call->getBeginLoc(), "Fix for testing") << Hint.getValue(); + diag(Call->getBeginLoc(), "Fix for testing") << Hint.value(); diag(Call->getBeginLoc(), "insert call") << FixItHint::CreateInsertion( Call->getBeginLoc(), diff --git a/clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp b/clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp index edd644c452d3..9072befa6caa 100644 --- a/clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp @@ -38,7 +38,7 @@ public: Inserter->createUsingDeclaration(*Result.Context, *Call, "::foo::func"); if (Hint) - diag(Call->getBeginLoc(), "Fix for testing") << Hint.getValue(); + diag(Call->getBeginLoc(), "Fix for testing") << Hint.value(); diag(Call->getBeginLoc(), "insert call") << clang::FixItHint::CreateReplacement( |