Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 937599 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/trace.h (-12 / +11 lines)
Lines 156-162 namespace fmt { template<typename T> struct formatter {}; } Link Here
156
//! adds support for formatting QCString
156
//! adds support for formatting QCString
157
template<> struct fmt::formatter<QCString> : formatter<std::string>
157
template<> struct fmt::formatter<QCString> : formatter<std::string>
158
{
158
{
159
  auto format(const QCString &c, format_context& ctx) {
159
  auto format(const QCString &c, format_context& ctx) const {
160
    return formatter<std::string>::format(c.str(), ctx);
160
    return formatter<std::string>::format(c.str(), ctx);
161
  }
161
  }
162
};
162
};
Lines 164-170 template<> struct fmt::formatter<QCString> : formatter<std::string> Link Here
164
//! adds support for formatting Protected
164
//! adds support for formatting Protected
165
template<> struct fmt::formatter<Protection> : formatter<std::string>
165
template<> struct fmt::formatter<Protection> : formatter<std::string>
166
{
166
{
167
  auto format(Protection prot, format_context& ctx) {
167
  auto format(Protection prot, format_context& ctx) const {
168
    std::string result="Unknown";
168
    std::string result="Unknown";
169
    switch (prot)
169
    switch (prot)
170
    {
170
    {
Lines 180-186 template<> struct fmt::formatter<Protection> : formatter<std::string> Link Here
180
//! adds support for formatting Specifier
180
//! adds support for formatting Specifier
181
template<> struct fmt::formatter<Specifier> : formatter<std::string>
181
template<> struct fmt::formatter<Specifier> : formatter<std::string>
182
{
182
{
183
  auto format(Specifier spec, format_context& ctx) {
183
  auto format(Specifier spec, format_context& ctx) const {
184
    std::string result="Unknown";
184
    std::string result="Unknown";
185
    switch (spec)
185
    switch (spec)
186
    {
186
    {
Lines 195-201 template<> struct fmt::formatter<Specifier> : formatter<std::string> Link Here
195
//! adds support for formatting MethodTypes
195
//! adds support for formatting MethodTypes
196
template<> struct fmt::formatter<MethodTypes> : formatter<std::string>
196
template<> struct fmt::formatter<MethodTypes> : formatter<std::string>
197
{
197
{
198
  auto format(MethodTypes mtype, format_context& ctx) {
198
  auto format(MethodTypes mtype, format_context& ctx) const {
199
    std::string result="Unknown";
199
    std::string result="Unknown";
200
    switch (mtype)
200
    switch (mtype)
201
    {
201
    {
Lines 213-219 template<> struct fmt::formatter<MethodTypes> : formatter<std::string> Link Here
213
//! adds support for formatting RelatesType
213
//! adds support for formatting RelatesType
214
template<> struct fmt::formatter<RelatesType> : formatter<std::string>
214
template<> struct fmt::formatter<RelatesType> : formatter<std::string>
215
{
215
{
216
  auto format(RelatesType type, format_context& ctx) {
216
  auto format(RelatesType type, format_context& ctx) const {
217
    std::string result="Unknown";
217
    std::string result="Unknown";
218
    switch (type)
218
    switch (type)
219
    {
219
    {
Lines 228-234 template<> struct fmt::formatter<RelatesType> : formatter<std::string> Link Here
228
//! adds support for formatting RelationShip
228
//! adds support for formatting RelationShip
229
template<> struct fmt::formatter<Relationship> : formatter<std::string>
229
template<> struct fmt::formatter<Relationship> : formatter<std::string>
230
{
230
{
231
  auto format(Relationship relation, format_context& ctx) {
231
  auto format(Relationship relation, format_context& ctx) const {
232
    std::string result="Unknown";
232
    std::string result="Unknown";
233
    switch (relation)
233
    switch (relation)
234
    {
234
    {
Lines 243-249 template<> struct fmt::formatter<Relationship> : formatter<std::string> Link Here
243
//! adds support for formatting SrcLangExt
243
//! adds support for formatting SrcLangExt
244
template<> struct fmt::formatter<SrcLangExt> : formatter<std::string>
244
template<> struct fmt::formatter<SrcLangExt> : formatter<std::string>
245
{
245
{
246
  auto format(SrcLangExt lang, format_context& ctx) {
246
  auto format(SrcLangExt lang, format_context& ctx) const {
247
    std::string result="Unknown";
247
    std::string result="Unknown";
248
    switch (lang)
248
    switch (lang)
249
    {
249
    {
Lines 273-279 template<> struct fmt::formatter<SrcLangExt> : formatter<std::string> Link Here
273
//! adds support for formatting MemberType
273
//! adds support for formatting MemberType
274
template<> struct fmt::formatter<MemberType> : formatter<std::string>
274
template<> struct fmt::formatter<MemberType> : formatter<std::string>
275
{
275
{
276
  auto format(MemberType mtype, format_context& ctx) {
276
  auto format(MemberType mtype, format_context& ctx) const {
277
    std::string result="Unknown";
277
    std::string result="Unknown";
278
    switch (mtype)
278
    switch (mtype)
279
    {
279
    {
Lines 301-307 template<> struct fmt::formatter<MemberType> : formatter<std::string> Link Here
301
//! adds support for formatting TypeSpecifier
301
//! adds support for formatting TypeSpecifier
302
template<> struct fmt::formatter<TypeSpecifier> : formatter<std::string>
302
template<> struct fmt::formatter<TypeSpecifier> : formatter<std::string>
303
{
303
{
304
  auto format(TypeSpecifier type, format_context& ctx) {
304
  auto format(TypeSpecifier type, format_context& ctx) const {
305
    return formatter<std::string>::format(type.to_string(),ctx);
305
    return formatter<std::string>::format(type.to_string(),ctx);
306
  }
306
  }
307
};
307
};
Lines 309-315 template<> struct fmt::formatter<TypeSpecifier> : formatter<std::string> Link Here
309
//! adds support for formatting EntryType
309
//! adds support for formatting EntryType
310
template<> struct fmt::formatter<EntryType> : formatter<std::string>
310
template<> struct fmt::formatter<EntryType> : formatter<std::string>
311
{
311
{
312
  auto format(EntryType type, format_context& ctx) {
312
  auto format(EntryType type, format_context& ctx) const {
313
    return formatter<std::string>::format(type.to_string(),ctx);
313
    return formatter<std::string>::format(type.to_string(),ctx);
314
  }
314
  }
315
};
315
};
Lines 317-323 template<> struct fmt::formatter<EntryType> : formatter<std::string> Link Here
317
//! adds support for formatting MemberListType
317
//! adds support for formatting MemberListType
318
template<> struct fmt::formatter<MemberListType> : formatter<std::string>
318
template<> struct fmt::formatter<MemberListType> : formatter<std::string>
319
{
319
{
320
  auto format(MemberListType type, format_context& ctx) {
320
  auto format(MemberListType type, format_context& ctx) const {
321
    return formatter<std::string>::format(type.to_string(),ctx);
321
    return formatter<std::string>::format(type.to_string(),ctx);
322
  }
322
  }
323
};
323
};
324
- 

Return to bug 937599