Skip to content

Commit fa0bf8a

Browse files
committed
Nits
1 parent b035ba6 commit fa0bf8a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

config.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,8 @@ static std::filesystem::path normalizePath(const std::filesystem::path path)
137137

138138
std::string Config::matchFilenameFromCompileCommand()
139139
{
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-
145140
// Read compile_commands file
146-
std::ifstream ifs(path);
141+
std::ifstream ifs(m_projectFilePath);
147142
if (ifs.fail())
148143
return std::strerror(errno);
149144

0 commit comments

Comments
 (0)