From 70bd288534d90addd8a6d19e01a19c069b59df34 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. llvm-svn: 243381 --- clang/lib/Rewrite/Rewriter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clang/lib/Rewrite/Rewriter.cpp b/clang/lib/Rewrite/Rewriter.cpp index 04d79f0ce6a1..ae41decc64a3 100644 --- a/clang/lib/Rewrite/Rewriter.cpp +++ b/clang/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) {