From 663e83c94663ef659fed40b560431a7f8d57addf Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Sun, 28 Jan 2024 21:19:37 +0000 Subject: [PATCH] [HIPIFY][fix] Fix for the warning `-Winconsistent-missing-override` + Fix for the warning: 'SourceRangeSkipped' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] --- src/HipifyAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HipifyAction.cpp b/src/HipifyAction.cpp index 220d7258..22565f03 100644 --- a/src/HipifyAction.cpp +++ b/src/HipifyAction.cpp @@ -2712,7 +2712,7 @@ class PPCallbackProxy : public clang::PPCallbacks { hipifyAction.Ifndef(Loc, MacroNameTok, MD); } - virtual void SourceRangeSkipped(clang::SourceRange Range, clang::SourceLocation EndifLoc) { + void SourceRangeSkipped(clang::SourceRange Range, clang::SourceLocation EndifLoc) override { hipifyAction.AddSkippedSourceRange(Range); } };