@@ -486,7 +486,7 @@ static std::string findRecordNameForFile(indexstore::IndexStore &store,
486
486
}
487
487
488
488
static int printStoreFileRecord (StringRef storePath, StringRef filePath,
489
- Optional <unsigned > lineStart, unsigned lineCount,
489
+ std::optional <unsigned > lineStart, unsigned lineCount,
490
490
PathRemapper remapper, raw_ostream &OS) {
491
491
std::string error;
492
492
indexstore::IndexStore store (storePath, remapper, error);
@@ -698,7 +698,7 @@ static int scanDeps(ArrayRef<const char *> Args, std::string WorkingDirectory,
698
698
bool SerializeDiags, bool DependencyFile,
699
699
ArrayRef<std::string> DepTargets, std::string OutputPath,
700
700
CXCASDatabases DBs,
701
- Optional <std::string> ModuleName = std::nullopt) {
701
+ std::optional <std::string> ModuleName = std::nullopt) {
702
702
CXDependencyScannerServiceOptions Opts =
703
703
clang_experimental_DependencyScannerServiceOptions_create ();
704
704
auto CleanupOpts = llvm::make_scope_exit ([&] {
@@ -1193,7 +1193,7 @@ static int watchDirectory(StringRef dirPath) {
1193
1193
1194
1194
bool deconstructPathAndRange (StringRef input,
1195
1195
std::string &filepath,
1196
- Optional <unsigned > &lineStart,
1196
+ std::optional <unsigned > &lineStart,
1197
1197
unsigned &lineCount) {
1198
1198
StringRef path, start, end;
1199
1199
std::tie (path, end) = input.rsplit (' :' );
@@ -1272,7 +1272,7 @@ int indextest_core_main(int argc, const char **argv) {
1272
1272
if (options::Action == ActionType::PrintRecord) {
1273
1273
if (!options::FilePathAndRange.empty ()) {
1274
1274
std::string filepath;
1275
- Optional <unsigned > lineStart;
1275
+ std::optional <unsigned > lineStart;
1276
1276
unsigned lineCount;
1277
1277
if (deconstructPathAndRange (options::FilePathAndRange,
1278
1278
filepath, lineStart, lineCount))
@@ -1330,9 +1330,9 @@ int indextest_core_main(int argc, const char **argv) {
1330
1330
return aggregateDataAsJSON (storePath, PathRemapper, OS);
1331
1331
}
1332
1332
1333
- Optional <std::string> CASPath = options::CASPath.empty ()
1333
+ std::optional <std::string> CASPath = options::CASPath.empty ()
1334
1334
? std::nullopt
1335
- : Optional <std::string>(options::CASPath);
1335
+ : std::optional <std::string>(options::CASPath);
1336
1336
1337
1337
CXCASOptions CASOpts = nullptr ;
1338
1338
CXCASDatabases DBs = nullptr ;
0 commit comments