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 b035ba6 commit fa0bf8aCopy full SHA for fa0bf8a
config.cpp
@@ -137,13 +137,8 @@ static std::filesystem::path normalizePath(const std::filesystem::path path)
137
138
std::string Config::matchFilenameFromCompileCommand()
139
{
140
- auto path = findFile(m_cppcheck, "compile_commands.json");
141
-
142
- if (path.empty())
143
- return "Failed to find 'compile_commands.json' in any parent directory of cppcheck";
144
145
// Read compile_commands file
146
- std::ifstream ifs(path);
+ std::ifstream ifs(m_projectFilePath);
147
if (ifs.fail())
148
return std::strerror(errno);
149
0 commit comments