mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add -index-ignore-clang-modules flag
This flag avoids indexing import clang modules (pcms), behaving similar to `-index-ignore-system-modules` except for PCMs.
This commit is contained in:
@@ -69,6 +69,7 @@ bool ArgsToFrontendOptionsConverter::convert(
|
||||
if (const Arg *A = Args.getLastArg(OPT_bridging_header_directory_for_print)) {
|
||||
Opts.BridgingHeaderDirForPrint = A->getValue();
|
||||
}
|
||||
Opts.IndexIgnoreClangModules |= Args.hasArg(OPT_index_ignore_clang_modules);
|
||||
Opts.IndexSystemModules |= Args.hasArg(OPT_index_system_modules);
|
||||
Opts.IndexIgnoreStdlib |= Args.hasArg(OPT_index_ignore_stdlib);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user