diff options
Diffstat (limited to 'src/plugins/clangformat/llvmfilesystem.h')
-rw-r--r-- | src/plugins/clangformat/llvmfilesystem.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/clangformat/llvmfilesystem.h b/src/plugins/clangformat/llvmfilesystem.h index fface01fc0..b2d1c5de7e 100644 --- a/src/plugins/clangformat/llvmfilesystem.h +++ b/src/plugins/clangformat/llvmfilesystem.h @@ -127,7 +127,11 @@ public: /// Gets real path of \p Path e.g. collapse all . and .. patterns, resolve /// symlinks. For real file system, this uses `llvm::sys::fs::real_path`. /// This returns errc::operation_not_permitted if not implemented by subclass. - std::error_code getRealPath(const Twine &Path, SmallVectorImpl<char> &Output) const override + std::error_code getRealPath(const Twine &Path, SmallVectorImpl<char> &Output) +#if LLVM_VERSION_MAJOR < 19 + const +#endif + override { Q_UNUSED(Path); Q_UNUSED(Output); |