Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/codegen/codegenhelper.cpp
Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Line(s) | 214 | { | |||
---|---|---|---|---|---|
215 | if (!type) { | 215 | if (!type) { | ||
216 | return AbstractType::Ptr(); | 216 | return AbstractType::Ptr(); | ||
217 | } | 217 | } | ||
218 | 218 | | |||
219 | struct ShortenTemplateDefaultParameter | 219 | struct ShortenTemplateDefaultParameter | ||
220 | : public TypeExchanger | 220 | : public TypeExchanger | ||
221 | { | 221 | { | ||
222 | DUContext* ctx; | 222 | DUContext* ctx; | ||
223 | ShortenTemplateDefaultParameter(DUContext* _ctx) | 223 | explicit ShortenTemplateDefaultParameter(DUContext* _ctx) | ||
224 | : ctx(_ctx) { | 224 | : ctx(_ctx) { | ||
225 | Q_ASSERT(ctx); | 225 | Q_ASSERT(ctx); | ||
226 | } | 226 | } | ||
227 | 227 | | |||
228 | AbstractType::Ptr exchange(const AbstractType::Ptr& type) override { | 228 | AbstractType::Ptr exchange(const AbstractType::Ptr& type) override { | ||
229 | if (!type) { | 229 | if (!type) { | ||
230 | return type; | 230 | return type; | ||
231 | } | 231 | } | ||
▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines |