mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 14:56:06 +00:00
[llvm-cov] Use std::optional in CodeCoverage.cpp (NFC)
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
This commit is contained in:
parent
fc93812a11
commit
f64505c0f2
@ -41,6 +41,7 @@
|
||||
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <optional>
|
||||
#include <system_error>
|
||||
|
||||
using namespace llvm;
|
||||
@ -157,7 +158,7 @@ private:
|
||||
|
||||
/// The coverage data path to be remapped from, and the source path to be
|
||||
/// remapped to, when using -path-equivalence.
|
||||
Optional<std::pair<std::string, std::string>> PathRemapping;
|
||||
std::optional<std::pair<std::string, std::string>> PathRemapping;
|
||||
|
||||
/// File status cache used when finding the same file.
|
||||
StringMap<Optional<sys::fs::file_status>> FileStatusCache;
|
||||
|
Loading…
x
Reference in New Issue
Block a user