Files
Michael Gottesman 63a6bb3c7c Adjust to "[ADT] Add LLVM_ATTRIBUTE_WARN_UNUSED to SmallString (#240180)"
```
swift/tools/SourceKit/lib/SwiftLang/CodeCompletionOrganizer.cpp:1127:25: error: unused variable 'nameStorage' [-Werror,-Wunused-variable]
 1127 |   llvm::SmallString<64> nameStorage;
      |                         ^~~~~~~~~~~
```

`SmallString` is now marked `LLVM_ATTRIBUTE_WARN_UNUSED`, so the
compiler diagnoses unused `SmallString` locals despite their
non-trivial constructor and destructor. The `nameStorage` local in
`CompletionBuilder::finish` in `CodeCompletionOrganizer.cpp` is dead,
so remove it, as the LLVM commit did for the unused `Path` in
`VirtualOutputBackendsTest.cpp`.

See https://github.com/llvm/llvm-project/commit/e1fd616879c2f9cea648db4f78b486d9cd3e39e7 (https://github.com/llvm/llvm-project/pull/240180).
2026-11-22 21:42:32 -08:00
..

//===----------------------------------------------------------------------===//
//                              SourceKit README
//===----------------------------------------------------------------------===//

Welcome to SourceKit! SourceKit is a framework for supporting IDE features like
indexing, syntax-coloring, code-completion, etc. In general it provides the
infrastructure that an IDE needs for excellent language support.

SourceKit currently only supports the Swift language.

//===----------------------------------------------------------------------===//
//                       Linking to the SourceKit C API
//===----------------------------------------------------------------------===//

The stable C API for SourceKit is provided via the sourcekitd.framework which
uses an XPC service for process isolation and the libsourcekitdInProc.dylib
library which is in-process.

libsourcekitdInProc.dylib is more convenient for debugging. To use it either:
  -Link to this library instead of the framework ("-lsourcekitdInProc" instead
   of "-framework sourcekitd")
  -Run the binary that linked to the framework using these environment variables:
 DYLD_INSERT_LIBRARIES=/path/to/libsourcekitdInProc.dylib DYLD_FORCE_FLAT_NAMESPACE=1 <...>

//===----------------------------------------------------------------------===//