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 @@ -885,6 +885,10 @@ class RedirectingFileSystem : public vfs::FileSystem {
885
885
886
886
StringRef getExternalContentsPrefixDir () const ;
887
887
888
+ // / Sets the redirection kind to \c Fallthrough if true or \c RedirectOnly
889
+ // / otherwise. Will removed in the future, use \c setRedirection instead.
890
+ void setFallthrough (bool Fallthrough);
891
+
888
892
void setRedirection (RedirectingFileSystem::RedirectKind Kind);
889
893
890
894
std::vector<llvm::StringRef> getRoots () const ;
Original file line number Diff line number Diff line change @@ -1343,6 +1343,14 @@ StringRef RedirectingFileSystem::getExternalContentsPrefixDir() const {
1343
1343
return ExternalContentsPrefixDir;
1344
1344
}
1345
1345
1346
+ void RedirectingFileSystem::setFallthrough (bool Fallthrough) {
1347
+ if (Fallthrough) {
1348
+ Redirection = RedirectingFileSystem::RedirectKind::Fallthrough;
1349
+ } else {
1350
+ Redirection = RedirectingFileSystem::RedirectKind::RedirectOnly;
1351
+ }
1352
+ }
1353
+
1346
1354
void RedirectingFileSystem::setRedirection (
1347
1355
RedirectingFileSystem::RedirectKind Kind) {
1348
1356
Redirection = Kind;
You can’t perform that action at this time.
0 commit comments