From 5071dd80cb352ebfe67209e3f3bc70ef619a5ccf Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Fri, 9 Dec 2016 11:34:23 +0200 Subject: QmakePM: Sort function keywords They are searched using std::binary_search, which expects sorted input. Change-Id: Ib2d59ab6e747e6ce36220dfd33dbe9bb145aeb92 Reviewed-by: Tobias Hunger --- src/plugins/qmakeprojectmanager/profilecompletionassist.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/qmakeprojectmanager/profilecompletionassist.cpp b/src/plugins/qmakeprojectmanager/profilecompletionassist.cpp index 8594f86280..dea84b50dc 100644 --- a/src/plugins/qmakeprojectmanager/profilecompletionassist.cpp +++ b/src/plugins/qmakeprojectmanager/profilecompletionassist.cpp @@ -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 }; -- cgit v1.2.3