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[] = {
|
||||
"CONFIG",
|
||||
"absolute_path",
|
||||
"basename",
|
||||
"cache",
|
||||
"cat",
|
||||
"clean_path",
|
||||
"clear",
|
||||
"CONFIG",
|
||||
"contains",
|
||||
"count",
|
||||
"debug",
|
||||
@@ -252,9 +252,9 @@ static const char *const functionKeywords[] = {
|
||||
"equals",
|
||||
"error",
|
||||
"escape_expand",
|
||||
"eval",
|
||||
"exists",
|
||||
"export",
|
||||
"eval",
|
||||
"files",
|
||||
"find",
|
||||
"first",
|
||||
@@ -269,9 +269,9 @@ static const char *const functionKeywords[] = {
|
||||
"isActiveConfig",
|
||||
"isEmpty",
|
||||
"isEqual",
|
||||
"lessThan",
|
||||
"join",
|
||||
"last",
|
||||
"lessThan",
|
||||
"list",
|
||||
"load",
|
||||
"log",
|
||||
@@ -283,20 +283,20 @@ static const char *const functionKeywords[] = {
|
||||
"parseJson",
|
||||
"prompt",
|
||||
"quote",
|
||||
"re_escape",
|
||||
"relative_path",
|
||||
"replace",
|
||||
"requires",
|
||||
"resolve_depends",
|
||||
"reverse",
|
||||
"re_escape",
|
||||
"section",
|
||||
"shadowed",
|
||||
"shell_path",
|
||||
"shell_quote",
|
||||
"size",
|
||||
"sort_depends",
|
||||
"split",
|
||||
"sprintf",
|
||||
"sort_depends",
|
||||
"system",
|
||||
"system_path",
|
||||
"system_quote",
|
||||
@@ -306,8 +306,8 @@ static const char *const functionKeywords[] = {
|
||||
"unset",
|
||||
"upper",
|
||||
"val_escape",
|
||||
"write_file",
|
||||
"warning",
|
||||
"write_file",
|
||||
0
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user