From bd93df937a6441db4aff67191ca0bb486554c34b Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Tue, 17 May 2022 10:55:27 -0500 Subject: [Polly] Mark classes as final by default. NFC. This make is obivious that a class was not intended to be derived from. NPM analysis pass can unfortunately not marked as final because they are derived from a llvm::Checker template internally by the NPM. Also normalize the use of classes/structs * NPM passes are structs * Legacy passes are classes * structs that have methods and are not a visitor pattern are classes * structs have public inheritance by default, remove "public" keyword * Use typedef'ed type instead of inline forward declaration --- polly/lib/CodeGen/CodeGeneration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polly/lib/CodeGen/CodeGeneration.cpp') diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 31143eae7526..97d6737cc9c7 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -303,7 +303,7 @@ static bool generateCode(Scop &S, IslAstInfo &AI, LoopInfo &LI, namespace { -class CodeGeneration : public ScopPass { +class CodeGeneration final : public ScopPass { public: static char ID; -- cgit v1.2.3