File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,14 @@ struct ExtractInactiveRanges : public ASTWalker {
192
192
};
193
193
} // end anonymous namespace
194
194
195
+ #if SWIFT_BUILD_SWIFT_SYNTAX
196
+ #pragma clang diagnostic push
197
+ #pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
198
+ extern " C" BridgedStringRef
199
+ swift_ASTGen_extractInlinableText (BridgedASTContext ctx,
200
+ BridgedStringRef sourceText);
201
+ #pragma clang diagnostic pop
202
+ #else
195
203
// / Appends the textual contents of the provided source range, stripping
196
204
// / the contents of comments that appear in the source.
197
205
// /
@@ -292,10 +300,7 @@ static void appendRange(
292
300
scratch.append (text.begin (), text.end ());
293
301
}
294
302
}
295
-
296
- extern " C"
297
- BridgedStringRef swift_ASTGen_extractInlinableText (
298
- BridgedASTContext ctx, BridgedStringRef sourceText);
303
+ #endif // SWIFT_BUILD_SWIFT_SYNTAX
299
304
300
305
StringRef swift::extractInlinableText (ASTContext &ctx, ASTNode node,
301
306
SmallVectorImpl<char > &scratch) {
You can’t perform that action at this time.
0 commit comments