]> granicus.if.org Git - clang/commitdiff
Make local function isWhitespaceExceptNL static instead of in anonymous namespace
authorYaron Keren <yaron.keren@gmail.com>
Tue, 28 Jul 2015 04:54:03 +0000 (04:54 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 28 Jul 2015 04:54:03 +0000 (04:54 +0000)
per the coding standard. Thanks Craig Tooper for noticing this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243381 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/Rewriter.cpp

index 04d79f0ce6a143249ed86f0b84b0c7074504b779..ae41decc64a36c0b9150a71b06efc535467f6f4e 100644 (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) {