We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6d5c84 commit 387e0d6Copy full SHA for 387e0d6
lib/AST/ASTVerifier.cpp
@@ -2362,6 +2362,14 @@ class Verifier : public ASTWalker {
2362
}
2363
2364
2365
+ if (VD->isFinal() != VD->getAttrs().hasAttribute<FinalAttr>()) {
2366
+ Out << "decl should be final iff it has FinalAttr, but isFinal() = "
2367
+ << VD->isFinal() << " and hasAttribute<FinalAttr>() = "
2368
+ << VD->getAttrs().hasAttribute<FinalAttr>() << "\n";
2369
+ VD->dump(Out);
2370
+ abort();
2371
+ }
2372
+
2373
verifyCheckedBase(VD);
2374
2375
0 commit comments