switched enum syntax in core to enum class

This commit is contained in:
Eberhard Graether
2018-12-18 00:41:19 +01:00
parent 2e78670c80
commit f4cf5f171a
18 changed files with 389 additions and 346 deletions
+11 -11
View File
@@ -22,21 +22,21 @@ namespace sourcetrail
/**
* Enum providing all possible values for kinds of locations that can be stored to the Sourcetrail database.
*/
enum LocationKind
enum class LocationKind : int
{
LOCATION_TOKEN = 0,
LOCATION_SCOPE = 1,
LOCATION_QUALIFIER = 2,
LOCATION_LOCAL_SYMBOL = 3,
LOCATION_SIGNATURE = 4,
LOCATION_COMMENT = 5,
LOCATION_ERROR = 6,
LOCATION_FULLTEXT_SEARCH = 7,
LOCATION_SCREEN_SEARCH = 8
TOKEN = 0,
SCOPE = 1,
QUALIFIER = 2,
LOCAL_SYMBOL = 3,
SIGNATURE = 4,
COMMENT = 5,
ERROR = 6,
FULLTEXT_SEARCH = 7,
SCREEN_SEARCH = 8
};
int locationKindToInt(LocationKind kind);
LocationKind intToLocationKind(int i);
int locationKindToInt(LocationKind locationKind);
}
#endif // SOURCETRAIL_LOCATION_KIND_H