Lines Matching refs:Spec
294 llvm::Optional<Config::CDBSearchSpec> Spec; in compile() local
296 Spec.emplace(); in compile()
297 Spec->Policy = Config::CDBSearchSpec::Ancestors; in compile()
299 Spec.emplace(); in compile()
300 Spec->Policy = Config::CDBSearchSpec::NoCDBSearch; in compile()
311 Spec.emplace(); in compile()
312 Spec->Policy = Config::CDBSearchSpec::FixedDir; in compile()
313 Spec->FixedCDBPath = std::move(Path); in compile()
316 if (Spec) in compile()
318 [Spec(std::move(*Spec))](const Params &, Config &C) { in compile()
319 C.CompileFlags.CDBSearch = Spec; in compile()
368 Config::ExternalIndexSpec Spec; in compile() local
370 Spec.Kind = Config::ExternalIndexSpec::Server; in compile()
371 Spec.Location = std::move(**External.Server); in compile()
373 Spec.Kind = Config::ExternalIndexSpec::File; in compile()
378 Spec.Location = std::move(*AbsPath); in compile()
381 Spec.Kind = Config::ExternalIndexSpec::None; in compile()
383 if (Spec.Kind != Config::ExternalIndexSpec::None) { in compile()
395 Spec.MountPoint = std::move(*AbsPath); in compile()
397 Out.Apply.push_back([Spec(std::move(Spec))](const Params &P, Config &C) { in compile()
398 if (Spec.Kind == Config::ExternalIndexSpec::None) { in compile()
399 C.Index.External = Spec; in compile()
402 if (P.Path.empty() || !pathStartsWith(Spec.MountPoint, P.Path, in compile()
405 C.Index.External = Spec; in compile()