We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77dad57 commit c546eedCopy full SHA for c546eed
config.cpp
@@ -173,7 +173,7 @@ std::string Config::matchFilenameFromCompileCommand()
173
174
}
175
176
- return "File not found";
+ return "";
177
178
179
std::string Config::parseArgs(int argc, char **argv)
@@ -227,9 +227,10 @@ std::string Config::parseArgs(int argc, char **argv)
227
m_filename = normalizePath(std::filesystem::current_path() / m_filename);
228
229
err = matchFilenameFromCompileCommand();
230
+
231
+ // Only warn if compile_commands.json is corrupted
232
if (!err.empty())
- return
- "Failed to find matching file in compile_commands.json: " + err;
233
+ return "Failed to process compile_commands.json: " + err;
234
235
return "";
236
0 commit comments