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;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue