id = "objective-cpp" name = "Objective-C++" extensions = ["mm"] line-comment = "//" block-comment = ["/*", "*/"] indent = { tab-size = 4, insert-spaces = true } ui-mode = "Objective-C++" tree-sitter = "objc" [[language-servers]] # Xcode projects with a BSP config: plain clangd finds no compile flags there, while # sourcekit-lsp reads them through the build server and serves C-family files with its # own clangd. Only `buildServer.json` (xcode-build-server, sourcekit-xcode-bsp): a bare # `.bsp` directory also belongs to sbt, Mill and Bazel. name = "sourcekit-lsp" command = "sourcekit-lsp" root-markers = ["buildServer.json"] require-root-marker = true replaces = ["clangd"] install-hint = "Ships with the Swift toolchain / Xcode (xcrun sourcekit-lsp); https://www.swift.org/install" [[language-servers]] name = "clangd" command = "clangd" args = ["--background-index"] root-markers = ["compile_commands.json", "compile_flags.txt", ".clangd"] install-hint = "Install clangd (LLVM): brew install llvm" [debugger] adapter = "lldb-dap" command = "lldb-dap" install-hint = "Install LLVM's lldb-dap (brew install llvm), or on macOS use the one found by xcrun -f lldb-dap"