Skip to content

Commit 70bd288

Browse files
committed
Make local function isWhitespaceExceptNL static instead of in anonymous namespace
per the coding standard. Thanks Craig Tooper for noticing this. llvm-svn: 243381
1 parent 7554da2 commit 70bd288

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Rewrite/Rewriter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ raw_ostream &RewriteBuffer::write(raw_ostream &os) const {
3131
return os;
3232
}
3333

34-
namespace {
3534
/// \brief Return true if this character is non-new-line whitespace:
3635
/// ' ', '\\t', '\\f', '\\v', '\\r'.
37-
inline bool isWhitespaceExceptNL(unsigned char c) {
36+
static inline bool isWhitespaceExceptNL(unsigned char c) {
3837
switch (c) {
3938
case ' ':
4039
case '\t':
@@ -46,7 +45,6 @@ inline bool isWhitespaceExceptNL(unsigned char c) {
4645
return false;
4746
}
4847
}
49-
}
5048

5149
void RewriteBuffer::RemoveText(unsigned OrigOffset, unsigned Size,
5250
bool removeLineIfEmpty) {

0 commit comments

Comments
 (0)