Commit 2229e37e88a8d497b4a04725a46d181326a3fa45
1 parent
2abb3055
Add a blank line after the first header included in each source
Showing
63 changed files
with
73 additions
and
0 deletions
README-maintainer
| ... | ... | @@ -86,6 +86,15 @@ GOOGLE OSS-FUZZ |
| 86 | 86 | |
| 87 | 87 | CODING RULES |
| 88 | 88 | |
| 89 | +* In a source file, include the header file that declares the source | |
| 90 | + class first followed by a blank line. If a config file is needed | |
| 91 | + first, put a blank line between that and the header followed by | |
| 92 | + another blank line. This assures that each header file is included | |
| 93 | + first at least once, thereby ensuring that it explicitly includes | |
| 94 | + all the headers it needs, which in turn alleviates lots of header | |
| 95 | + ordering problems. The blank line ensures that formatters don't | |
| 96 | + messt his up by resorting the headers. | |
| 97 | + | |
| 89 | 98 | * Avoid atoi. Use QUtil::string_to_int instead. It does |
| 90 | 99 | overflow/underflow checking. |
| 91 | 100 | ... | ... |
libqpdf/AES_PDF_native.cc
libqpdf/BitStream.cc
libqpdf/BufferInputSource.cc
libqpdf/ClosedFileInputSource.cc
libqpdf/ContentNormalizer.cc
libqpdf/CryptoRandomDataProvider.cc
libqpdf/FileInputSource.cc
libqpdf/InputSource.cc
libqpdf/JSON.cc
libqpdf/JSONHandler.cc
libqpdf/MD5.cc
libqpdf/MD5_native.cc
libqpdf/NNTree.cc
libqpdf/OffsetInputSource.cc
libqpdf/Pipeline.cc
libqpdf/Pl_AES_PDF.cc
libqpdf/Pl_ASCII85Decoder.cc
libqpdf/Pl_ASCIIHexDecoder.cc
libqpdf/Pl_Buffer.cc
libqpdf/Pl_Count.cc
libqpdf/Pl_Flate.cc
libqpdf/Pl_MD5.cc
libqpdf/Pl_PNGFilter.cc
libqpdf/Pl_QPDFTokenizer.cc
libqpdf/Pl_RC4.cc
libqpdf/Pl_SHA2.cc
libqpdf/Pl_StdioFile.cc
libqpdf/Pl_TIFFPredictor.cc
libqpdf/QPDF.cc
libqpdf/QPDFAnnotationObjectHelper.cc
libqpdf/QPDFArgParser.cc
libqpdf/QPDFCryptoProvider.cc
libqpdf/QPDFCrypto_gnutls.cc
libqpdf/QPDFCrypto_native.cc
libqpdf/QPDFEFStreamObjectHelper.cc
libqpdf/QPDFExc.cc
libqpdf/QPDFFileSpecObjectHelper.cc
libqpdf/QPDFFormFieldObjectHelper.cc
libqpdf/QPDFJob_argv.cc
| ... | ... | @@ -115,6 +115,7 @@ ArgParser::argVersion() |
| 115 | 115 | void |
| 116 | 116 | ArgParser::argCopyright() |
| 117 | 117 | { |
| 118 | + // clang-format off | |
| 118 | 119 | // Make sure the output looks right on an 80-column display. |
| 119 | 120 | // 1 2 3 4 5 6 7 8 |
| 120 | 121 | // 12345678901234567890123456789012345678901234567890123456789012345678901234567890 |
| ... | ... | @@ -153,6 +154,7 @@ ArgParser::argCopyright() |
| 153 | 154 | << std::endl |
| 154 | 155 | << "see the manual for additional information." |
| 155 | 156 | << std::endl; |
| 157 | + // clang-format on | |
| 156 | 158 | } |
| 157 | 159 | |
| 158 | 160 | void | ... | ... |
libqpdf/QPDFJob_config.cc
libqpdf/QPDFJob_json.cc
libqpdf/QPDFMatrix.cc
libqpdf/QPDFNameTreeObjectHelper.cc
libqpdf/QPDFNumberTreeObjectHelper.cc
libqpdf/QPDFObjGen.cc
libqpdf/QPDFOutlineDocumentHelper.cc
libqpdf/QPDFOutlineObjectHelper.cc
libqpdf/QPDFPageDocumentHelper.cc
libqpdf/QPDFPageLabelDocumentHelper.cc
libqpdf/QPDFPageObjectHelper.cc
libqpdf/QPDFSystemError.cc
libqpdf/QPDFWriter.cc
libqpdf/QPDFXRefEntry.cc
libqpdf/QPDF_Array.cc
libqpdf/QPDF_Reserved.cc
libqpdf/QUtil.cc
libqpdf/RC4.cc
libqpdf/RC4_native.cc
libqpdf/SF_FlateLzwDecode.cc
libqpdf/SHA2_native.cc
libqpdf/SparseOHArray.cc