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