@@ -41,7 +41,8 @@ struct FunctionInfo;
41
41
struct Info ;
42
42
struct TypedefInfo ;
43
43
44
- enum class InfoType {
44
+ enum class InfoType
45
+ {
45
46
IT_default,
46
47
IT_namespace,
47
48
IT_record,
@@ -256,7 +257,7 @@ struct TypeInfo
256
257
// template parameter. It is saved in a struct so there is a place to add the
257
258
// name and default values in the future if needed.
258
259
//
259
- /* * A tempalte parameter.
260
+ /* * A template parameter.
260
261
*/
261
262
struct TemplateParamInfo
262
263
{
@@ -400,26 +401,37 @@ struct Info
400
401
{
401
402
}
402
403
403
- SymbolID USR =
404
- SymbolID (); // Unique identifier for the decl described by this Info.
405
- const InfoType IT = InfoType::IT_default; // InfoType of this particular Info.
406
- SmallString<16 > Name; // Unqualified name of the decl.
407
- llvm::SmallVector<Reference, 4 >
408
- Namespace; // List of parent namespaces for this decl.
404
+ /* * Unique identifier for the declaration.
405
+ */
406
+ SymbolID USR = SymbolID();
407
+
408
+ /* * Kind of declaration.
409
+ */
410
+ InfoType const IT = InfoType::IT_default;
411
+
412
+ /* * Unqualified name.
413
+ */
414
+ SmallString<16 > Name;
415
+
416
+ /* * In-order List of parent namespaces.
417
+ */
418
+ llvm::SmallVector<Reference, 4 > Namespace;
409
419
410
420
Javadoc javadoc;
411
- std::vector<CommentInfo> Description; // Comment description of this decl.
421
+ // Comment description of this decl.
422
+ std::vector<CommentInfo> Description;
412
423
413
- llvm::SmallString< 128 > Path; // Path of directory where the clang-doc
424
+ // Path of directory where the clang-doc
414
425
// generated file will be saved
426
+ llvm::SmallString<128 > Path;
415
427
416
428
void mergeBase (Info&& I);
417
429
bool mergeable (const Info& Other);
418
430
419
431
llvm::SmallString<16 > extractName () const ;
420
432
421
433
// / Returns the file path for this Info relative to CurrentPath.
422
- llvm::SmallString<64 > getRelativeFilePath (const StringRef& CurrentPath) const ;
434
+ llvm::SmallString<64 > getRelativeFilePath (llvm:: StringRef const & CurrentPath) const ;
423
435
424
436
// / Returns the basename that should be used for this Info.
425
437
llvm::SmallString<16 > getFileBaseName () const ;
0 commit comments