File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -902,6 +902,10 @@ class RedirectingFileSystem : public vfs::FileSystem {
902
902
903
903
StringRef getExternalContentsPrefixDir () const ;
904
904
905
+ // / Sets the redirection kind to \c Fallthrough if true or \c RedirectOnly
906
+ // / otherwise. Will removed in the future, use \c setRedirection instead.
907
+ void setFallthrough (bool Fallthrough);
908
+
905
909
void setRedirection (RedirectingFileSystem::RedirectKind Kind);
906
910
907
911
std::vector<llvm::StringRef> getRoots () const ;
Original file line number Diff line number Diff line change @@ -1363,6 +1363,14 @@ StringRef RedirectingFileSystem::getExternalContentsPrefixDir() const {
1363
1363
return ExternalContentsPrefixDir;
1364
1364
}
1365
1365
1366
+ void RedirectingFileSystem::setFallthrough (bool Fallthrough) {
1367
+ if (Fallthrough) {
1368
+ Redirection = RedirectingFileSystem::RedirectKind::Fallthrough;
1369
+ } else {
1370
+ Redirection = RedirectingFileSystem::RedirectKind::RedirectOnly;
1371
+ }
1372
+ }
1373
+
1366
1374
void RedirectingFileSystem::setRedirection (
1367
1375
RedirectingFileSystem::RedirectKind Kind) {
1368
1376
Redirection = Kind;
You can’t perform that action at this time.
0 commit comments