-
Notifications
You must be signed in to change notification settings - Fork 14k
[clang] Refactor IdentifierInfo::ObjcOrBuiltinID
#71709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2823d38
4d76f2d
6811d50
44573e6
463cda7
9300723
b37577a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3597,8 +3597,13 @@ class ASTIdentifierTableTrait { | |
/// doesn't check whether the name has macros defined; use PublicMacroIterator | ||
/// to check that. | ||
bool isInterestingIdentifier(const IdentifierInfo *II, uint64_t MacroOffset) { | ||
if (MacroOffset || II->isPoisoned() || | ||
(!IsModule && II->getObjCOrBuiltinID()) || | ||
II->getObjCOrBuiltinID(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @Endilll, Does this call to getObjCOrBuiltinID do anything? Static verifiers report it 'useless' since it only returns a value and the value is not used. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for reporting this! |
||
bool IsInteresting = | ||
II->getInterestingIdentifierID() != | ||
tok::InterestingIdentifierKind::not_interesting || | ||
II->getBuiltinID() != Builtin::ID::NotBuiltin || | ||
II->getObjCKeywordID() != tok::ObjCKeywordKind::objc_not_keyword; | ||
if (MacroOffset || II->isPoisoned() || (!IsModule && IsInteresting) || | ||
II->hasRevertedTokenIDToIdentifier() || | ||
(NeedDecls && II->getFETokenInfo())) | ||
return true; | ||
|
Uh oh!
There was an error while loading. Please reload this page.