mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Treat source filenames with no dot as -x c++-header
This commit is contained in:
parent
11436c1f0d
commit
a2faa0c519
@ -90,6 +90,8 @@ optional<std::string> SourceFileType(const std::string& path) {
|
||||
return std::string("objective-c++");
|
||||
else if (EndsWith(path, ".m"))
|
||||
return std::string("objective-c");
|
||||
else if (path.find('.') == std::string::npos)
|
||||
return std::string("c++-header");
|
||||
return nullopt;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user