mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-04 16:02:15 +00:00
fix std::optional -> llvm::Optional for up-to-date upstream llvm 16.0.0.
This commit is contained in:
parent
3affc60eb4
commit
9be6d02413
@ -1098,7 +1098,7 @@ public:
|
|||||||
StringRef included, bool isAngled,
|
StringRef included, bool isAngled,
|
||||||
CharSourceRange filenameRange,
|
CharSourceRange filenameRange,
|
||||||
#if LLVM_VERSION_MAJOR >= 16 // llvmorg-16-init-14884-g8f0df9f3bbc6
|
#if LLVM_VERSION_MAJOR >= 16 // llvmorg-16-init-14884-g8f0df9f3bbc6
|
||||||
std::optional<FileEntryRef> fileRef,
|
llvm::Optional<FileEntryRef> fileRef,
|
||||||
#elif LLVM_VERSION_MAJOR >= 15 // llvmorg-15-init-7692-gd79ad2f1dbc2
|
#elif LLVM_VERSION_MAJOR >= 15 // llvmorg-15-init-7692-gd79ad2f1dbc2
|
||||||
llvm::Optional<FileEntryRef> fileRef,
|
llvm::Optional<FileEntryRef> fileRef,
|
||||||
#else
|
#else
|
||||||
|
@ -392,7 +392,7 @@ void Project::loadDirectory(const std::string &root, Project::Folder &folder) {
|
|||||||
fclose(fout);
|
fclose(fout);
|
||||||
}
|
}
|
||||||
#if LLVM_VERSION_MAJOR >= 16 // llvmorg-16-init-12589-ge748db0f7f09
|
#if LLVM_VERSION_MAJOR >= 16 // llvmorg-16-init-12589-ge748db0f7f09
|
||||||
std::array<std::optional<StringRef>, 3>
|
std::array<Optional<StringRef>, 3>
|
||||||
#else
|
#else
|
||||||
std::array<Optional<StringRef>, 3>
|
std::array<Optional<StringRef>, 3>
|
||||||
#endif
|
#endif
|
||||||
|
@ -180,7 +180,7 @@ public:
|
|||||||
StringRef fileName, bool isAngled,
|
StringRef fileName, bool isAngled,
|
||||||
CharSourceRange filenameRange,
|
CharSourceRange filenameRange,
|
||||||
#if LLVM_VERSION_MAJOR >= 16 // llvmorg-16-init-14884-g8f0df9f3bbc6
|
#if LLVM_VERSION_MAJOR >= 16 // llvmorg-16-init-14884-g8f0df9f3bbc6
|
||||||
std::optional<FileEntryRef> fileRef,
|
llvm::Optional<FileEntryRef> fileRef,
|
||||||
#elif LLVM_VERSION_MAJOR >= 15 // llvmorg-15-init-7692-gd79ad2f1dbc2
|
#elif LLVM_VERSION_MAJOR >= 15 // llvmorg-15-init-7692-gd79ad2f1dbc2
|
||||||
llvm::Optional<FileEntryRef> fileRef,
|
llvm::Optional<FileEntryRef> fileRef,
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user