mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
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
Block a user