summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-06 12:54:07 +0000
committerAlp Toker <alp@nuanti.com>2014-01-06 12:54:07 +0000
commit6d35eab5a6f575f557c266892f6dedf951851828 (patch)
tree7294416d00202eca206751ed91a863c3475867ef /clang/lib/Parse
parent7649ebacd6f15c6f9226bc007d67839b1f5cc9d7 (diff)
downloadbcm5719-llvm-6d35eab5a6f575f557c266892f6dedf951851828.tar.gz
bcm5719-llvm-6d35eab5a6f575f557c266892f6dedf951851828.zip
Rename getTokenSimpleSpelling() to getPunctuatorSpelling()
That's what it does, what the documentation says it does and what callers expect it to do. llvm-svn: 198603
Diffstat (limited to 'clang/lib/Parse')
-rw-r--r--clang/lib/Parse/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 0caf152a069..27e16a7914d 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -164,7 +164,7 @@ bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID,
SourceLocation Loc = Tok.getLocation();
DiagnosticBuilder DB = Diag(Loc, DiagID);
DB << FixItHint::CreateReplacement(SourceRange(Loc),
- getTokenSimpleSpelling(ExpectedTok));
+ getPunctuatorSpelling(ExpectedTok));
if (DiagID == diag::err_expected)
DB << ExpectedTok;
else if (DiagID == diag::err_expected_after)
@@ -180,7 +180,7 @@ bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID,
SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation);
const char *Spelling = 0;
if (EndLoc.isValid())
- Spelling = tok::getTokenSimpleSpelling(ExpectedTok);
+ Spelling = tok::getPunctuatorSpelling(ExpectedTok);
DiagnosticBuilder DB =
Spelling
OpenPOWER on IntegriCloud