mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +00:00
Adapt llvmorg-19-init-9119-g4ec9a662d388: startswith/endswith removal
This commit is contained in:
parent
88e382f8a3
commit
559b416409
@ -21,6 +21,11 @@ namespace vfs = clang::vfs;
|
||||
#define isAsciiIdentifierContinue isIdentifierBody
|
||||
#endif
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 19
|
||||
#define startswith starts_with
|
||||
#define endswith ends_with
|
||||
#endif
|
||||
|
||||
namespace ccls {
|
||||
#if LLVM_VERSION_MAJOR < 19
|
||||
std::string pathFromFileEntry(const clang::FileEntry &file);
|
||||
|
@ -18,6 +18,11 @@
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 19
|
||||
#define startswith starts_with
|
||||
#define endswith ends_with
|
||||
#endif
|
||||
|
||||
namespace std {
|
||||
template <> struct hash<clang::FileID> {
|
||||
std::size_t operator()(clang::FileID fid) const { return fid.getHashValue(); }
|
||||
|
Loading…
Reference in New Issue
Block a user