[clang-tools-extra] 76284be - [clang-tidy][NFC] Fix bugprone-optional-value-conversion findings
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 27 01:53:33 PDT 2023
Author: Piotr Zegar
Date: 2023-08-27T08:52:09Z
New Revision: 76284beb23a3a94682d251fff0261d4db5261408
URL: https://github.com/llvm/llvm-project/commit/76284beb23a3a94682d251fff0261d4db5261408
DIFF: https://github.com/llvm/llvm-project/commit/76284beb23a3a94682d251fff0261d4db5261408.diff
LOG: [clang-tidy][NFC] Fix bugprone-optional-value-conversion findings
Fix issues found by clang-tidy in clang-tidy source directory.
Added:
Modified:
clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/ClangTidyCheck.cpp b/clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
index 9573cc3b7d6b3c..8b261268449cf2 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
+++ b/clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
@@ -94,7 +94,7 @@ static std::optional<bool> getAsBool(StringRef Value,
const llvm::Twine &LookupName) {
if (std::optional<bool> Parsed = llvm::yaml::parseBool(Value))
- return *Parsed;
+ return Parsed;
// To maintain backwards compatability, we support parsing numbers as
// booleans, even though its not supported in YAML.
long long Number;
More information about the cfe-commits
mailing list