mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Fix compiler warnings and turn on warnings as errors
This commit is contained in:
parent
6906d9a0f7
commit
5b4986f04b
@ -403,6 +403,12 @@ optional<lsTextEdit> BuildAutoImplementForFunction(QueryDatabase* db, WorkingFil
|
||||
|
||||
break;
|
||||
}
|
||||
case SymbolKind::Invalid:
|
||||
case SymbolKind::File:
|
||||
case SymbolKind::Type:
|
||||
std::cerr << "Unexpected SymbolKind "
|
||||
<< static_cast<int>(sym.idx.kind) << std::endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -211,10 +211,10 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry(
|
||||
return result;
|
||||
}
|
||||
|
||||
/* TODO: Fix this function, it may be way faster than libclang's implementation.
|
||||
std::vector<Project::Entry> LoadFromCompileCommandsJson(
|
||||
std::unordered_set<std::string>& quote_includes, std::unordered_set<std::string>& angle_includes,
|
||||
const std::vector<std::string>& extra_flags, const std::string& project_directory) {
|
||||
// TODO: Fix this function, it may be way faster than libclang's implementation.
|
||||
|
||||
optional<std::string> compile_commands_content = ReadContent(project_directory + "/compile_commands.json");
|
||||
if (!compile_commands_content)
|
||||
@ -238,6 +238,7 @@ std::vector<Project::Entry> LoadFromCompileCommandsJson(
|
||||
}
|
||||
return result;
|
||||
}
|
||||
*/
|
||||
|
||||
std::vector<Project::Entry> LoadFromDirectoryListing(
|
||||
std::unordered_set<std::string>& quote_includes, std::unordered_set<std::string>& angle_includes,
|
||||
|
Loading…
Reference in New Issue
Block a user