[IDE] Move definition of low-level runNameMatcher entry point to .cpp file

This commit is contained in:
Alex Hoppen
2023-12-12 09:11:10 -08:00
parent e8d148ab86
commit 72d38e94e2
2 changed files with 15 additions and 22 deletions

View File

@@ -160,26 +160,4 @@ public:
void *getOpaqueValue() const;
};
#ifdef __cplusplus
extern "C" {
#endif
/// Low-level entry point to run the NameMatcher written in swift-syntax.
///
/// - Warning: The only caller of this should be `swift::ide::runNameMatcher`.
///
/// - Parameters:
/// - sourceFilePtr: A pointer to an `ExportedSourceFile`, used to access the
/// syntax tree
/// - locations: Pointer to a buffer of `BridgedSourceLoc` that should be
/// resolved by the name matcher.
/// - locationsCount: Number of elements in `locations`.
/// - Returns: The opaque value of a `BridgedResolvedLocVector`.
void *swift_SwiftIDEUtilsBridging_runNameMatcher(const void *sourceFilePtr,
BridgedSourceLoc *locations,
size_t locationsCount);
#ifdef __cplusplus
}
#endif
#endif