This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG7f0387de4c60: [clang][ExtractAPI] Add a space between type and name in property declaration… (authored by dang).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130583/new/ https://reviews.llvm.org/D130583 Files: clang/lib/ExtractAPI/DeclarationFragments.cpp clang/test/ExtractAPI/objc_category.m clang/test/ExtractAPI/objc_interface.m Index: clang/test/ExtractAPI/objc_interface.m =================================================================== --- clang/test/ExtractAPI/objc_interface.m +++ clang/test/ExtractAPI/objc_interface.m @@ -462,6 +462,10 @@ "preciseIdentifier": "c:i", "spelling": "unsigned int" }, + { + "kind": "text", + "spelling": " " + }, { "kind": "identifier", "spelling": "Property" Index: clang/test/ExtractAPI/objc_category.m =================================================================== --- clang/test/ExtractAPI/objc_category.m +++ clang/test/ExtractAPI/objc_category.m @@ -317,6 +317,10 @@ "preciseIdentifier": "c:I", "spelling": "int" }, + { + "kind": "text", + "spelling": " " + }, { "kind": "identifier", "spelling": "Property" Index: clang/lib/ExtractAPI/DeclarationFragments.cpp =================================================================== --- clang/lib/ExtractAPI/DeclarationFragments.cpp +++ clang/lib/ExtractAPI/DeclarationFragments.cpp @@ -692,6 +692,7 @@ return Fragments.appendSpace() .append(getFragmentsForType(Property->getType(), Property->getASTContext(), After)) + .appendSpace() .append(Property->getName(), DeclarationFragments::FragmentKind::Identifier) .append(std::move(After));
Index: clang/test/ExtractAPI/objc_interface.m =================================================================== --- clang/test/ExtractAPI/objc_interface.m +++ clang/test/ExtractAPI/objc_interface.m @@ -462,6 +462,10 @@ "preciseIdentifier": "c:i", "spelling": "unsigned int" }, + { + "kind": "text", + "spelling": " " + }, { "kind": "identifier", "spelling": "Property" Index: clang/test/ExtractAPI/objc_category.m =================================================================== --- clang/test/ExtractAPI/objc_category.m +++ clang/test/ExtractAPI/objc_category.m @@ -317,6 +317,10 @@ "preciseIdentifier": "c:I", "spelling": "int" }, + { + "kind": "text", + "spelling": " " + }, { "kind": "identifier", "spelling": "Property" Index: clang/lib/ExtractAPI/DeclarationFragments.cpp =================================================================== --- clang/lib/ExtractAPI/DeclarationFragments.cpp +++ clang/lib/ExtractAPI/DeclarationFragments.cpp @@ -692,6 +692,7 @@ return Fragments.appendSpace() .append(getFragmentsForType(Property->getType(), Property->getASTContext(), After)) + .appendSpace() .append(Property->getName(), DeclarationFragments::FragmentKind::Identifier) .append(std::move(After));
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits