chaitanyav created this revision. chaitanyav added a reviewer: dang. Herald added a reviewer: ributzka. Herald added a project: All. chaitanyav requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Add missing semicolon at the end of function declarations to fragments Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D149737 Files: clang/lib/ExtractAPI/DeclarationFragments.cpp clang/test/ExtractAPI/availability.c clang/test/ExtractAPI/global_record.c clang/test/ExtractAPI/global_record_multifile.c clang/test/ExtractAPI/macro_undefined.c
Index: clang/test/ExtractAPI/macro_undefined.c =================================================================== --- clang/test/ExtractAPI/macro_undefined.c +++ clang/test/ExtractAPI/macro_undefined.c @@ -67,7 +67,7 @@ }, { "kind": "text", - "spelling": "()" + "spelling": "();" } ], "functionSignature": { @@ -173,7 +173,7 @@ }, { "kind": "text", - "spelling": ")" + "spelling": ");" } ], "functionSignature": { Index: clang/test/ExtractAPI/global_record_multifile.c =================================================================== --- clang/test/ExtractAPI/global_record_multifile.c +++ clang/test/ExtractAPI/global_record_multifile.c @@ -191,7 +191,7 @@ }, { "kind": "text", - "spelling": ")" + "spelling": ");" } ], "docComment": { Index: clang/test/ExtractAPI/global_record.c =================================================================== --- clang/test/ExtractAPI/global_record.c +++ clang/test/ExtractAPI/global_record.c @@ -189,7 +189,7 @@ }, { "kind": "text", - "spelling": ")" + "spelling": ");" } ], "docComment": { Index: clang/test/ExtractAPI/availability.c =================================================================== --- clang/test/ExtractAPI/availability.c +++ clang/test/ExtractAPI/availability.c @@ -76,7 +76,7 @@ }, { "kind": "text", - "spelling": "()" + "spelling": "();" } ], "functionSignature": { @@ -150,7 +150,7 @@ }, { "kind": "text", - "spelling": "()" + "spelling": "();" } ], "functionSignature": { @@ -234,7 +234,7 @@ }, { "kind": "text", - "spelling": "()" + "spelling": "();" } ], "functionSignature": { @@ -334,7 +334,7 @@ }, { "kind": "text", - "spelling": "()" + "spelling": "();" } ], "functionSignature": { @@ -416,7 +416,7 @@ }, { "kind": "text", - "spelling": "()" + "spelling": "();" } ], "functionSignature": { Index: clang/lib/ExtractAPI/DeclarationFragments.cpp =================================================================== --- clang/lib/ExtractAPI/DeclarationFragments.cpp +++ clang/lib/ExtractAPI/DeclarationFragments.cpp @@ -457,7 +457,7 @@ Fragments.append(")", DeclarationFragments::FragmentKind::Text); // FIXME: Handle exception specifiers: throw, noexcept - return Fragments; + return Fragments.append(";", DeclarationFragments::FragmentKind::Text); } DeclarationFragments DeclarationFragmentsBuilder::getFragmentsForEnumConstant(
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits