diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-07-28 04:54:03 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-07-28 04:54:03 +0000 |
commit | dd4f3ef4abbf9d77290285baae6ef99406498f19 (patch) | |
tree | 036c4830a9807330fc3f573369277d2ccfe3a826 /lib/Rewrite | |
parent | dfd8215ec42be3ba027001e40fc0c13939f1ff0f (diff) |
Make local function isWhitespaceExceptNL static instead of in anonymous namespace
per the coding standard. Thanks Craig Tooper for noticing this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite')
-rw-r--r-- | lib/Rewrite/Rewriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Rewrite/Rewriter.cpp b/lib/Rewrite/Rewriter.cpp index 04d79f0ce6..ae41decc64 100644 --- a/lib/Rewrite/Rewriter.cpp +++ b/lib/Rewrite/Rewriter.cpp @@ -31,10 +31,9 @@ raw_ostream &RewriteBuffer::write(raw_ostream &os) const { return os; } -namespace { /// \brief Return true if this character is non-new-line whitespace: /// ' ', '\\t', '\\f', '\\v', '\\r'. -inline bool isWhitespaceExceptNL(unsigned char c) { +static inline bool isWhitespaceExceptNL(unsigned char c) { switch (c) { case ' ': case '\t': @@ -46,7 +45,6 @@ inline bool isWhitespaceExceptNL(unsigned char c) { return false; } } -} void RewriteBuffer::RemoveText(unsigned OrigOffset, unsigned Size, bool removeLineIfEmpty) { |