Skip to content

Commit d7c3855

Browse files
committed
[NFC] Add -access-notes-path to swift-ide-test
1 parent bd70bee commit d7c3855

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/swift-ide-test/swift-ide-test.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,10 @@ EnableExperimentalConcurrency("enable-experimental-concurrency",
757757
llvm::cl::desc("Enable experimental concurrency model"),
758758
llvm::cl::init(false));
759759

760+
static llvm::cl::list<std::string>
761+
AccessNotesPath("access-notes-path", llvm::cl::desc("Path to access notes file"),
762+
llvm::cl::cat(Category));
763+
760764
} // namespace options
761765

762766
static std::unique_ptr<llvm::MemoryBuffer>
@@ -3878,6 +3882,10 @@ int main(int argc, char *argv[]) {
38783882
InitInvok.getClangImporterOptions().ModuleCachePath =
38793883
options::ModuleCachePath[options::ModuleCachePath.size()-1];
38803884
}
3885+
if (!options::AccessNotesPath.empty()) {
3886+
InitInvok.getFrontendOptions().AccessNotesPath =
3887+
options::AccessNotesPath[options::AccessNotesPath.size()-1];
3888+
}
38813889
InitInvok.getClangImporterOptions().PrecompiledHeaderOutputDir =
38823890
options::PCHOutputDir;
38833891
InitInvok.setImportSearchPaths(options::ImportPaths);

0 commit comments

Comments
 (0)