@@ -112,16 +112,16 @@ namespace syntax {
112
112
class SyntaxArena ;
113
113
}
114
114
115
- // / \brief The arena in which a particular ASTContext allocation will go.
115
+ // / The arena in which a particular ASTContext allocation will go.
116
116
enum class AllocationArena {
117
- // / \brief The permanent arena, which is tied to the lifetime of
117
+ // / The permanent arena, which is tied to the lifetime of
118
118
// / the ASTContext.
119
119
// /
120
120
// / All global declarations and types need to be allocated into this arena.
121
121
// / At present, everything that is not a type involving a type variable is
122
122
// / allocated in this arena.
123
123
Permanent,
124
- // / \brief The constraint solver's temporary arena, which is tied to the
124
+ // / The constraint solver's temporary arena, which is tied to the
125
125
// / lifetime of a particular instance of the constraint solver.
126
126
// /
127
127
// / Any type involving a type variable is allocated in this arena.
@@ -144,14 +144,14 @@ enum class KnownFoundationEntity {
144
144
// / entity name.
145
145
Optional<KnownFoundationEntity> getKnownFoundationEntity (StringRef name);
146
146
147
- // / \brief Introduces a new constraint checker arena, whose lifetime is
147
+ // / Introduces a new constraint checker arena, whose lifetime is
148
148
// / tied to the lifetime of this RAII object.
149
149
class ConstraintCheckerArenaRAII {
150
150
ASTContext &Self;
151
151
void *Data;
152
152
153
153
public:
154
- // / \brief Introduces a new constraint checker arena, supplanting any
154
+ // / Introduces a new constraint checker arena, supplanting any
155
155
// / existing constraint checker arena.
156
156
// /
157
157
// / \param self The ASTContext into which this constraint checker arena
@@ -216,13 +216,13 @@ class ASTContext final {
216
216
// / it before being set to null.
217
217
UnifiedStatsReporter *Stats = nullptr ;
218
218
219
- // / \brief The language options used for translation.
219
+ // / The language options used for translation.
220
220
LangOptions &LangOpts;
221
221
222
- // / \brief The search path options used by this AST context.
222
+ // / The search path options used by this AST context.
223
223
SearchPathOptions &SearchPathOpts;
224
224
225
- // / \brief The source manager object.
225
+ // / The source manager object.
226
226
SourceManager &SourceMgr;
227
227
228
228
// / Diags - The diagnostics engine.
@@ -252,7 +252,7 @@ class ASTContext final {
252
252
#define IDENTIFIER_WITH_NAME (Name, IdStr ) Identifier Id_##Name;
253
253
#include " swift/AST/KnownIdentifiers.def"
254
254
255
- // / \brief The list of external definitions imported by this context.
255
+ // / The list of external definitions imported by this context.
256
256
llvm::SetVector<Decl *> ExternalDefinitions;
257
257
258
258
// / FIXME: HACK HACK HACK
@@ -270,7 +270,7 @@ class ASTContext final {
270
270
llvm::StringMap<Type> RemappedTypes;
271
271
272
272
private:
273
- // / \brief The current generation number, which reflects the number of
273
+ // / The current generation number, which reflects the number of
274
274
// / times that external modules have been loaded.
275
275
// /
276
276
// / Various places in the AST, such as the set of extensions associated with
@@ -289,7 +289,7 @@ class ASTContext final {
289
289
// / Cache of module names that fail the 'canImport' test in this context.
290
290
llvm::SmallPtrSet<Identifier, 8 > FailedModuleImportNames;
291
291
292
- // / \brief Retrieve the allocator for the given arena.
292
+ // / Retrieve the allocator for the given arena.
293
293
llvm::BumpPtrAllocator &
294
294
getAllocator (AllocationArena arena = AllocationArena::Permanent) const ;
295
295
@@ -630,7 +630,7 @@ class ASTContext final {
630
630
// / Does any proper bookkeeping to keep all module loaders up to date as well.
631
631
void addSearchPath (StringRef searchPath, bool isFramework, bool isSystem);
632
632
633
- // / \brief Adds a module loader to this AST context.
633
+ // / Adds a module loader to this AST context.
634
634
// /
635
635
// / \param loader The new module loader, which will be added after any
636
636
// / existing module loaders.
@@ -640,7 +640,7 @@ class ASTContext final {
640
640
void addModuleLoader (std::unique_ptr<ModuleLoader> loader,
641
641
bool isClang = false );
642
642
643
- // / \brief Load extensions to the given nominal type from the external
643
+ // / Load extensions to the given nominal type from the external
644
644
// / module loaders.
645
645
// /
646
646
// / \param nominal The nominal type whose extensions should be loaded.
@@ -650,7 +650,7 @@ class ASTContext final {
650
650
// / one.
651
651
void loadExtensions (NominalTypeDecl *nominal, unsigned previousGeneration);
652
652
653
- // / \brief Load the methods within the given class that produce
653
+ // / Load the methods within the given class that produce
654
654
// / Objective-C class or instance methods with the given selector.
655
655
// /
656
656
// / \param classDecl The class in which we are searching for @objc methods.
@@ -675,7 +675,7 @@ class ASTContext final {
675
675
unsigned previousGeneration,
676
676
llvm::TinyPtrVector<AbstractFunctionDecl *> &methods);
677
677
678
- // / \brief Retrieve the Clang module loader for this ASTContext.
678
+ // / Retrieve the Clang module loader for this ASTContext.
679
679
// /
680
680
// / If there is no Clang module loader, returns a null pointer.
681
681
// / The loader is owned by the AST context.
@@ -686,7 +686,7 @@ class ASTContext final {
686
686
// / Does nothing in non-asserts (NDEBUG) builds.
687
687
void verifyAllLoadedModules () const ;
688
688
689
- // / \brief Check whether the module with a given name can be imported without
689
+ // / Check whether the module with a given name can be imported without
690
690
// / importing it.
691
691
// /
692
692
// / Note that even if this check succeeds, errors may still occur if the
@@ -700,7 +700,7 @@ class ASTContext final {
700
700
701
701
ModuleDecl *getLoadedModule (Identifier ModuleName) const ;
702
702
703
- // / \brief Attempts to load a module into this ASTContext.
703
+ // / Attempts to load a module into this ASTContext.
704
704
// /
705
705
// / If a module by this name has already been loaded, the existing module will
706
706
// / be returned.
@@ -720,7 +720,7 @@ class ASTContext final {
720
720
return const_cast <ASTContext *>(this )->getStdlibModule (false );
721
721
}
722
722
723
- // / \brief Retrieve the current generation number, which reflects the
723
+ // / Retrieve the current generation number, which reflects the
724
724
// / number of times a module import has caused mass invalidation of
725
725
// / lookup tables.
726
726
// /
@@ -729,14 +729,14 @@ class ASTContext final {
729
729
// / with a nominal type.
730
730
unsigned getCurrentGeneration () const { return CurrentGeneration; }
731
731
732
- // / \brief Increase the generation number, implying that various lookup
732
+ // / Increase the generation number, implying that various lookup
733
733
// / tables have been significantly altered by the introduction of a new
734
734
// / module import.
735
735
// /
736
736
// / \returns the previous generation number.
737
737
unsigned bumpGeneration () { return CurrentGeneration++; }
738
738
739
- // / \brief Produce a "normal" conformance for a nominal type.
739
+ // / Produce a "normal" conformance for a nominal type.
740
740
NormalProtocolConformance *
741
741
getConformance (Type conformingType,
742
742
ProtocolDecl *protocol,
@@ -785,7 +785,7 @@ class ASTContext final {
785
785
std::vector<ValueDecl*>
786
786
takeDelayedMissingWitnesses (NormalProtocolConformance *conformance);
787
787
788
- // / \brief Produce a specialized conformance, which takes a generic
788
+ // / Produce a specialized conformance, which takes a generic
789
789
// / conformance and substitutions written in terms of the generic
790
790
// / conformance's signature.
791
791
// /
@@ -800,7 +800,7 @@ class ASTContext final {
800
800
ProtocolConformance *generic,
801
801
SubstitutionMap substitutions);
802
802
803
- // / \brief Produce an inherited conformance, for subclasses of a type
803
+ // / Produce an inherited conformance, for subclasses of a type
804
804
// / that already conforms to a protocol.
805
805
// /
806
806
// / \param type The type for which we are retrieving the conformance.
@@ -848,10 +848,10 @@ class ASTContext final {
848
848
const IterableDeclContext *idc,
849
849
LazyMemberLoader *lazyLoader);
850
850
851
- // / \brief Returns memory usage of this ASTContext.
851
+ // / Returns memory usage of this ASTContext.
852
852
size_t getTotalMemory () const ;
853
853
854
- // / \brief Returns memory used exclusively by constraint solver.
854
+ // / Returns memory used exclusively by constraint solver.
855
855
size_t getSolverMemory () const ;
856
856
857
857
// / Complain if @objc or dynamic is used without importing Foundation.
0 commit comments