diff --git a/clang/lib/InstallAPI/Visitor.cpp b/clang/lib/InstallAPI/Visitor.cpp index 9b333a6142ae8..3806a69b52399 100644 --- a/clang/lib/InstallAPI/Visitor.cpp +++ b/clang/lib/InstallAPI/Visitor.cpp @@ -19,7 +19,7 @@ using namespace llvm::MachO; namespace clang::installapi { -// Exported NamedDecl needs to have externally visibiliy linkage and +// Exported NamedDecl needs to have external linkage and // default visibility from LinkageComputer. static bool isExported(const NamedDecl *D) { auto LV = D->getLinkageAndVisibility(); diff --git a/llvm/include/llvm/TextAPI/RecordsSlice.h b/llvm/include/llvm/TextAPI/RecordsSlice.h index 5b214d0bfff56..57b23e5ea29e7 100644 --- a/llvm/include/llvm/TextAPI/RecordsSlice.h +++ b/llvm/include/llvm/TextAPI/RecordsSlice.h @@ -50,9 +50,9 @@ class RecordsSlice { /// Add non-ObjC global record. /// /// \param Name The name of symbol. - /// \param Flags The flags that describe attributes of the symbol. - /// \param GV The kind of global. /// \param Linkage The linkage of symbol. + /// \param GV The kind of global. + /// \param Flags The flags that describe attributes of the symbol. /// \return The non-owning pointer to added record in slice. GlobalRecord *addGlobal(StringRef Name, RecordLinkage Linkage, GlobalRecord::Kind GV, @@ -69,6 +69,7 @@ class RecordsSlice { /// Add ObjC IVar record. /// + /// \param Container Owning pointer for instance variable. /// \param Name The name of ivar, not symbol. /// \param Linkage The linkage of symbol. /// \return The non-owning pointer to added record in slice. @@ -93,7 +94,7 @@ class RecordsSlice { /// Find ObjC Category. /// /// \param ClassToExtend The name of class, not full symbol name. - /// \param Categories The name of category. + /// \param Category The name of category. /// \return The non-owning pointer to record in slice. ObjCCategoryRecord *findObjCCategory(StringRef ClassToExtend, StringRef Category) const;