forked from qt-creator/qt-creator
QmakePM: Sort function keywords
They are searched using std::binary_search, which expects sorted input. Change-Id: Ib2d59ab6e747e6ce36220dfd33dbe9bb145aeb92 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
4d34270874
commit
5071dd80cb
@@ -236,13 +236,13 @@ static const char *const variableKeywords[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const char *const functionKeywords[] = {
|
static const char *const functionKeywords[] = {
|
||||||
|
"CONFIG",
|
||||||
"absolute_path",
|
"absolute_path",
|
||||||
"basename",
|
"basename",
|
||||||
"cache",
|
"cache",
|
||||||
"cat",
|
"cat",
|
||||||
"clean_path",
|
"clean_path",
|
||||||
"clear",
|
"clear",
|
||||||
"CONFIG",
|
|
||||||
"contains",
|
"contains",
|
||||||
"count",
|
"count",
|
||||||
"debug",
|
"debug",
|
||||||
@@ -252,9 +252,9 @@ static const char *const functionKeywords[] = {
|
|||||||
"equals",
|
"equals",
|
||||||
"error",
|
"error",
|
||||||
"escape_expand",
|
"escape_expand",
|
||||||
|
"eval",
|
||||||
"exists",
|
"exists",
|
||||||
"export",
|
"export",
|
||||||
"eval",
|
|
||||||
"files",
|
"files",
|
||||||
"find",
|
"find",
|
||||||
"first",
|
"first",
|
||||||
@@ -269,9 +269,9 @@ static const char *const functionKeywords[] = {
|
|||||||
"isActiveConfig",
|
"isActiveConfig",
|
||||||
"isEmpty",
|
"isEmpty",
|
||||||
"isEqual",
|
"isEqual",
|
||||||
"lessThan",
|
|
||||||
"join",
|
"join",
|
||||||
"last",
|
"last",
|
||||||
|
"lessThan",
|
||||||
"list",
|
"list",
|
||||||
"load",
|
"load",
|
||||||
"log",
|
"log",
|
||||||
@@ -283,20 +283,20 @@ static const char *const functionKeywords[] = {
|
|||||||
"parseJson",
|
"parseJson",
|
||||||
"prompt",
|
"prompt",
|
||||||
"quote",
|
"quote",
|
||||||
|
"re_escape",
|
||||||
"relative_path",
|
"relative_path",
|
||||||
"replace",
|
"replace",
|
||||||
"requires",
|
"requires",
|
||||||
"resolve_depends",
|
"resolve_depends",
|
||||||
"reverse",
|
"reverse",
|
||||||
"re_escape",
|
|
||||||
"section",
|
"section",
|
||||||
"shadowed",
|
"shadowed",
|
||||||
"shell_path",
|
"shell_path",
|
||||||
"shell_quote",
|
"shell_quote",
|
||||||
"size",
|
"size",
|
||||||
|
"sort_depends",
|
||||||
"split",
|
"split",
|
||||||
"sprintf",
|
"sprintf",
|
||||||
"sort_depends",
|
|
||||||
"system",
|
"system",
|
||||||
"system_path",
|
"system_path",
|
||||||
"system_quote",
|
"system_quote",
|
||||||
@@ -306,8 +306,8 @@ static const char *const functionKeywords[] = {
|
|||||||
"unset",
|
"unset",
|
||||||
"upper",
|
"upper",
|
||||||
"val_escape",
|
"val_escape",
|
||||||
"write_file",
|
|
||||||
"warning",
|
"warning",
|
||||||
|
"write_file",
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user