diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-07-28 04:54:03 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-07-28 04:54:03 +0000 |
commit | 70bd288534d90addd8a6d19e01a19c069b59df34 (patch) | |
tree | c9b218715b58d23bd1889d358b25bf0953d2baee | |
parent | 7554da2ca332297518e124e24f37a2aec2a3f27c (diff) | |
download | bcm5719-llvm-70bd288534d90addd8a6d19e01a19c069b59df34.tar.gz bcm5719-llvm-70bd288534d90addd8a6d19e01a19c069b59df34.zip |
Make local function isWhitespaceExceptNL static instead of in anonymous namespace
per the coding standard. Thanks Craig Tooper for noticing this.
llvm-svn: 243381
-rw-r--r-- | clang/lib/Rewrite/Rewriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Rewrite/Rewriter.cpp b/clang/lib/Rewrite/Rewriter.cpp index 04d79f0ce6a..ae41decc64a 100644 --- a/clang/lib/Rewrite/Rewriter.cpp +++ b/clang/lib/Rewrite/Rewriter.cpp @@ -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) { |