summaryrefslogtreecommitdiff
path: root/Source/cmOutputConverter.h
diff options
context:
space:
mode:
authorFrank Winklmeier <frank.winklmeier@cern.ch>2018-02-22 16:05:40 +0100
committerFrank Winklmeier <frank.winklmeier@cern.ch>2018-02-23 17:23:10 +0100
commit8ab3660a1ed0bf213d297e4dc8a7c3548cb14555 (patch)
treebc363f5018267da5d16cebcb56895c42f78f96a6 /Source/cmOutputConverter.h
parentebf0a0827992be5cc03e530f9dc06bd1d05c1aa6 (diff)
downloadcmake-8ab3660a1ed0bf213d297e4dc8a7c3548cb14555.tar.gz
cmOutputConverter: Inline some functions and avoid string re-allocations
Use std::string (with correct initial size) in cmOutputConverter::Shell__GetArgument instead of ostringstream. This avoids several re-allocations of the string buffer. In addition, convert some of the private static members into inline free functions to avoid function calls.
Diffstat (limited to 'Source/cmOutputConverter.h')
-rw-r--r--Source/cmOutputConverter.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h
index ae15055ed1..ed7143c435 100644
--- a/Source/cmOutputConverter.h
+++ b/Source/cmOutputConverter.h
@@ -117,11 +117,7 @@ public:
private:
cmState* GetState() const;
- static int Shell__CharIsWhitespace(char c);
- static int Shell__CharNeedsQuotesOnUnix(char c);
- static int Shell__CharNeedsQuotesOnWindows(char c);
static int Shell__CharNeedsQuotes(char c, int flags);
- static int Shell__CharIsMakeVariableName(char c);
static const char* Shell__SkipMakeVariables(const char* c);
static int Shell__ArgumentNeedsQuotes(const char* in, int flags);
static std::string Shell__GetArgument(const char* in, int flags);