r243381 - Make local function isWhitespaceExceptNL static instead of in anonymous namespace
Yaron Keren
yaron.keren at gmail.com
Mon Jul 27 21:54:04 PDT 2015
Author: yrnkrn
Date: Mon Jul 27 23:54:03 2015
New Revision: 243381
URL: http://llvm.org/viewvc/llvm-project?rev=243381&view=rev
Log:
Make local function isWhitespaceExceptNL static instead of in anonymous namespace
per the coding standard. Thanks Craig Tooper for noticing this.
Modified:
cfe/trunk/lib/Rewrite/Rewriter.cpp
Modified: cfe/trunk/lib/Rewrite/Rewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/Rewriter.cpp?rev=243381&r1=243380&r2=243381&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/Rewriter.cpp (original)
+++ cfe/trunk/lib/Rewrite/Rewriter.cpp Mon Jul 27 23:54:03 2015
@@ -31,10 +31,9 @@ raw_ostream &RewriteBuffer::write(raw_os
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(unsigne
return false;
}
}
-}
void RewriteBuffer::RemoveText(unsigned OrigOffset, unsigned Size,
bool removeLineIfEmpty) {
More information about the cfe-commits
mailing list