private static Index CreateIndex() { var files = Directory.GetFiles(Path.Combine(CefInclude, "include"), "*.h") .Where(f => Headers.Contains(Path.GetFileName(f))); var index = new Index(); foreach (var file in files) { index.AddTranslationUnit(file, BuildCompilerArgs()); } return(index); }