[Bug 284422] devel/ccls: fix build with LLVM_DEFAULT=19

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Jan 2025 19:12:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284422

            Bug ID: 284422
           Summary: devel/ccls: fix build with LLVM_DEFAULT=19
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: khng@freebsd.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(khng@freebsd.org)
          Assignee: khng@freebsd.org

When building against llvm 19, several errors appear:

 
/wrkdirs/usr/ports/devel/ccls/work/ccls-0.20240202/src/include_complete.cc:117:37:
error: no member named 'endswith' in 'llvm::StringRef'; did you mean
'ends_with'?
    117 |                 if (StringRef(path).endswith(suffix))
        |                                     ^~~~~~~~
        |                                     ends_with
  /wrkdirs/usr/ports/devel/ccls/work/ccls-0.20240202/src/clang_tu.cc:32:22:
error: no member named 'startswith' in 'llvm::StringRef'; did you mean
'starts_with'?
     32 |   if (file.getName().startswith("/../")) {
        |                      ^~~~~~~~~~
        |                      starts_with
  /wrkdirs/usr/ports/devel/ccls/work/ccls-0.20240202/src/clang_tu.cc:340:21:
error: no member named 'OMPArraySection' in 'clang::BuiltinType'; did you mean
'ArraySection'?
    340 |   case BuiltinType::OMPArraySection:
        |        ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
        |                     ArraySection
  /wrkdirs/usr/ports/devel/ccls/work/ccls-0.20240202/src/indexer.cc:1130:64:
error: non-virtual member function marked 'override' hides virtual member
function
   1130 |                           SrcMgr::CharacteristicKind fileType)
override {
        |                                                                ^

Pull in a number of upstream patches to fix these.

-- 
You are receiving this mail because:
You are the assignee for the bug.