mirror of
https://github.com/MaskRay/ccls.git
synced 2025-03-21 08:16:18 +00:00
remove absctractions per github review
This commit is contained in:
parent
c9f36a342d
commit
5e2ea98cb0
@ -10,10 +10,8 @@
|
|||||||
|
|
||||||
namespace ccls {
|
namespace ccls {
|
||||||
struct Pos {
|
struct Pos {
|
||||||
using Line=uint16_t;
|
uint16_t line = 0;
|
||||||
Line line = 0;
|
int16_t column = -1;
|
||||||
using Column=int16_t;
|
|
||||||
Column column = -1;
|
|
||||||
|
|
||||||
static Pos fromString(const std::string &encoded);
|
static Pos fromString(const std::string &encoded);
|
||||||
|
|
||||||
@ -36,7 +34,7 @@ protected:
|
|||||||
* (line, pos)
|
* (line, pos)
|
||||||
* use for lexicographic comparison
|
* use for lexicographic comparison
|
||||||
*/
|
*/
|
||||||
auto asTuple() const -> std::tuple<Line,Column> {
|
auto asTuple() const -> std::tuple<decltype(line),decltype(column)> {
|
||||||
return std::make_tuple(line, column);
|
return std::make_tuple(line, column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user