diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-27 20:18:04 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-27 20:18:04 +0000 |
commit | 55865454c43fbc3b163cff166544ba0a060dcbc4 (patch) | |
tree | 66cefeed22a38d19db07e63b315c9f09832d11b2 /xfa/fxfa/fm2js | |
parent | 76525c4a9d2aa6d1f2685d8483e3d491fd361df1 (diff) | |
download | pdfium-55865454c43fbc3b163cff166544ba0a060dcbc4.tar.xz |
The final game: mark everything final.
Then revert the ones that break compilation.
Fix one IWYU noticed during presubmit.
Change-Id: I881a8a72818e55dbc4816247e35ff5e3015194e7
Reviewed-on: https://pdfium-review.googlesource.com/41470
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmexpression.h | 22 | ||||
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h | 50 |
2 files changed, 36 insertions, 36 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmexpression.h b/xfa/fxfa/fm2js/cxfa_fmexpression.h index bff62c185b..c20d76b075 100644 --- a/xfa/fxfa/fm2js/cxfa_fmexpression.h +++ b/xfa/fxfa/fm2js/cxfa_fmexpression.h @@ -23,7 +23,7 @@ class CXFA_FMExpression { CXFA_FMExpression(); }; -class CXFA_FMFunctionDefinition : public CXFA_FMExpression { +class CXFA_FMFunctionDefinition final : public CXFA_FMExpression { public: CXFA_FMFunctionDefinition( const WideStringView& wsName, @@ -51,7 +51,7 @@ class CXFA_FMAST { std::vector<std::unique_ptr<CXFA_FMExpression>> expressions_; }; -class CXFA_FMVarExpression : public CXFA_FMExpression { +class CXFA_FMVarExpression final : public CXFA_FMExpression { public: CXFA_FMVarExpression(const WideStringView& wsName, std::unique_ptr<CXFA_FMSimpleExpression> pInit); @@ -64,7 +64,7 @@ class CXFA_FMVarExpression : public CXFA_FMExpression { std::unique_ptr<CXFA_FMSimpleExpression> m_pInit; }; -class CXFA_FMExpExpression : public CXFA_FMExpression { +class CXFA_FMExpExpression final : public CXFA_FMExpression { public: explicit CXFA_FMExpExpression( std::unique_ptr<CXFA_FMSimpleExpression> pExpression); @@ -76,7 +76,7 @@ class CXFA_FMExpExpression : public CXFA_FMExpression { std::unique_ptr<CXFA_FMSimpleExpression> m_pExpression; }; -class CXFA_FMBlockExpression : public CXFA_FMExpression { +class CXFA_FMBlockExpression final : public CXFA_FMExpression { public: CXFA_FMBlockExpression( std::vector<std::unique_ptr<CXFA_FMExpression>>&& pExpressionList); @@ -88,7 +88,7 @@ class CXFA_FMBlockExpression : public CXFA_FMExpression { std::vector<std::unique_ptr<CXFA_FMExpression>> m_ExpressionList; }; -class CXFA_FMDoExpression : public CXFA_FMExpression { +class CXFA_FMDoExpression final : public CXFA_FMExpression { public: explicit CXFA_FMDoExpression(std::unique_ptr<CXFA_FMExpression> pList); ~CXFA_FMDoExpression() override; @@ -99,7 +99,7 @@ class CXFA_FMDoExpression : public CXFA_FMExpression { std::unique_ptr<CXFA_FMExpression> m_pList; }; -class CXFA_FMIfExpression : public CXFA_FMExpression { +class CXFA_FMIfExpression final : public CXFA_FMExpression { public: CXFA_FMIfExpression( std::unique_ptr<CXFA_FMSimpleExpression> pExpression, @@ -117,7 +117,7 @@ class CXFA_FMIfExpression : public CXFA_FMExpression { std::unique_ptr<CXFA_FMExpression> m_pElseExpression; }; -class CXFA_FMWhileExpression : public CXFA_FMExpression { +class CXFA_FMWhileExpression final : public CXFA_FMExpression { public: CXFA_FMWhileExpression(std::unique_ptr<CXFA_FMSimpleExpression> pCodition, std::unique_ptr<CXFA_FMExpression> pExpression); @@ -130,7 +130,7 @@ class CXFA_FMWhileExpression : public CXFA_FMExpression { std::unique_ptr<CXFA_FMExpression> m_pExpression; }; -class CXFA_FMBreakExpression : public CXFA_FMExpression { +class CXFA_FMBreakExpression final : public CXFA_FMExpression { public: CXFA_FMBreakExpression(); ~CXFA_FMBreakExpression() override; @@ -138,7 +138,7 @@ class CXFA_FMBreakExpression : public CXFA_FMExpression { bool ToJavaScript(CFX_WideTextBuf* js, ReturnType type) override; }; -class CXFA_FMContinueExpression : public CXFA_FMExpression { +class CXFA_FMContinueExpression final : public CXFA_FMExpression { public: CXFA_FMContinueExpression(); ~CXFA_FMContinueExpression() override; @@ -146,7 +146,7 @@ class CXFA_FMContinueExpression : public CXFA_FMExpression { bool ToJavaScript(CFX_WideTextBuf* js, ReturnType type) override; }; -class CXFA_FMForExpression : public CXFA_FMExpression { +class CXFA_FMForExpression final : public CXFA_FMExpression { public: CXFA_FMForExpression(const WideStringView& wsVariant, std::unique_ptr<CXFA_FMSimpleExpression> pAssignment, @@ -167,7 +167,7 @@ class CXFA_FMForExpression : public CXFA_FMExpression { std::unique_ptr<CXFA_FMExpression> m_pList; }; -class CXFA_FMForeachExpression : public CXFA_FMExpression { +class CXFA_FMForeachExpression final : public CXFA_FMExpression { public: // Takes ownership of |pAccessors|. CXFA_FMForeachExpression( diff --git a/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h b/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h index 0f3df31081..275d7d4fcb 100644 --- a/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h +++ b/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h @@ -36,7 +36,7 @@ class CXFA_FMSimpleExpression { const XFA_FM_TOKEN m_op; }; -class CXFA_FMNullExpression : public CXFA_FMSimpleExpression { +class CXFA_FMNullExpression final : public CXFA_FMSimpleExpression { public: CXFA_FMNullExpression(); ~CXFA_FMNullExpression() override {} @@ -44,7 +44,7 @@ class CXFA_FMNullExpression : public CXFA_FMSimpleExpression { bool ToJavaScript(CFX_WideTextBuf* js, ReturnType type) override; }; -class CXFA_FMNumberExpression : public CXFA_FMSimpleExpression { +class CXFA_FMNumberExpression final : public CXFA_FMSimpleExpression { public: explicit CXFA_FMNumberExpression(WideStringView wsNumber); ~CXFA_FMNumberExpression() override; @@ -55,7 +55,7 @@ class CXFA_FMNumberExpression : public CXFA_FMSimpleExpression { WideStringView m_wsNumber; }; -class CXFA_FMStringExpression : public CXFA_FMSimpleExpression { +class CXFA_FMStringExpression final : public CXFA_FMSimpleExpression { public: explicit CXFA_FMStringExpression(WideStringView wsString); ~CXFA_FMStringExpression() override; @@ -66,7 +66,7 @@ class CXFA_FMStringExpression : public CXFA_FMSimpleExpression { WideStringView m_wsString; }; -class CXFA_FMIdentifierExpression : public CXFA_FMSimpleExpression { +class CXFA_FMIdentifierExpression final : public CXFA_FMSimpleExpression { public: explicit CXFA_FMIdentifierExpression(WideStringView wsIdentifier); ~CXFA_FMIdentifierExpression() override; @@ -77,7 +77,7 @@ class CXFA_FMIdentifierExpression : public CXFA_FMSimpleExpression { WideStringView m_wsIdentifier; }; -class CXFA_FMAssignExpression : public CXFA_FMSimpleExpression { +class CXFA_FMAssignExpression final : public CXFA_FMSimpleExpression { public: CXFA_FMAssignExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -109,7 +109,7 @@ class CXFA_FMBinExpression : public CXFA_FMSimpleExpression { std::unique_ptr<CXFA_FMSimpleExpression> m_pExp2; }; -class CXFA_FMLogicalOrExpression : public CXFA_FMBinExpression { +class CXFA_FMLogicalOrExpression final : public CXFA_FMBinExpression { public: CXFA_FMLogicalOrExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -117,7 +117,7 @@ class CXFA_FMLogicalOrExpression : public CXFA_FMBinExpression { ~CXFA_FMLogicalOrExpression() override {} }; -class CXFA_FMLogicalAndExpression : public CXFA_FMBinExpression { +class CXFA_FMLogicalAndExpression final : public CXFA_FMBinExpression { public: CXFA_FMLogicalAndExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -125,7 +125,7 @@ class CXFA_FMLogicalAndExpression : public CXFA_FMBinExpression { ~CXFA_FMLogicalAndExpression() override {} }; -class CXFA_FMEqualExpression : public CXFA_FMBinExpression { +class CXFA_FMEqualExpression final : public CXFA_FMBinExpression { public: CXFA_FMEqualExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -133,7 +133,7 @@ class CXFA_FMEqualExpression : public CXFA_FMBinExpression { ~CXFA_FMEqualExpression() override {} }; -class CXFA_FMNotEqualExpression : public CXFA_FMBinExpression { +class CXFA_FMNotEqualExpression final : public CXFA_FMBinExpression { public: CXFA_FMNotEqualExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -141,7 +141,7 @@ class CXFA_FMNotEqualExpression : public CXFA_FMBinExpression { ~CXFA_FMNotEqualExpression() override {} }; -class CXFA_FMGtExpression : public CXFA_FMBinExpression { +class CXFA_FMGtExpression final : public CXFA_FMBinExpression { public: CXFA_FMGtExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -149,7 +149,7 @@ class CXFA_FMGtExpression : public CXFA_FMBinExpression { ~CXFA_FMGtExpression() override {} }; -class CXFA_FMGeExpression : public CXFA_FMBinExpression { +class CXFA_FMGeExpression final : public CXFA_FMBinExpression { public: CXFA_FMGeExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -157,7 +157,7 @@ class CXFA_FMGeExpression : public CXFA_FMBinExpression { ~CXFA_FMGeExpression() override {} }; -class CXFA_FMLtExpression : public CXFA_FMBinExpression { +class CXFA_FMLtExpression final : public CXFA_FMBinExpression { public: CXFA_FMLtExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -165,7 +165,7 @@ class CXFA_FMLtExpression : public CXFA_FMBinExpression { ~CXFA_FMLtExpression() override {} }; -class CXFA_FMLeExpression : public CXFA_FMBinExpression { +class CXFA_FMLeExpression final : public CXFA_FMBinExpression { public: CXFA_FMLeExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -173,7 +173,7 @@ class CXFA_FMLeExpression : public CXFA_FMBinExpression { ~CXFA_FMLeExpression() override {} }; -class CXFA_FMPlusExpression : public CXFA_FMBinExpression { +class CXFA_FMPlusExpression final : public CXFA_FMBinExpression { public: CXFA_FMPlusExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -181,7 +181,7 @@ class CXFA_FMPlusExpression : public CXFA_FMBinExpression { ~CXFA_FMPlusExpression() override {} }; -class CXFA_FMMinusExpression : public CXFA_FMBinExpression { +class CXFA_FMMinusExpression final : public CXFA_FMBinExpression { public: CXFA_FMMinusExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -189,7 +189,7 @@ class CXFA_FMMinusExpression : public CXFA_FMBinExpression { ~CXFA_FMMinusExpression() override {} }; -class CXFA_FMMulExpression : public CXFA_FMBinExpression { +class CXFA_FMMulExpression final : public CXFA_FMBinExpression { public: CXFA_FMMulExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -197,7 +197,7 @@ class CXFA_FMMulExpression : public CXFA_FMBinExpression { ~CXFA_FMMulExpression() override {} }; -class CXFA_FMDivExpression : public CXFA_FMBinExpression { +class CXFA_FMDivExpression final : public CXFA_FMBinExpression { public: CXFA_FMDivExpression(XFA_FM_TOKEN op, std::unique_ptr<CXFA_FMSimpleExpression> pExp1, @@ -221,25 +221,25 @@ class CXFA_FMUnaryExpression : public CXFA_FMSimpleExpression { std::unique_ptr<CXFA_FMSimpleExpression> m_pExp; }; -class CXFA_FMPosExpression : public CXFA_FMUnaryExpression { +class CXFA_FMPosExpression final : public CXFA_FMUnaryExpression { public: explicit CXFA_FMPosExpression(std::unique_ptr<CXFA_FMSimpleExpression> pExp); ~CXFA_FMPosExpression() override {} }; -class CXFA_FMNegExpression : public CXFA_FMUnaryExpression { +class CXFA_FMNegExpression final : public CXFA_FMUnaryExpression { public: explicit CXFA_FMNegExpression(std::unique_ptr<CXFA_FMSimpleExpression> pExp); ~CXFA_FMNegExpression() override {} }; -class CXFA_FMNotExpression : public CXFA_FMUnaryExpression { +class CXFA_FMNotExpression final : public CXFA_FMUnaryExpression { public: explicit CXFA_FMNotExpression(std::unique_ptr<CXFA_FMSimpleExpression> pExp); ~CXFA_FMNotExpression() override {} }; -class CXFA_FMCallExpression : public CXFA_FMSimpleExpression { +class CXFA_FMCallExpression final : public CXFA_FMSimpleExpression { public: CXFA_FMCallExpression( std::unique_ptr<CXFA_FMSimpleExpression> pExp, @@ -257,7 +257,7 @@ class CXFA_FMCallExpression : public CXFA_FMSimpleExpression { std::vector<std::unique_ptr<CXFA_FMSimpleExpression>> m_Arguments; }; -class CXFA_FMDotAccessorExpression : public CXFA_FMSimpleExpression { +class CXFA_FMDotAccessorExpression final : public CXFA_FMSimpleExpression { public: CXFA_FMDotAccessorExpression( std::unique_ptr<CXFA_FMSimpleExpression> pAccessor, @@ -274,7 +274,7 @@ class CXFA_FMDotAccessorExpression : public CXFA_FMSimpleExpression { std::unique_ptr<CXFA_FMSimpleExpression> m_pExp2; }; -class CXFA_FMIndexExpression : public CXFA_FMSimpleExpression { +class CXFA_FMIndexExpression final : public CXFA_FMSimpleExpression { public: CXFA_FMIndexExpression(XFA_FM_AccessorIndex accessorIndex, std::unique_ptr<CXFA_FMSimpleExpression> pIndexExp, @@ -289,7 +289,7 @@ class CXFA_FMIndexExpression : public CXFA_FMSimpleExpression { bool m_bIsStarIndex; }; -class CXFA_FMDotDotAccessorExpression : public CXFA_FMSimpleExpression { +class CXFA_FMDotDotAccessorExpression final : public CXFA_FMSimpleExpression { public: CXFA_FMDotDotAccessorExpression( std::unique_ptr<CXFA_FMSimpleExpression> pAccessor, @@ -306,7 +306,7 @@ class CXFA_FMDotDotAccessorExpression : public CXFA_FMSimpleExpression { std::unique_ptr<CXFA_FMSimpleExpression> m_pExp2; }; -class CXFA_FMMethodCallExpression : public CXFA_FMSimpleExpression { +class CXFA_FMMethodCallExpression final : public CXFA_FMSimpleExpression { public: CXFA_FMMethodCallExpression( std::unique_ptr<CXFA_FMSimpleExpression> pAccessorExp1, |