Diagnose declspecs occuring after virt-specifier-seq and generate fixit hints
Summary: This fixes PR22075. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6828 llvm-svn: 233160
This commit is contained in:
@@ -1220,7 +1220,10 @@ void UnqualifiedId::setOperatorFunctionId(SourceLocation OperatorLoc,
|
||||
|
||||
bool VirtSpecifiers::SetSpecifier(Specifier VS, SourceLocation Loc,
|
||||
const char *&PrevSpec) {
|
||||
if (!FirstLocation.isValid())
|
||||
FirstLocation = Loc;
|
||||
LastLocation = Loc;
|
||||
LastSpecifier = VS;
|
||||
|
||||
if (Specifiers & VS) {
|
||||
PrevSpec = getSpecifierName(VS);
|
||||
|
||||
Reference in New Issue
Block a user