@@ -57,7 +57,7 @@ using namespace clang;
57
57
bool Token::isObjCAtKeyword (tok::ObjCKeywordKind objcKey) const {
58
58
if (isAnnotation ())
59
59
return false ;
60
- if (IdentifierInfo *II = getIdentifierInfo ())
60
+ if (const IdentifierInfo *II = getIdentifierInfo ())
61
61
return II->getObjCKeywordID () == objcKey;
62
62
return false ;
63
63
}
@@ -66,7 +66,7 @@ bool Token::isObjCAtKeyword(tok::ObjCKeywordKind objcKey) const {
66
66
tok::ObjCKeywordKind Token::getObjCKeywordID () const {
67
67
if (isAnnotation ())
68
68
return tok::objc_not_keyword;
69
- IdentifierInfo *specId = getIdentifierInfo ();
69
+ const IdentifierInfo *specId = getIdentifierInfo ();
70
70
return specId ? specId->getObjCKeywordID () : tok::objc_not_keyword;
71
71
}
72
72
@@ -1893,7 +1893,7 @@ bool Lexer::LexIdentifierContinue(Token &Result, const char *CurPtr) {
1893
1893
1894
1894
// Fill in Result.IdentifierInfo and update the token kind,
1895
1895
// looking up the identifier in the identifier table.
1896
- IdentifierInfo *II = PP->LookUpIdentifierInfo (Result);
1896
+ const IdentifierInfo *II = PP->LookUpIdentifierInfo (Result);
1897
1897
// Note that we have to call PP->LookUpIdentifierInfo() even for code
1898
1898
// completion, it writes IdentifierInfo into Result, and callers rely on it.
1899
1899
@@ -4458,7 +4458,7 @@ bool Lexer::LexDependencyDirectiveToken(Token &Result) {
4458
4458
if (Result.is (tok::raw_identifier)) {
4459
4459
Result.setRawIdentifierData (TokPtr);
4460
4460
if (!isLexingRawMode ()) {
4461
- IdentifierInfo *II = PP->LookUpIdentifierInfo (Result);
4461
+ const IdentifierInfo *II = PP->LookUpIdentifierInfo (Result);
4462
4462
if (II->isHandleIdentifierCase ())
4463
4463
return PP->HandleIdentifier (Result);
4464
4464
}
0 commit comments