Skip to content
Snippets Groups Projects
Commit 5071dd80 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmakePM: Sort function keywords


They are searched using std::binary_search, which expects sorted input.

Change-Id: Ib2d59ab6e747e6ce36220dfd33dbe9bb145aeb92
Reviewed-by: default avatarTobias Hunger <tobias.hunger@qt.io>
parent 4d342708
No related branches found
No related tags found
No related merge requests found
...@@ -236,13 +236,13 @@ static const char *const variableKeywords[] = { ...@@ -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[] = { ...@@ -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[] = { ...@@ -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[] = { ...@@ -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[] = { ...@@ -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
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment