[Chapel Merge] Override virtual destructors, and use `= default`

Branch: refs/heads/master
Revision: ceb7600
Author: leekillough
Log Message:

Merge pull request #17159 from leekillough/override_dtors

Override virtual destructors, and use = default constructors and destructors where simple

[reviewed by @vasslitvinov]

Finish work started by @vasslitvinov in #17150

  1. Use C++11 override instead of virtual when overriding virtual destructors
  2. Use C++11 = default for trivial constructors and destructors with empty bodies, moving them from .cpp files to .h header files

Modified Files:
M compiler/AST/AstCount.cpp
M compiler/AST/AstLogger.cpp
M compiler/AST/AstToText.cpp
M compiler/AST/AstVisitor.cpp
M compiler/AST/AstVisitorTraverse.cpp
M compiler/AST/CForLoop.cpp
M compiler/AST/CallExpr.cpp
M compiler/AST/CatchStmt.cpp
M compiler/AST/CollapseBlocks.cpp
M compiler/AST/DecoratedClassType.cpp
M compiler/AST/DeferStmt.cpp
M compiler/AST/DoWhileStmt.cpp
M compiler/AST/ForLoop.cpp
M compiler/AST/LoopExpr.cpp
M compiler/AST/LoopStmt.cpp
M compiler/AST/ModuleSymbol.cpp
M compiler/AST/ParamForLoop.cpp
M compiler/AST/TransformLogicalShortCircuit.cpp
M compiler/AST/TryStmt.cpp
M compiler/AST/WhileDoStmt.cpp
M compiler/AST/WhileStmt.cpp
M compiler/AST/baseAST.cpp
M compiler/AST/expr.cpp
M compiler/AST/stmt.cpp
M compiler/AST/symbol.cpp
M compiler/AST/type.cpp
M compiler/include/AggregateType.h
M compiler/include/AstCount.h
M compiler/include/AstDump.h
M compiler/include/AstDumpToHtml.h
M compiler/include/AstDumpToNode.h
M compiler/include/AstLogger.h
M compiler/include/AstPrintDocs.h
M compiler/include/AstToText.h
M compiler/include/AstVisitor.h
M compiler/include/AstVisitorTraverse.h
M compiler/include/CForLoop.h
M compiler/include/CallExpr.h
M compiler/include/CatchStmt.h
M compiler/include/CollapseBlocks.h
M compiler/include/DecoratedClassType.h
M compiler/include/DeferStmt.h
M compiler/include/DoWhileStmt.h
M compiler/include/FnSymbol.h
M compiler/include/ForLoop.h
M compiler/include/LoopStmt.h
M compiler/include/ModuleSymbol.h
M compiler/include/ParamForLoop.h
M compiler/include/PartialCopyData.h
M compiler/include/TransformLogicalShortCircuit.h
M compiler/include/TryStmt.h
M compiler/include/WhileDoStmt.h
M compiler/include/WhileStmt.h
M compiler/include/baseAST.h
M compiler/include/expr.h
M compiler/include/stmt.h
M compiler/include/symbol.h
M compiler/include/timer.h
M compiler/include/type.h
M compiler/llvm/clangUtil.cpp
M compiler/passes/InitNormalize.cpp
M compiler/passes/initializerRules.cpp
M compiler/passes/normalize.cpp
M compiler/resolution/lowerForalls.cpp
M compiler/util/timer.cpp

Compare: Comparing 3913e78e911d...ceb7600b0258 · chapel-lang/chapel · GitHub