Make local function isWhitespaceExceptNL static instead of in anonymous namespace

per the coding standard. Thanks Craig Tooper for noticing this.

llvm-svn: 243381
This commit is contained in:
Yaron Keren 2015-07-28 04:54:03 +00:00
parent 7554da2ca3
commit 70bd288534
1 changed files with 1 additions and 3 deletions

View File

@ -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) {