summaryrefslogtreecommitdiffstats
path: root/Source/cmOutputConverter.h
diff options
context:
space:
mode:
authorFrank Winklmeier <frank.winklmeier@cern.ch>2018-02-22 15:05:40 (GMT)
committerFrank Winklmeier <frank.winklmeier@cern.ch>2018-02-23 16:23:10 (GMT)
commit8ab3660a1ed0bf213d297e4dc8a7c3548cb14555 (patch)
treebc363f5018267da5d16cebcb56895c42f78f96a6 /Source/cmOutputConverter.h
parentebf0a0827992be5cc03e530f9dc06bd1d05c1aa6 (diff)
downloadCMake-8ab3660a1ed0bf213d297e4dc8a7c3548cb14555.zip
CMake-8ab3660a1ed0bf213d297e4dc8a7c3548cb14555.tar.gz
CMake-8ab3660a1ed0bf213d297e4dc8a7c3548cb14555.tar.bz2
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 ae15055..ed7143c 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);