From 85c8e7f788512ce5b5b43cd816e8091b57c3d5e7 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 21 Nov 2016 13:50:32 -0500 Subject: 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 --- public/fpdf_dataavail.h | 1 + public/fpdf_doc.h | 1 + public/fpdf_edit.h | 1 + public/fpdf_ext.h | 1 + public/fpdf_flatten.h | 1 + public/fpdf_formfill.h | 1 + public/fpdf_fwlevent.h | 1 + public/fpdf_ppo.h | 1 + public/fpdf_progressive.h | 1 + public/fpdf_save.h | 1 + public/fpdf_searchex.h | 1 + public/fpdf_sysfontinfo.h | 1 + public/fpdf_text.h | 1 + public/fpdf_transformpage.h | 1 + 14 files changed, 14 insertions(+) (limited to 'public') diff --git a/public/fpdf_dataavail.h b/public/fpdf_dataavail.h index 5599171619..2413e2be7a 100644 --- a/public/fpdf_dataavail.h +++ b/public/fpdf_dataavail.h @@ -9,6 +9,7 @@ #include +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #define PDF_LINEARIZATION_UNKNOWN -1 diff --git a/public/fpdf_doc.h b/public/fpdf_doc.h index 206dc37a27..9d2229c0c1 100644 --- a/public/fpdf_doc.h +++ b/public/fpdf_doc.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_DOC_H_ #define PUBLIC_FPDF_DOC_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #ifdef __cplusplus diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index 47fdf9e76e..dabdbedd48 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -9,6 +9,7 @@ #include +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #define FPDF_ARGB(a, r, g, b) \ diff --git a/public/fpdf_ext.h b/public/fpdf_ext.h index 2f7d7ddf64..3465878990 100644 --- a/public/fpdf_ext.h +++ b/public/fpdf_ext.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_EXT_H_ #define PUBLIC_FPDF_EXT_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #ifdef __cplusplus diff --git a/public/fpdf_flatten.h b/public/fpdf_flatten.h index 8d641809fe..c1e354e906 100644 --- a/public/fpdf_flatten.h +++ b/public/fpdf_flatten.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_FLATTEN_H_ #define PUBLIC_FPDF_FLATTEN_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" // Flatten operation failed. diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index e11f85c89f..ada87d3158 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_FORMFILL_H_ #define PUBLIC_FPDF_FORMFILL_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" typedef void* FPDF_FORMHANDLE; diff --git a/public/fpdf_fwlevent.h b/public/fpdf_fwlevent.h index 8d2f1a4d76..591484a5d0 100644 --- a/public/fpdf_fwlevent.h +++ b/public/fpdf_fwlevent.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_FWLEVENT_H_ #define PUBLIC_FPDF_FWLEVENT_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #ifdef __cplusplus diff --git a/public/fpdf_ppo.h b/public/fpdf_ppo.h index 532494e7fa..d9c83002b5 100644 --- a/public/fpdf_ppo.h +++ b/public/fpdf_ppo.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_PPO_H_ #define PUBLIC_FPDF_PPO_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #ifdef __cplusplus diff --git a/public/fpdf_progressive.h b/public/fpdf_progressive.h index ffc812df77..0c3d501317 100644 --- a/public/fpdf_progressive.h +++ b/public/fpdf_progressive.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_PROGRESSIVE_H_ #define PUBLIC_FPDF_PROGRESSIVE_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" // Flags for progressive process status. diff --git a/public/fpdf_save.h b/public/fpdf_save.h index 44520a5baf..c34e2bc6c7 100644 --- a/public/fpdf_save.h +++ b/public/fpdf_save.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_SAVE_H_ #define PUBLIC_FPDF_SAVE_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #ifdef __cplusplus diff --git a/public/fpdf_searchex.h b/public/fpdf_searchex.h index 0d90bdddb9..7c1b31848e 100644 --- a/public/fpdf_searchex.h +++ b/public/fpdf_searchex.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_SEARCHEX_H_ #define PUBLIC_FPDF_SEARCHEX_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #ifdef __cplusplus diff --git a/public/fpdf_sysfontinfo.h b/public/fpdf_sysfontinfo.h index d75aa19629..a0edffffa2 100644 --- a/public/fpdf_sysfontinfo.h +++ b/public/fpdf_sysfontinfo.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_SYSFONTINFO_H_ #define PUBLIC_FPDF_SYSFONTINFO_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" /* Character sets for the font */ diff --git a/public/fpdf_text.h b/public/fpdf_text.h index 2bf574b12f..5c241527eb 100644 --- a/public/fpdf_text.h +++ b/public/fpdf_text.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_TEXT_H_ #define PUBLIC_FPDF_TEXT_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" // Exported Functions diff --git a/public/fpdf_transformpage.h b/public/fpdf_transformpage.h index 569df2a7e0..66271fcda8 100644 --- a/public/fpdf_transformpage.h +++ b/public/fpdf_transformpage.h @@ -7,6 +7,7 @@ #ifndef PUBLIC_FPDF_TRANSFORMPAGE_H_ #define PUBLIC_FPDF_TRANSFORMPAGE_H_ +// NOLINTNEXTLINE(build/include) #include "fpdfview.h" #ifdef __cplusplus -- cgit v1.2.3