Skip to content

Commit 7cf3994

Browse files
committed
Change const char * to StringRef
1 parent 9e16e89 commit 7cf3994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Format/Format.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ namespace {
22162216

22172217
void replaceToken(const FormatToken &Token, FormatToken *Next,
22182218
const SourceManager &SourceMgr, tooling::Replacements &Result,
2219-
const char *Text = "") {
2219+
StringRef Text = "") {
22202220
const auto &Tok = Token.Tok;
22212221
SourceLocation Start;
22222222
if (Next && Next->NewlinesBefore == 0 && Next->isNot(tok::eof)) {

0 commit comments

Comments
 (0)