markdown compliant language identifiers

This commit is contained in:
topisani 2017-11-30 21:19:03 +01:00 committed by Jacob Dufault
parent 28ad5b1ed1
commit e6bcd05a7e
2 changed files with 4 additions and 3 deletions

View File

@ -1003,10 +1003,10 @@ void indexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
db->language = "c";
break;
case CXLanguage_CPlusPlus:
db->language = "c++";
db->language = "cpp";
break;
case CXLanguage_ObjC:
db->language = "objc";
db->language = "objectivec";
break;
case CXLanguage_Invalid:
db->language = "invalid";

View File

@ -473,7 +473,8 @@ struct IndexFile {
std::string path;
std::vector<std::string> args;
int64_t last_modification_time = 0;
// "c++", "c", "obj-c", "invalid" or "unknown"
// markdown compatible language identifier.
// "cpp", "c", "objectivec", or invalid"
std::string language;
// The path to the translation unit cc file which caused the creation of this