We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c751011 + ddc8db7 commit f8f8d85Copy full SHA for f8f8d85
clang-tools-extra/clang-doc/Serialize.cpp
@@ -113,9 +113,9 @@ getFunctionPrototype(const FunctionDecl *FuncDecl) {
113
Stream << " " << ParamDecl->getNameAsString();
114
115
// Print default argument if it exists
116
- if (ParamDecl->hasDefaultArg()) {
117
- const Expr *DefaultArg = ParamDecl->getDefaultArg();
118
- if (DefaultArg) {
+ if (ParamDecl->hasDefaultArg() &&
+ !ParamDecl->hasUninstantiatedDefaultArg()) {
+ if (const Expr *DefaultArg = ParamDecl->getDefaultArg()) {
119
Stream << " = ";
120
DefaultArg->printPretty(Stream, nullptr, Ctx.getPrintingPolicy());
121
}
0 commit comments