diff --git a/clang/lib/ExtractAPI/DeclarationFragments.cpp b/clang/lib/ExtractAPI/DeclarationFragments.cpp --- a/clang/lib/ExtractAPI/DeclarationFragments.cpp +++ b/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( diff --git a/clang/test/ExtractAPI/availability.c b/clang/test/ExtractAPI/availability.c --- a/clang/test/ExtractAPI/availability.c +++ b/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": { diff --git a/clang/test/ExtractAPI/global_record.c b/clang/test/ExtractAPI/global_record.c --- a/clang/test/ExtractAPI/global_record.c +++ b/clang/test/ExtractAPI/global_record.c @@ -189,7 +189,7 @@ }, { "kind": "text", - "spelling": ")" + "spelling": ");" } ], "docComment": { diff --git a/clang/test/ExtractAPI/global_record_multifile.c b/clang/test/ExtractAPI/global_record_multifile.c --- a/clang/test/ExtractAPI/global_record_multifile.c +++ b/clang/test/ExtractAPI/global_record_multifile.c @@ -191,7 +191,7 @@ }, { "kind": "text", - "spelling": ")" + "spelling": ");" } ], "docComment": { diff --git a/clang/test/ExtractAPI/macro_undefined.c b/clang/test/ExtractAPI/macro_undefined.c --- a/clang/test/ExtractAPI/macro_undefined.c +++ b/clang/test/ExtractAPI/macro_undefined.c @@ -67,7 +67,7 @@ }, { "kind": "text", - "spelling": "()" + "spelling": "();" } ], "functionSignature": { @@ -173,7 +173,7 @@ }, { "kind": "text", - "spelling": ")" + "spelling": ");" } ], "functionSignature": {