diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:55:52 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:55:52 +0000 |
| commit | bf3e32705a0985dd41121a0486a2870200cbaaee (patch) | |
| tree | 072a15f86aed310fc71bf1f7a3e3459fcfea9073 /clang/lib/AST | |
| parent | 8c2a2a0f827eb1adfa84d33d324096f86192d71c (diff) | |
| download | bcm5719-llvm-bf3e32705a0985dd41121a0486a2870200cbaaee.tar.gz bcm5719-llvm-bf3e32705a0985dd41121a0486a2870200cbaaee.zip | |
Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already.
llvm-svn: 216825
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/CommentLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/CommentLexer.cpp b/clang/lib/AST/CommentLexer.cpp index 792a8320449..06a08bdad45 100644 --- a/clang/lib/AST/CommentLexer.cpp +++ b/clang/lib/AST/CommentLexer.cpp @@ -362,7 +362,7 @@ void Lexer::lexCommentText(Token &T) { } } - const StringRef CommandName(BufferPtr + 1, Length); + StringRef CommandName(BufferPtr + 1, Length); const CommandInfo *Info = Traits.getCommandInfoOrNULL(CommandName); if (!Info) { @@ -531,7 +531,7 @@ void Lexer::lexVerbatimLineText(Token &T) { // Extract current line. const char *Newline = findNewline(BufferPtr, CommentEnd); - const StringRef Text(BufferPtr, Newline - BufferPtr); + StringRef Text(BufferPtr, Newline - BufferPtr); formTokenWithChars(T, Newline, tok::verbatim_line_text); T.setVerbatimLineText(Text); |

