diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-11-21 13:50:32 -0500 |
---|---|---|
committer | dan sinclair <dsinclair@chromium.org> | 2016-11-21 18:51:10 +0000 |
commit | 85c8e7f788512ce5b5b43cd816e8091b57c3d5e7 (patch) | |
tree | e727d747684b9db2632ef250b55046cfce2b55a3 /xfa/fxfa/parser | |
parent | 7daa6fb286d1b5d65f99521f3314083e86d93e3f (diff) | |
download | pdfium-85c8e7f788512ce5b5b43cd816e8091b57c3d5e7.tar.xz |
Fixup lint flags.
The -build/include setting was masking out build/include_what_you_use. This CL
restores them, fixes any build errors, and adds NOLINT as needed. As well,
the runtime/explicit and runtime/printf flags are aslo enabled and NOLINT'd.
lint cleanups
Change-Id: Ib013b3eb29c8d0e48cad74c5df9028684130719f
Reviewed-on: https://pdfium-review.googlesource.com/2030
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r-- | xfa/fxfa/parser/cscript_hostpseudomodel.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_containerlayoutitem.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_contentlayoutitem.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_layoutpagemgr.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_layoutprocessor.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 1 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_nodelist.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_resolveprocessor.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_scriptcontext.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_widetextread.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_widetextread.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_xml_parser.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/xfa_locale.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/xfa_resolvenode_rs.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/xfa_utils.h | 2 |
15 files changed, 21 insertions, 8 deletions
diff --git a/xfa/fxfa/parser/cscript_hostpseudomodel.cpp b/xfa/fxfa/parser/cscript_hostpseudomodel.cpp index 6140ad37d8..7493570bc2 100644 --- a/xfa/fxfa/parser/cscript_hostpseudomodel.cpp +++ b/xfa/fxfa/parser/cscript_hostpseudomodel.cpp @@ -6,6 +6,8 @@ #include "xfa/fxfa/parser/cscript_hostpseudomodel.h" +#include <memory> + #include "fxjs/cfxjse_arguments.h" #include "xfa/fxfa/app/xfa_ffnotify.h" #include "xfa/fxfa/parser/cxfa_document.h" diff --git a/xfa/fxfa/parser/cxfa_containerlayoutitem.h b/xfa/fxfa/parser/cxfa_containerlayoutitem.h index 87fa360fe2..3c8a8afa22 100644 --- a/xfa/fxfa/parser/cxfa_containerlayoutitem.h +++ b/xfa/fxfa/parser/cxfa_containerlayoutitem.h @@ -11,7 +11,7 @@ class CXFA_ContainerLayoutItem : public CXFA_LayoutItem { public: - CXFA_ContainerLayoutItem(CXFA_Node* pNode); + explicit CXFA_ContainerLayoutItem(CXFA_Node* pNode); CXFA_LayoutProcessor* GetLayout() const; int32_t GetPageIndex() const; diff --git a/xfa/fxfa/parser/cxfa_contentlayoutitem.h b/xfa/fxfa/parser/cxfa_contentlayoutitem.h index f826f52e5b..9ac1dceb42 100644 --- a/xfa/fxfa/parser/cxfa_contentlayoutitem.h +++ b/xfa/fxfa/parser/cxfa_contentlayoutitem.h @@ -11,7 +11,7 @@ class CXFA_ContentLayoutItem : public CXFA_LayoutItem { public: - CXFA_ContentLayoutItem(CXFA_Node* pNode); + explicit CXFA_ContentLayoutItem(CXFA_Node* pNode); ~CXFA_ContentLayoutItem() override; CXFA_ContentLayoutItem* m_pPrev; diff --git a/xfa/fxfa/parser/cxfa_layoutpagemgr.h b/xfa/fxfa/parser/cxfa_layoutpagemgr.h index dcd798ea1a..3f0410f74c 100644 --- a/xfa/fxfa/parser/cxfa_layoutpagemgr.h +++ b/xfa/fxfa/parser/cxfa_layoutpagemgr.h @@ -14,7 +14,7 @@ class CXFA_LayoutItem; class CXFA_LayoutPageMgr { public: - CXFA_LayoutPageMgr(CXFA_LayoutProcessor* pLayoutProcessor); + explicit CXFA_LayoutPageMgr(CXFA_LayoutProcessor* pLayoutProcessor); ~CXFA_LayoutPageMgr(); bool InitLayoutPage(CXFA_Node* pFormNode); diff --git a/xfa/fxfa/parser/cxfa_layoutprocessor.h b/xfa/fxfa/parser/cxfa_layoutprocessor.h index d735b385bd..cf1b1e83b4 100644 --- a/xfa/fxfa/parser/cxfa_layoutprocessor.h +++ b/xfa/fxfa/parser/cxfa_layoutprocessor.h @@ -20,7 +20,7 @@ class IFX_Pause; class CXFA_LayoutProcessor { public: - CXFA_LayoutProcessor(CXFA_Document* pDocument); + explicit CXFA_LayoutProcessor(CXFA_Document* pDocument); ~CXFA_LayoutProcessor(); CXFA_Document* GetDocument() const; diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index 1d0f4333f5..18ea41419a 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -8,6 +8,7 @@ #include <map> #include <memory> +#include <utility> #include "core/fxcrt/fx_ext.h" #include "fxjs/cfxjse_value.h" diff --git a/xfa/fxfa/parser/cxfa_nodelist.cpp b/xfa/fxfa/parser/cxfa_nodelist.cpp index 9eb04c994f..cb09833d24 100644 --- a/xfa/fxfa/parser/cxfa_nodelist.cpp +++ b/xfa/fxfa/parser/cxfa_nodelist.cpp @@ -6,6 +6,8 @@ #include "xfa/fxfa/parser/xfa_object.h" +#include <memory> + #include "core/fxcrt/fx_ext.h" #include "xfa/fxfa/parser/cxfa_document.h" #include "xfa/fxfa/parser/cxfa_scriptcontext.h" diff --git a/xfa/fxfa/parser/cxfa_resolveprocessor.h b/xfa/fxfa/parser/cxfa_resolveprocessor.h index 630a54ea3c..2590021cdb 100644 --- a/xfa/fxfa/parser/cxfa_resolveprocessor.h +++ b/xfa/fxfa/parser/cxfa_resolveprocessor.h @@ -17,7 +17,7 @@ class CXFA_ScriptContext; class CXFA_ResolveNodesData { public: - CXFA_ResolveNodesData(CXFA_ScriptContext* pSC = nullptr); + explicit CXFA_ResolveNodesData(CXFA_ScriptContext* pSC = nullptr); ~CXFA_ResolveNodesData(); CXFA_ScriptContext* m_pSC; diff --git a/xfa/fxfa/parser/cxfa_scriptcontext.cpp b/xfa/fxfa/parser/cxfa_scriptcontext.cpp index 80395149a3..8cad0e08c4 100644 --- a/xfa/fxfa/parser/cxfa_scriptcontext.cpp +++ b/xfa/fxfa/parser/cxfa_scriptcontext.cpp @@ -6,6 +6,8 @@ #include "xfa/fxfa/parser/cxfa_scriptcontext.h" +#include <utility> + #include "core/fxcrt/fx_ext.h" #include "fxjs/cfxjse_arguments.h" #include "fxjs/cfxjse_class.h" diff --git a/xfa/fxfa/parser/cxfa_widetextread.cpp b/xfa/fxfa/parser/cxfa_widetextread.cpp index 35d4dc1270..be2de7c9e4 100644 --- a/xfa/fxfa/parser/cxfa_widetextread.cpp +++ b/xfa/fxfa/parser/cxfa_widetextread.cpp @@ -6,6 +6,8 @@ #include "xfa/fxfa/parser/cxfa_widetextread.h" +#include <algorithm> + #include "core/fxcrt/fx_ext.h" #include "xfa/fgas/crt/fgas_codepage.h" diff --git a/xfa/fxfa/parser/cxfa_widetextread.h b/xfa/fxfa/parser/cxfa_widetextread.h index e0f0eac358..3a39061079 100644 --- a/xfa/fxfa/parser/cxfa_widetextread.h +++ b/xfa/fxfa/parser/cxfa_widetextread.h @@ -11,7 +11,7 @@ class CXFA_WideTextRead : public IFX_Stream { public: - CXFA_WideTextRead(const CFX_WideString& wsBuffer); + explicit CXFA_WideTextRead(const CFX_WideString& wsBuffer); // IFX_Stream void Release() override; diff --git a/xfa/fxfa/parser/cxfa_xml_parser.h b/xfa/fxfa/parser/cxfa_xml_parser.h index 1fdf06b5a8..59def4be67 100644 --- a/xfa/fxfa/parser/cxfa_xml_parser.h +++ b/xfa/fxfa/parser/cxfa_xml_parser.h @@ -7,6 +7,8 @@ #ifndef XFA_FXFA_PARSER_CXFA_XML_PARSER_H_ #define XFA_FXFA_PARSER_CXFA_XML_PARSER_H_ +#include <memory> + #include "xfa/fde/xml/fde_xml_imp.h" class IFX_Stream; diff --git a/xfa/fxfa/parser/xfa_locale.h b/xfa/fxfa/parser/xfa_locale.h index 6d03843419..5326f513c1 100644 --- a/xfa/fxfa/parser/xfa_locale.h +++ b/xfa/fxfa/parser/xfa_locale.h @@ -56,7 +56,7 @@ class CXFA_XMLLocale : public IFX_Locale { class CXFA_NodeLocale : public IFX_Locale { public: - CXFA_NodeLocale(CXFA_Node* pLocale); + explicit CXFA_NodeLocale(CXFA_Node* pLocale); ~CXFA_NodeLocale() override; // IFX_Locale diff --git a/xfa/fxfa/parser/xfa_resolvenode_rs.h b/xfa/fxfa/parser/xfa_resolvenode_rs.h index 2e7e297aea..7ad218efe8 100644 --- a/xfa/fxfa/parser/xfa_resolvenode_rs.h +++ b/xfa/fxfa/parser/xfa_resolvenode_rs.h @@ -7,6 +7,8 @@ #ifndef XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_ #define XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_ +#include <memory> + #include "fxjs/cfxjse_value.h" #include "xfa/fxfa/fxfa.h" #include "xfa/fxfa/parser/cxfa_valuearray.h" diff --git a/xfa/fxfa/parser/xfa_utils.h b/xfa/fxfa/parser/xfa_utils.h index 9a84fd6f67..7981704973 100644 --- a/xfa/fxfa/parser/xfa_utils.h +++ b/xfa/fxfa/parser/xfa_utils.h @@ -26,7 +26,7 @@ bool XFA_FDEExtension_ResolveNamespaceQualifier( template <class NodeType, class TraverseStrategy> class CXFA_NodeIteratorTemplate { public: - CXFA_NodeIteratorTemplate(NodeType* pRootNode = nullptr) + explicit CXFA_NodeIteratorTemplate(NodeType* pRootNode = nullptr) : m_pRoot(pRootNode), m_NodeStack(100) { if (pRootNode) { m_NodeStack.Push(pRootNode); |