ソースを参照

AK: Add formatter for LexcialPath.

asynts 4 年 前
コミット
cf6980848b
1 ファイル変更8 行追加0 行削除
  1. 8 0
      AK/LexicalPath.h

+ 8 - 0
AK/LexicalPath.h

@@ -64,6 +64,14 @@ private:
     bool m_is_absolute { false };
 };
 
+template<>
+struct Formatter<LexicalPath> : Formatter<StringView> {
+    void format(TypeErasedFormatParams& params, FormatBuilder& builder, const LexicalPath& value)
+    {
+        Formatter<StringView>::format(params, builder, value.string());
+    }
+};
+
 };
 
 using AK::LexicalPath;