|
|
|
|
@ -233,7 +233,9 @@ std::vector<std::string> Source::ClangViewParse::get_compilation_commands() {
|
|
|
|
|
arguments.emplace_back("-fretain-comments-from-system-headers"); |
|
|
|
|
if(file_path.extension()==".h") //TODO: temporary fix for .h-files (parse as c++)
|
|
|
|
|
arguments.emplace_back("-xc++"); |
|
|
|
|
|
|
|
|
|
if(language && (language->get_id()=="chdr" || language->get_id()=="cpphdr")) |
|
|
|
|
arguments.emplace_back("-Wno-pragma-once-outside-header"); |
|
|
|
|
|
|
|
|
|
if(!default_build_path.empty()) { |
|
|
|
|
arguments.emplace_back("-working-directory"); |
|
|
|
|
arguments.emplace_back(default_build_path.string()); |
|
|
|
|
|