From 0e2f5728efdbb5eab36a68b5e2162799ea90a021 Mon Sep 17 00:00:00 2001 From: strongHunter Date: Sun, 2 Feb 2025 10:19:28 +0000 Subject: [PATCH] =?UTF-8?q?fix.=20Fixed=20warning=20=E2=80=98virtual=20boo?= =?UTF-8?q?l=20antlr4::tree::ParseTree::operator=3D=3D(const=20antlr4::tre?= =?UTF-8?q?e::ParseTree&)=20const=E2=80=99=20was=20hidden=20[-Woverloaded-?= =?UTF-8?q?virtual=3D]=20Full=20message:=20=09warning:=20=E2=80=98virtual?= =?UTF-8?q?=20bool=20antlr4::tree::ParseTree::operator=3D=3D(const=20antlr?= =?UTF-8?q?4::tree::ParseTree&)=20const=E2=80=99=20was=20hidden=20[-Woverl?= =?UTF-8?q?oaded-virtual=3D]=20=09=2049=20|=20=20=20=20=20virtual=20bool?= =?UTF-8?q?=20operator=20=3D=3D=20(const=20ParseTree=20&other)=20const;=20?= =?UTF-8?q?=09=20=20=20=20|=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20^~~~~~~~=20=09antlr4-cpp-runtime/runtime/src/RuleConte?= =?UTF-8?q?xt.h:132:10:=20note:=20=20=20by=20=E2=80=98bool=20antlr4::RuleC?= =?UTF-8?q?ontext::operator=3D=3D(const=20antlr4::RuleContext&)=E2=80=99?= =?UTF-8?q?=20=09132=20|=20=20=20=20=20bool=20operator=20=3D=3D=20(const?= =?UTF-8?q?=20RuleContext=20&other)=20{=20return=20this=20=3D=3D=20&other;?= =?UTF-8?q?=20}=20//=20Simple=20address=20comparison.=20=09=20=20=20=20|?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20^~~~~~~~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runtime/src/RuleContext.h | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/RuleContext.h b/runtime/src/RuleContext.h index 9ee0d2d..fd3670a 100755 --- a/runtime/src/RuleContext.h +++ b/runtime/src/RuleContext.h @@ -126,6 +126,7 @@ namespace antlr4 { // recog null unless ParserRuleContext, in which case we use subclass toString(...) std::string toString(Recognizer *recog, RuleContext *stop); + using ParseTree::operator==; virtual std::string toString(const std::vector &ruleNames, RuleContext *stop); bool operator == (const RuleContext &other) { return this == &other; } // Simple address comparison.