This revision was automatically updated to reflect the committed changes.
Closed by commit rG14805dcb0d8a: [clang][ExtractAPI] Add semicolon to function
declaration fragments (authored by chaitanyav).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149737/new/
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
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits