Skip to content

Commit cdba2f1

Browse files
authored
---
yaml --- r: 340951 b: refs/heads/rxwei-patch-1 c: 35c31e7 h: refs/heads/master i: 340949: 105f158 340947: 916b730 340943: 97af6d8
1 parent a6cc9c3 commit cdba2f1

File tree

309 files changed

+2526
-5830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+2526
-5830
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: 5c4bedede0892e4e5846c3cf09270a321bd3ed94
1018+
refs/heads/rxwei-patch-1: 35c31e71790af25143edbecdaecc9da2620de1b2
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,9 @@ endif()
638638
if(SWIFT_HOST_VARIANT_ARCH)
639639
set(SWIFT_HOST_VARIANT_ARCH_default "${SWIFT_HOST_VARIANT_ARCH}")
640640
else()
641-
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64")
641+
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
642642
set(SWIFT_HOST_VARIANT_ARCH_default "x86_64")
643-
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|ARM64")
643+
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
644644
set(SWIFT_HOST_VARIANT_ARCH_default "aarch64")
645645
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64")
646646
set(SWIFT_HOST_VARIANT_ARCH_default "powerpc64")
@@ -653,6 +653,8 @@ else()
653653
set(SWIFT_HOST_VARIANT_ARCH_default "armv6")
654654
elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "armv7l|armv7-a")
655655
set(SWIFT_HOST_VARIANT_ARCH_default "armv7")
656+
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64")
657+
set(SWIFT_HOST_VARIANT_ARCH_default "x86_64")
656658
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "IA64")
657659
set(SWIFT_HOST_VARIANT_ARCH_default "itanium")
658660
elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86|i686)")
@@ -1104,7 +1106,6 @@ else()
11041106
# ensure we build that when building tools.
11051107
if(SWIFT_INCLUDE_TOOLS)
11061108
add_subdirectory(stdlib/public/Reflection)
1107-
add_subdirectory(stdlib/public/SwiftShims)
11081109
endif()
11091110
endif()
11101111

branches/rxwei-patch-1/cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,10 +1107,6 @@ function(_add_swift_library_single target name)
11071107
set_target_properties("${target}"
11081108
PROPERTIES
11091109
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/cygwin")
1110-
elseif("${SWIFTLIB_SINGLE_SDK}" STREQUAL "ANDROID")
1111-
# CMake generates incorrect rule `$SONAME_FLAG $INSTALLNAME_DIR$SONAME` for Android build on macOS cross-compile host.
1112-
# Proper linker flags constructed manually. See below variable `swiftlib_link_flags_all`.
1113-
set_target_properties("${target}" PROPERTIES NO_SONAME TRUE)
11141110
endif()
11151111

11161112
# SWIFT_ENABLE_TENSORFLOW
@@ -1420,7 +1416,7 @@ function(_add_swift_library_single target name)
14201416
# NOTE(compnerd) use the C linker language to invoke `clang` rather than
14211417
# `clang++` as we explicitly link against the C++ runtime. We were previously
14221418
# actually passing `-nostdlib++` to avoid the C++ runtime linkage.
1423-
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "ANDROID")
1419+
if(SWIFTLIB_SINGLE_SDK STREQUAL ANDROID)
14241420
set_property(TARGET "${target}" PROPERTY
14251421
LINKER_LANGUAGE "C")
14261422
else()
@@ -1919,16 +1915,6 @@ function(add_swift_target_library name)
19191915
NOT ${name} STREQUAL swiftRemoteMirror)
19201916
list(APPEND swiftlib_link_flags_all "-Wl,-z,defs")
19211917
endif()
1922-
# Setting back linker flags which are not supported when making Android build on macOS cross-compile host.
1923-
if(SWIFTLIB_SHARED)
1924-
if(sdk IN_LIST SWIFT_APPLE_PLATFORMS)
1925-
list(APPEND swiftlib_link_flags_all "-dynamiclib -Wl,-headerpad_max_install_names")
1926-
elseif(sdk STREQUAL ANDROID)
1927-
list(APPEND swiftlib_link_flags_all "-shared")
1928-
# TODO: Instead of `lib${name}.so` find variable or target property which already have this value.
1929-
list(APPEND swiftlib_link_flags_all "-Wl,-soname,lib${name}.so")
1930-
endif()
1931-
endif()
19321918

19331919
set(sdk_supported_archs
19341920
${SWIFT_SDK_${sdk}_ARCHITECTURES}
@@ -2405,17 +2391,6 @@ function(_add_swift_executable_single name)
24052391
target_link_libraries("${name}" PRIVATE ${SWIFTEXE_SINGLE_LINK_LIBRARIES})
24062392
swift_common_llvm_config("${name}" ${SWIFTEXE_SINGLE_LLVM_LINK_COMPONENTS})
24072393

2408-
# NOTE(compnerd) use the C linker language to invoke `clang` rather than
2409-
# `clang++` as we explicitly link against the C++ runtime. We were previously
2410-
# actually passing `-nostdlib++` to avoid the C++ runtime linkage.
2411-
if(SWIFTEXE_SINGLE_SDK STREQUAL ANDROID)
2412-
set_property(TARGET "${name}" PROPERTY
2413-
LINKER_LANGUAGE "C")
2414-
else()
2415-
set_property(TARGET "${name}" PROPERTY
2416-
LINKER_LANGUAGE "CXX")
2417-
endif()
2418-
24192394
set_target_properties(${name} PROPERTIES FOLDER "Swift executables")
24202395

24212396
# SWIFT_ENABLE_TENSORFLOW

branches/rxwei-patch-1/cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,32 @@ macro(swift_common_standalone_build_config_llvm product)
6363
endif()
6464

6565
if(SWIFT_INCLUDE_TOOLS)
66-
if(LLVM_TABLEGEN)
67-
set(LLVM_TABLEGEN_EXE ${LLVM_TABLEGEN})
68-
else()
69-
if(CMAKE_CROSSCOMPILING)
70-
set(LLVM_NATIVE_BUILD_DIR "${LLVM_BINARY_DIR}/NATIVE")
71-
if(NOT EXISTS "${LLVM_NATIVE_BUILD_DIR}")
72-
message(FATAL_ERROR
73-
"Attempting to cross-compile swift standalone but no native LLVM build
74-
found. Please cross-compile LLVM as well.")
75-
endif()
76-
77-
if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
78-
set(HOST_EXECUTABLE_SUFFIX ".exe")
79-
endif()
80-
81-
if(NOT CMAKE_CONFIGURATION_TYPES)
82-
set(LLVM_TABLEGEN_EXE
83-
"${LLVM_NATIVE_BUILD_DIR}/bin/llvm-tblgen${HOST_EXECUTABLE_SUFFIX}")
84-
else()
85-
# NOTE: LLVM NATIVE build is always built Release, as is specified in
86-
# CrossCompile.cmake
87-
set(LLVM_TABLEGEN_EXE
88-
"${LLVM_NATIVE_BUILD_DIR}/Release/bin/llvm-tblgen${HOST_EXECUTABLE_SUFFIX}")
89-
endif()
66+
if(CMAKE_CROSSCOMPILING)
67+
set(LLVM_NATIVE_BUILD_DIR "${LLVM_BINARY_DIR}/NATIVE")
68+
if(NOT EXISTS "${LLVM_NATIVE_BUILD_DIR}")
69+
message(FATAL_ERROR
70+
"Attempting to cross-compile swift standalone but no native LLVM build
71+
found. Please cross-compile LLVM as well.")
72+
endif()
73+
74+
if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
75+
set(HOST_EXECUTABLE_SUFFIX ".exe")
76+
endif()
77+
78+
if(NOT CMAKE_CONFIGURATION_TYPES)
79+
set(LLVM_TABLEGEN_EXE
80+
"${LLVM_NATIVE_BUILD_DIR}/bin/llvm-tblgen${HOST_EXECUTABLE_SUFFIX}")
9081
else()
91-
find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" HINTS ${LLVM_TOOLS_BINARY_DIR}
92-
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
93-
if(LLVM_TABLEGEN_EXE STREQUAL "LLVM_TABLEGEN_EXE-NOTFOUND")
94-
message(FATAL_ERROR "Failed to find tablegen in ${LLVM_TOOLS_BINARY_DIR}")
95-
endif()
82+
# NOTE: LLVM NATIVE build is always built Release, as is specified in
83+
# CrossCompile.cmake
84+
set(LLVM_TABLEGEN_EXE
85+
"${LLVM_NATIVE_BUILD_DIR}/Release/bin/llvm-tblgen${HOST_EXECUTABLE_SUFFIX}")
86+
endif()
87+
else()
88+
find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" HINTS ${LLVM_TOOLS_BINARY_DIR}
89+
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
90+
if(LLVM_TABLEGEN_EXE STREQUAL "LLVM_TABLEGEN_EXE-NOTFOUND")
91+
message(FATAL_ERROR "Failed to find tablegen in ${LLVM_TOOLS_BINARY_DIR}")
9692
endif()
9793
endif()
9894
endif()
@@ -114,9 +110,6 @@ macro(swift_common_standalone_build_config_llvm product)
114110
# add_swift_host_library and add_swift_target_library within AddSwift.cmake.
115111
string(REGEX REPLACE "-Wl,-z,defs" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
116112
string(REGEX REPLACE "-Wl,-z,nodelete" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
117-
# Android build on macOS cross-compile host don't support `-Wl,-headerpad_max_install_names` and `-dynamiclib` as a linker flags.
118-
string(REGEX REPLACE "-Wl,-headerpad_max_install_names" "" CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS}")
119-
string(REGEX REPLACE "-dynamiclib" "" CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS}")
120113

121114
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
122115
string(REGEX REPLACE "([0-9]+)\\.[0-9]+(\\.[0-9]+)?" "\\1" PACKAGE_VERSION_MAJOR

branches/rxwei-patch-1/cmake/modules/SwiftSource.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ function(_compile_swift_files
278278
# into the new runtime.
279279
if (SWIFTFILE_IS_STDLIB OR SWIFTFILE_IS_SDK_OVERLAY)
280280
list(APPEND swift_flags "-runtime-compatibility-version" "none")
281-
list(APPEND swift_flags "-disable-autolinking-runtime-compatibility-dynamic-replacements")
282281
endif()
283282

284283
if (SWIFTFILE_IS_STDLIB_CORE OR SWIFTFILE_IS_SDK_OVERLAY)

branches/rxwei-patch-1/include/swift/ABI/Class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ inline ObjCClassFlags operator|(ObjCClassFlags lhs, ObjCClassFlags rhs) {
6565

6666
}
6767

68-
#endif // SWIFT_ABI_CLASS_H
68+
#endif /* SWIFT_ABI_CLASS_H */

branches/rxwei-patch-1/include/swift/ABI/HeapObject.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17-
#ifndef SWIFT_ABI_HEAPOBJECT_H
18-
#define SWIFT_ABI_HEAPOBJECT_H
17+
#ifndef __SWIFT_ABI_HEAPOBJECT_H__
18+
#define __SWIFT_ABI_HEAPOBJECT_H__
1919

2020
#include "../../../stdlib/public/SwiftShims/HeapObject.h"
2121

22-
#endif // SWIFT_ABI_HEAPOBJECT_H
22+
#endif // __SWIFT_ABI_HEAPOBJECT_H__

branches/rxwei-patch-1/include/swift/ABI/KeyPath.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17-
#ifndef SWIFT_ABI_KEYPATH_H
18-
#define SWIFT_ABI_KEYPATH_H
17+
#ifndef __SWIFT_ABI_KEYPATH_H__
18+
#define __SWIFT_ABI_KEYPATH_H__
1919

2020
// We include the basic constants in a shim header so that it can be shared with
2121
// the Swift implementation in the standard library.
@@ -235,4 +235,4 @@ class KeyPathComponentHeader {
235235

236236
}
237237

238-
#endif // SWIFT_ABI_KEYPATH_H
238+
#endif

branches/rxwei-patch-1/include/swift/ABI/Metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4442,4 +4442,4 @@ class DynamicReplacementScope
44424442

44434443
#pragma clang diagnostic pop
44444444

4445-
#endif // SWIFT_ABI_METADATA_H
4445+
#endif /* SWIFT_ABI_METADATA_H */

branches/rxwei-patch-1/include/swift/ABI/MetadataValues.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,4 +1770,4 @@ class IntegerLiteralFlags {
17701770

17711771
} // end namespace swift
17721772

1773-
#endif // SWIFT_ABI_METADATAVALUES_H
1773+
#endif /* SWIFT_ABI_METADATAVALUES_H */

branches/rxwei-patch-1/include/swift/ABI/System.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17-
#ifndef SWIFT_ABI_SYSTEM_H
18-
#define SWIFT_ABI_SYSTEM_H
17+
#ifndef __SWIFT_ABI_SYSTEM_H__
18+
#define __SWIFT_ABI_SYSTEM_H__
1919

2020
#include "../../../stdlib/public/SwiftShims/System.h"
2121

22-
#endif // SWIFT_ABI_SYSTEM_H
22+
#endif // __SWIFT_ABI_SYSTEM_H__

branches/rxwei-patch-1/include/swift/ABI/TypeIdentity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,4 @@ class ParsedTypeIdentity {
215215

216216
} // end namespace swift
217217

218-
#endif // SWIFT_ABI_TYPEIDENTITY_H
218+
#endif /* SWIFT_ABI_TYPEIDENTITY_H */

branches/rxwei-patch-1/include/swift/AST/ASTContext.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,6 @@ class ASTContext final {
616616
/// Get the runtime availability of the opaque types language feature for the target platform.
617617
AvailabilityContext getOpaqueTypeAvailability();
618618

619-
/// Get the runtime availability of features introduced in the Swift 5.1
620-
/// compiler for the target platform.
621-
AvailabilityContext getSwift51Availability();
622-
623619
//===--------------------------------------------------------------------===//
624620
// Diagnostics Helper functions
625621
//===--------------------------------------------------------------------===//

branches/rxwei-patch-1/include/swift/AST/ASTDemangler.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
//
2020
//===----------------------------------------------------------------------===//
2121

22-
#ifndef SWIFT_AST_ASTDEMANGLER_H
23-
#define SWIFT_AST_ASTDEMANGLER_H
22+
#ifndef __SWIFT_AST_ASTDEMANGLER_H__
23+
#define __SWIFT_AST_ASTDEMANGLER_H__
2424

2525
#include "llvm/ADT/ArrayRef.h"
2626
#include "llvm/ADT/StringRef.h"
@@ -185,4 +185,4 @@ class ASTBuilder {
185185

186186
} // namespace swift
187187

188-
#endif // SWIFT_AST_ASTDEMANGLER_H
188+
#endif // __SWIFT_AST_ASTDEMANGLER_H__

branches/rxwei-patch-1/include/swift/AST/ASTMangler.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#ifndef SWIFT_AST_ASTMANGLER_H
14-
#define SWIFT_AST_ASTMANGLER_H
13+
#ifndef __SWIFT_AST_ASTMANGLER_H__
14+
#define __SWIFT_AST_ASTMANGLER_H__
1515

1616
#include "swift/Basic/Mangler.h"
1717
#include "swift/AST/Types.h"
@@ -350,4 +350,4 @@ class ASTMangler : public Mangler {
350350
} // end namespace Mangle
351351
} // end namespace swift
352352

353-
#endif // SWIFT_AST_ASTMANGLER_H
353+
#endif // __SWIFT_AST_ASTMANGLER_H__

branches/rxwei-patch-1/include/swift/AST/ASTPrinter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ class ASTPrinter {
286286

287287
/// To sanitize a malformed utf8 string to a well-formed one.
288288
static std::string sanitizeUtf8(StringRef Text);
289+
static ValueDecl* findConformancesWithDocComment(ValueDecl *VD);
289290

290291
private:
291292
virtual void anchor();

branches/rxwei-patch-1/include/swift/AST/ASTTypeIDs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ class Type;
3838

3939
} // end namespace swift
4040

41-
#endif // SWIFT_AST_ASTTYPEIDS_H
41+
#endif /* SWIFT_AST_ASTTYPEIDS_H */

branches/rxwei-patch-1/include/swift/AST/Attr.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ SIMPLE_DECL_ATTR(_alwaysEmitIntoClient, AlwaysEmitIntoClient,
400400
83)
401401

402402
SIMPLE_DECL_ATTR(_implementationOnly, ImplementationOnly,
403-
OnImport | OnFunc | OnConstructor | OnVar | OnSubscript | UserInaccessible,
403+
OnImport | UserInaccessible,
404404
84)
405405
DECL_ATTR(_custom, Custom,
406406
OnAnyDecl | UserInaccessible,

branches/rxwei-patch-1/include/swift/AST/Attr.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,9 +1737,6 @@ class DeclAttributes {
17371737
void dump(const Decl *D = nullptr) const;
17381738
void print(ASTPrinter &Printer, const PrintOptions &Options,
17391739
const Decl *D = nullptr) const;
1740-
static void print(ASTPrinter &Printer, const PrintOptions &Options,
1741-
ArrayRef<const DeclAttribute *> FlattenedAttrs,
1742-
const Decl *D = nullptr);
17431740

17441741
template <typename T, typename DERIVED>
17451742
class iterator_base : public std::iterator<std::forward_iterator_tag, T *> {

branches/rxwei-patch-1/include/swift/AST/Comment.h

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,20 @@
1818

1919
namespace swift {
2020
class Decl;
21-
class TypeDecl;
21+
class DocComment;
2222
struct RawComment;
2323

2424
class DocComment {
2525
const Decl *D;
26-
swift::markup::Document *Doc = nullptr;
27-
swift::markup::CommentParts Parts;
26+
const swift::markup::Document *Doc = nullptr;
27+
const swift::markup::CommentParts Parts;
2828

29+
public:
2930
DocComment(const Decl *D, swift::markup::Document *Doc,
3031
swift::markup::CommentParts Parts)
3132
: D(D), Doc(Doc), Parts(Parts) {}
3233

33-
public:
34-
static DocComment *create(const Decl *D, swift::markup::MarkupContext &MC,
35-
RawComment RC);
36-
37-
void addInheritanceNote(swift::markup::MarkupContext &MC, TypeDecl *base);
38-
3934
const Decl *getDecl() const { return D; }
40-
void setDecl(const Decl *D) { this->D = D; }
4135

4236
const swift::markup::Document *getDocument() const { return Doc; }
4337

@@ -93,23 +87,19 @@ class DocComment {
9387
};
9488

9589
/// Get a parsed documentation comment for the declaration, if there is one.
96-
DocComment *getSingleDocComment(swift::markup::MarkupContext &Context,
97-
const Decl *D);
98-
99-
const Decl *getDocCommentProvidingDecl(const Decl *D);
90+
Optional<DocComment *>getSingleDocComment(swift::markup::MarkupContext &Context,
91+
const Decl *D);
10092

10193
/// Attempt to get a doc comment from the declaration, or other inherited
10294
/// sources, like from base classes or protocols.
103-
DocComment *getCascadingDocComment(swift::markup::MarkupContext &MC,
104-
const Decl *D);
95+
Optional<DocComment *> getCascadingDocComment(swift::markup::MarkupContext &MC,
96+
const Decl *D);
10597

10698
/// Extract comments parts from the given Markup node.
10799
swift::markup::CommentParts
108100
extractCommentParts(swift::markup::MarkupContext &MC,
109101
swift::markup::MarkupASTNode *Node);
110-
111-
/// Extract brief comment from \p RC, and print it to \p OS .
112-
void printBriefComment(RawComment RC, llvm::raw_ostream &OS);
113102
} // namespace swift
114103

115104
#endif // LLVM_SWIFT_AST_COMMENT_H
105+

0 commit comments

Comments
 (0)