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 /fpdfsdk/javascript | |
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 'fpdfsdk/javascript')
-rw-r--r-- | fpdfsdk/javascript/JS_EventHandler.h | 2 | ||||
-rw-r--r-- | fpdfsdk/javascript/JS_GlobalData.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/javascript/JS_Runtime_Stub.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/javascript/app.cpp | 1 | ||||
-rw-r--r-- | fpdfsdk/javascript/app.h | 6 | ||||
-rw-r--r-- | fpdfsdk/javascript/color.h | 4 | ||||
-rw-r--r-- | fpdfsdk/javascript/console.h | 4 | ||||
-rw-r--r-- | fpdfsdk/javascript/event.h | 4 | ||||
-rw-r--r-- | fpdfsdk/javascript/global.h | 2 | ||||
-rw-r--r-- | fpdfsdk/javascript/report.h | 4 | ||||
-rw-r--r-- | fpdfsdk/javascript/util.h | 4 |
11 files changed, 19 insertions, 16 deletions
diff --git a/fpdfsdk/javascript/JS_EventHandler.h b/fpdfsdk/javascript/JS_EventHandler.h index fb0e637f5f..8cfcfa7eb7 100644 --- a/fpdfsdk/javascript/JS_EventHandler.h +++ b/fpdfsdk/javascript/JS_EventHandler.h @@ -60,7 +60,7 @@ enum JS_EVENT_T { class CJS_EventHandler { public: - CJS_EventHandler(CJS_Context* pContext); + explicit CJS_EventHandler(CJS_Context* pContext); virtual ~CJS_EventHandler(); void OnApp_Init(); diff --git a/fpdfsdk/javascript/JS_GlobalData.cpp b/fpdfsdk/javascript/JS_GlobalData.cpp index 580cb466e6..68d929fb3a 100644 --- a/fpdfsdk/javascript/JS_GlobalData.cpp +++ b/fpdfsdk/javascript/JS_GlobalData.cpp @@ -6,6 +6,8 @@ #include "fpdfsdk/javascript/JS_GlobalData.h" +#include <utility> + #include "core/fdrm/crypto/fx_crypt.h" #include "third_party/base/stl_util.h" diff --git a/fpdfsdk/javascript/JS_Runtime_Stub.cpp b/fpdfsdk/javascript/JS_Runtime_Stub.cpp index 1daee4d734..96148d83a0 100644 --- a/fpdfsdk/javascript/JS_Runtime_Stub.cpp +++ b/fpdfsdk/javascript/JS_Runtime_Stub.cpp @@ -120,7 +120,7 @@ class CJS_ContextStub final : public IJS_Context { class CJS_RuntimeStub final : public IJS_Runtime { public: - CJS_RuntimeStub(CPDFSDK_FormFillEnvironment* pFormFillEnv) + explicit CJS_RuntimeStub(CPDFSDK_FormFillEnvironment* pFormFillEnv) : m_pFormFillEnv(pFormFillEnv) {} ~CJS_RuntimeStub() override {} diff --git a/fpdfsdk/javascript/app.cpp b/fpdfsdk/javascript/app.cpp index 2b40de0423..80c952d6ca 100644 --- a/fpdfsdk/javascript/app.cpp +++ b/fpdfsdk/javascript/app.cpp @@ -6,6 +6,7 @@ #include "fpdfsdk/javascript/app.h" +#include <map> #include <memory> #include <vector> diff --git a/fpdfsdk/javascript/app.h b/fpdfsdk/javascript/app.h index 32e2aaf28c..e8c72417bb 100644 --- a/fpdfsdk/javascript/app.h +++ b/fpdfsdk/javascript/app.h @@ -18,7 +18,7 @@ class GlobalTimer; class TimerObj : public CJS_EmbedObj { public: - TimerObj(CJS_Object* pJSObject); + explicit TimerObj(CJS_Object* pJSObject); ~TimerObj() override; void SetTimer(GlobalTimer* pTimer); @@ -30,7 +30,7 @@ class TimerObj : public CJS_EmbedObj { class CJS_TimerObj : public CJS_Object { public: - CJS_TimerObj(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} + explicit CJS_TimerObj(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} ~CJS_TimerObj() override {} DECLARE_JS_CLASS(); @@ -38,7 +38,7 @@ class CJS_TimerObj : public CJS_Object { class app : public CJS_EmbedObj { public: - app(CJS_Object* pJSObject); + explicit app(CJS_Object* pJSObject); ~app() override; bool activeDocs(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); diff --git a/fpdfsdk/javascript/color.h b/fpdfsdk/javascript/color.h index ab56cac0b6..9ea4d63355 100644 --- a/fpdfsdk/javascript/color.h +++ b/fpdfsdk/javascript/color.h @@ -14,7 +14,7 @@ class color : public CJS_EmbedObj { public: - color(CJS_Object* pJSObject); + explicit color(CJS_Object* pJSObject); ~color() override; bool black(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); @@ -63,7 +63,7 @@ class color : public CJS_EmbedObj { class CJS_Color : public CJS_Object { public: - CJS_Color(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} + explicit CJS_Color(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} ~CJS_Color() override {} DECLARE_JS_CLASS(); diff --git a/fpdfsdk/javascript/console.h b/fpdfsdk/javascript/console.h index 4f18980206..069a81d029 100644 --- a/fpdfsdk/javascript/console.h +++ b/fpdfsdk/javascript/console.h @@ -13,7 +13,7 @@ class console : public CJS_EmbedObj { public: - console(CJS_Object* pJSObject); + explicit console(CJS_Object* pJSObject); ~console() override; public: @@ -37,7 +37,7 @@ class console : public CJS_EmbedObj { class CJS_Console : public CJS_Object { public: - CJS_Console(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} + explicit CJS_Console(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} ~CJS_Console() override {} DECLARE_JS_CLASS(); diff --git a/fpdfsdk/javascript/event.h b/fpdfsdk/javascript/event.h index d70b57801e..67194944d0 100644 --- a/fpdfsdk/javascript/event.h +++ b/fpdfsdk/javascript/event.h @@ -11,7 +11,7 @@ class event : public CJS_EmbedObj { public: - event(CJS_Object* pJSObject); + explicit event(CJS_Object* pJSObject); ~event() override; public: @@ -39,7 +39,7 @@ class event : public CJS_EmbedObj { class CJS_Event : public CJS_Object { public: - CJS_Event(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} + explicit CJS_Event(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} ~CJS_Event() override {} DECLARE_JS_CLASS(); diff --git a/fpdfsdk/javascript/global.h b/fpdfsdk/javascript/global.h index c0eb4447f4..9a6568bc27 100644 --- a/fpdfsdk/javascript/global.h +++ b/fpdfsdk/javascript/global.h @@ -32,7 +32,7 @@ struct JSGlobalData { class JSGlobalAlternate : public CJS_EmbedObj { public: - JSGlobalAlternate(CJS_Object* pJSObject); + explicit JSGlobalAlternate(CJS_Object* pJSObject); ~JSGlobalAlternate() override; bool setPersistent(IJS_Context* cc, diff --git a/fpdfsdk/javascript/report.h b/fpdfsdk/javascript/report.h index 0773472a94..fef236943d 100644 --- a/fpdfsdk/javascript/report.h +++ b/fpdfsdk/javascript/report.h @@ -13,7 +13,7 @@ class Report : public CJS_EmbedObj { public: - Report(CJS_Object* pJSObject); + explicit Report(CJS_Object* pJSObject); ~Report() override; public: @@ -29,7 +29,7 @@ class Report : public CJS_EmbedObj { class CJS_Report : public CJS_Object { public: - CJS_Report(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} + explicit CJS_Report(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} ~CJS_Report() override {} DECLARE_JS_CLASS(); diff --git a/fpdfsdk/javascript/util.h b/fpdfsdk/javascript/util.h index efcf0c8f89..80763d1e27 100644 --- a/fpdfsdk/javascript/util.h +++ b/fpdfsdk/javascript/util.h @@ -14,7 +14,7 @@ class util : public CJS_EmbedObj { public: - util(CJS_Object* pJSObject); + explicit util(CJS_Object* pJSObject); ~util() override; bool printd(IJS_Context* cc, @@ -44,7 +44,7 @@ class util : public CJS_EmbedObj { class CJS_Util : public CJS_Object { public: - CJS_Util(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} + explicit CJS_Util(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} ~CJS_Util() override {} DECLARE_JS_CLASS(); |