diff --git a/src/jit-format/jit-format.cs b/src/jit-format/jit-format.cs index 0b7fb359..358bda8b 100644 --- a/src/jit-format/jit-format.cs +++ b/src/jit-format/jit-format.cs @@ -408,7 +408,7 @@ public static int Main(string[] args) if (config.Filenames.Count() == 0) { // add all files to a list of files - foreach (string filename in Directory.GetFiles(Path.Combine(config.CoreCLRRoot, "src", config.SourceDirectory))) + foreach (string filename in Directory.GetFiles(Path.Combine(config.CoreCLRRoot, config.SourceDirectory))) { // if it's not a directory, add it to our list if (!Directory.Exists(filename) && (filename.EndsWith(".cpp") || filename.EndsWith(".h") || filename.EndsWith(".hpp"))) @@ -424,7 +424,7 @@ public static int Main(string[] args) string prefix = ""; if (!filename.Contains(config.CoreCLRRoot)) { - prefix = Path.Combine(config.CoreCLRRoot, "src", config.SourceDirectory); + prefix = Path.Combine(config.CoreCLRRoot, config.SourceDirectory); } if (File.Exists(Path.Combine(prefix, filename))) @@ -572,7 +572,7 @@ public static string rewriteCompileCommands (string compileCommandFile, string p // of the precompiled header file. It's not needed for clang-tidy and currently the precompiled // header won't be found at the specified location: we run the build that generates compile_commands.json // in ConfigureOnly mode so the precompiled headers are not generated. - else if (option.Contains("src/jit") && !option.StartsWith("/Fp")) + else if (option.Contains("jit") && !option.StartsWith("/Fp")) { compileCommand = compileCommand + " " + option; } @@ -627,7 +627,7 @@ public static bool DoClangTidyInnerLoop(bool fix, bool ignoreErrors, string chec if (filename.EndsWith(".cpp")) { - List commandArgs = new List { tidyFix, "-checks=-*," + checks, fixErrors, "-header-filter=src/jit/.*", "-p=" + compileCommands, filename }; + List commandArgs = new List { tidyFix, "-checks=-*," + checks, fixErrors, "-header-filter=jit/.*", "-p=" + compileCommands, filename }; if (verbose) {