Debian Codegraph @

LspCpp/include/LibLsp/lsp/AbsolutePath.h

raw
1 #pragma once
2
3 #include <LibLsp/JsonRpc/serializer.h>
4 #include <string>
5
6 struct AbsolutePath
7 {
8 static AbsolutePath BuildDoNotUse(std::string const& path);
9
10 // Try not to use this.
11 AbsolutePath();
12
13 // Provide implicit conversions to std::string for the time being.
14 AbsolutePath(std::string const& path, bool validate = true);
15 operator std::string() const;
16
17 bool operator==(AbsolutePath const& rhs) const;
18 bool operator!=(AbsolutePath const& rhs) const;
19 bool operator<(AbsolutePath const& rhs) const;
20 bool operator>(AbsolutePath const& rhs) const;
21 std::string path;
22 bool qualify = true;
23 };
24
25 void Reflect(Reader& visitor, AbsolutePath& value);
26 void Reflect(Writer& visitor, AbsolutePath& value);