From dd4f3ef4abbf9d77290285baae6ef99406498f19 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Tue, 28 Jul 2015 04:54:03 +0000 Subject: [PATCH] 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 --- lib/Rewrite/Rewriter.cpp | 4 +--- 1 file changed, 1 insertion(+), 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) { -- 2.40.0