[all-commits] [llvm/llvm-project] 97afce: [clang] Don't use Optional::hasValue (NFC)
kazutakahirata via All-commits
all-commits at lists.llvm.org
Sat Jun 25 22:26:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 97afce08cbbb1390cf8ddab8bf398f3ff5b39676
https://github.com/llvm/llvm-project/commit/97afce08cbbb1390cf8ddab8bf398f3ff5b39676
Author: Kazu Hirata <kazu at google.com>
Date: 2022-06-25 (Sat, 25 Jun 2022)
Changed paths:
M clang/include/clang/Analysis/PathDiagnostic.h
M clang/include/clang/Sema/Sema.h
M clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h
M clang/lib/AST/AttrImpl.cpp
M clang/lib/ASTMatchers/Dynamic/Parser.cpp
M clang/lib/ASTMatchers/Dynamic/Registry.cpp
M clang/lib/Analysis/BodyFarm.cpp
M clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
M clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
M clang/lib/Analysis/PathDiagnostic.cpp
M clang/lib/Analysis/UninitializedValues.cpp
M clang/lib/Basic/Targets/RISCV.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/lib/Driver/ToolChains/AVR.cpp
M clang/lib/Driver/ToolChains/Gnu.cpp
M clang/lib/Edit/RewriteObjCFoundationAPI.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/lib/Frontend/InitPreprocessor.cpp
M clang/lib/Lex/DependencyDirectivesScanner.cpp
M clang/lib/Lex/MacroInfo.cpp
M clang/lib/Lex/PPMacroExpansion.cpp
M clang/lib/Lex/PreprocessingRecord.cpp
M clang/lib/Parse/ParseOpenMP.cpp
M clang/lib/Sema/SemaCUDA.cpp
M clang/lib/Sema/SemaChecking.cpp
M clang/lib/Sema/SemaDecl.cpp
M clang/lib/Sema/SemaDeclAttr.cpp
M clang/lib/Sema/SemaExprCXX.cpp
M clang/lib/Sema/SemaOpenMP.cpp
M clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
M clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp
M clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
M clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
M clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
M clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
M clang/lib/Support/RISCVVIntrinsicUtils.cpp
M clang/lib/Tooling/Core/Replacement.cpp
M clang/tools/driver/driver.cpp
M clang/tools/libclang/CIndex.cpp
M clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
M clang/unittests/Tooling/RefactoringTest.cpp
M clang/utils/TableGen/RISCVVEmitter.cpp
Log Message:
-----------
[clang] Don't use Optional::hasValue (NFC)
This patch replaces Optional::hasValue with the implicit cast to bool
in conditionals only.
More information about the All-commits
mailing list