forked from OSchip/llvm-project
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:
parent
7554da2ca3
commit
70bd288534
|
@ -31,10 +31,9 @@ raw_ostream &RewriteBuffer::write(raw_ostream &os) const {
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
|
||||||
/// \brief Return true if this character is non-new-line whitespace:
|
/// \brief Return true if this character is non-new-line whitespace:
|
||||||
/// ' ', '\\t', '\\f', '\\v', '\\r'.
|
/// ' ', '\\t', '\\f', '\\v', '\\r'.
|
||||||
inline bool isWhitespaceExceptNL(unsigned char c) {
|
static inline bool isWhitespaceExceptNL(unsigned char c) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case ' ':
|
case ' ':
|
||||||
case '\t':
|
case '\t':
|
||||||
|
@ -46,7 +45,6 @@ inline bool isWhitespaceExceptNL(unsigned char c) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void RewriteBuffer::RemoveText(unsigned OrigOffset, unsigned Size,
|
void RewriteBuffer::RemoveText(unsigned OrigOffset, unsigned Size,
|
||||||
bool removeLineIfEmpty) {
|
bool removeLineIfEmpty) {
|
||||||
|
|
Loading…
Reference in New Issue