|
|
|
|
@ -232,7 +232,7 @@ std::vector<std::string> CompileCommands::get_arguments(const boost::filesystem:
|
|
|
|
|
arguments.emplace_back("-finclude-default-header"); |
|
|
|
|
arguments.emplace_back("-Wno-gcc-compat"); |
|
|
|
|
} |
|
|
|
|
else if(is_header) |
|
|
|
|
else if(is_header && extension != ".h") // libclang crashes if it tries to parse .h files as C++ file in a C project
|
|
|
|
|
arguments.emplace_back("-xc++"); |
|
|
|
|
|
|
|
|
|
if(!build_path.empty()) { |
|
|
|
|
|