Method CXXMethodDecl::isStaticOverloadedOperator expects Operator field from the struct OperatorFunctionId, which is a member of the union in the class UnqualifiedId. If the kind of UnqualifiedId is not checked, there is no guarantee that the value that this method receives will be correct, because it can be the value of another union member and not OperatorFunctionId.
Details
Details
- Reviewers
petarj rnk - Commits
- rG52daa98b701a: Merging r233508: --------------------------------------------------------------…
rGe886cfb612c4: Add check for kind of UnqualifiedId in Declarator::isStaticMember()
rC233508: Add check for kind of UnqualifiedId in Declarator::isStaticMember()
rL233508: Add check for kind of UnqualifiedId in Declarator::isStaticMember()
Diff Detail
Diff Detail