Skip to content

Commit 14faf0d

Browse files
committed
[TextAPI][InstallAPI] Fix documentation typos, NFC
1 parent 8394ec9 commit 14faf0d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

clang/lib/InstallAPI/Visitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using namespace llvm::MachO;
1919

2020
namespace clang::installapi {
2121

22-
// Exported NamedDecl needs to have externally visibiliy linkage and
22+
// Exported NamedDecl needs to have external linkage and
2323
// default visibility from LinkageComputer.
2424
static bool isExported(const NamedDecl *D) {
2525
auto LV = D->getLinkageAndVisibility();

llvm/include/llvm/TextAPI/RecordsSlice.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ class RecordsSlice {
5050
/// Add non-ObjC global record.
5151
///
5252
/// \param Name The name of symbol.
53-
/// \param Flags The flags that describe attributes of the symbol.
54-
/// \param GV The kind of global.
5553
/// \param Linkage The linkage of symbol.
54+
/// \param GV The kind of global.
55+
/// \param Flags The flags that describe attributes of the symbol.
5656
/// \return The non-owning pointer to added record in slice.
5757
GlobalRecord *addGlobal(StringRef Name, RecordLinkage Linkage,
5858
GlobalRecord::Kind GV,
@@ -69,6 +69,7 @@ class RecordsSlice {
6969

7070
/// Add ObjC IVar record.
7171
///
72+
/// \param Container Owning pointer for instance variable.
7273
/// \param Name The name of ivar, not symbol.
7374
/// \param Linkage The linkage of symbol.
7475
/// \return The non-owning pointer to added record in slice.
@@ -93,7 +94,7 @@ class RecordsSlice {
9394
/// Find ObjC Category.
9495
///
9596
/// \param ClassToExtend The name of class, not full symbol name.
96-
/// \param Categories The name of category.
97+
/// \param Category The name of category.
9798
/// \return The non-owning pointer to record in slice.
9899
ObjCCategoryRecord *findObjCCategory(StringRef ClassToExtend,
99100
StringRef Category) const;

0 commit comments

Comments
 (0)