Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Functions | |
_CheckApiTestFile (input_api, output_api) | |
CheckChangeOnUpload (input_api, output_api) | |
CheckChangeOnCommit (input_api, output_api) | |
_CheckNoBannedFunctions (input_api, output_api) | |
_CheckUnwantedDependencies (input_api, output_api) | |
_CheckIncludeOrderForScope (scope, input_api, file_path, changed_linenums) | |
_CheckIncludeOrderInFile (input_api, f, changed_linenums) | |
_CheckIncludeOrder (input_api, output_api) | |
_CheckLibcxxRevision (input_api, output_api) | |
_CheckTestDuplicates (input_api, output_api) | |
_CheckPngNames (input_api, output_api) | |
_CheckUselessForwardDeclarations (input_api, output_api) | |
ChecksCommon (input_api, output_api) | |
_CheckPublicHeaders (input_api, output_api) | |
Variables | |
bool | USE_PYTHON3 = True |
str | PRESUBMIT_VERSION = '2.0.0' |
list | LINT_FILTERS |
tuple | _INCLUDE_ORDER_WARNING |
_KNOWN_ROBOTS | |
str | _THIRD_PARTY = 'third_party/' |
tuple | _BANNED_CPP_FUNCTIONS |
Presubmit script for pdfium. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into depot_tools.
|
protected |
Checks that the public headers match the API tests.
Definition at line 14 of file PRESUBMIT.py.
Referenced by CheckChangeOnCommit(), and CheckChangeOnUpload().
|
protected |
Checks that the #include order is correct. 1. The corresponding header for source files. 2. C system files in alphabetical order 3. C++ system files in alphabetical order 4. Project's .h files in alphabetical order Each region separated by #if, #elif, #else, #endif, #define and #undef follows these rules separately.
Definition at line 351 of file PRESUBMIT.py.
References _CheckIncludeOrderInFile(), and set.
Referenced by ChecksCommon().
|
protected |
Checks that the lines in scope occur in the right order. 1. C system files in alphabetical order 2. C++ system files in alphabetical order 3. Project's .h files
Definition at line 220 of file PRESUBMIT.py.
Referenced by _CheckIncludeOrderInFile().
|
protected |
Checks the #include order for the given file f.
Definition at line 274 of file PRESUBMIT.py.
References _CheckIncludeOrderForScope().
Referenced by _CheckIncludeOrder().
|
protected |
Makes sure that libcxx_revision is set correctly.
Definition at line 375 of file PRESUBMIT.py.
Referenced by ChecksCommon().
|
protected |
Makes sure that banned functions are not used.
Definition at line 79 of file PRESUBMIT.py.
Referenced by ChecksCommon(), and PRESUBMIT_test.BannedTypeCheckTest.testBannedCppFunctions().
|
protected |
Checks that .png files have the right file name format, which must be in the form: NAME_expected(_gdi)?(_(agg|skia))?(_(linux|mac|win))?.pdf.\d+.png This must be the same format as the one in testing/corpus's PRESUBMIT.py.
Definition at line 427 of file PRESUBMIT.py.
Referenced by ChecksCommon(), and PRESUBMIT_test.CheckChangeOnUploadTest.testCheckPngNames().
|
protected |
Checks that the public headers match the API tests.
Definition at line 14 of file PRESUBMIT.py.
References _CheckPublicHeaders().
Referenced by _CheckPublicHeaders().
|
protected |
Checks that pixel and javascript tests don't contain duplicates. We use .in and .pdf files, having both can cause race conditions on the bots, which run the tests in parallel.
Definition at line 397 of file PRESUBMIT.py.
Referenced by ChecksCommon().
|
protected |
Runs checkdeps on #include statements added in this change. Breaking - rules is an error, breaking ! rules is a warning.
Definition at line 150 of file PRESUBMIT.py.
Referenced by ChecksCommon().
|
protected |
Checks that added or removed lines in non third party affected header files do not lead to new useless class or struct forward declaration.
Definition at line 449 of file PRESUBMIT.py.
References sum.
Referenced by ChecksCommon().
PRESUBMIT.CheckChangeOnCommit | ( | input_api, | |
output_api ) |
Definition at line 42 of file PRESUBMIT.py.
References _CheckApiTestFile().
PRESUBMIT.CheckChangeOnUpload | ( | input_api, | |
output_api ) |
Definition at line 36 of file PRESUBMIT.py.
References _CheckApiTestFile().
PRESUBMIT.ChecksCommon | ( | input_api, | |
output_api ) |
Definition at line 496 of file PRESUBMIT.py.
References _CheckIncludeOrder(), _CheckLibcxxRevision(), _CheckNoBannedFunctions(), _CheckPngNames(), _CheckTestDuplicates(), _CheckUnwantedDependencies(), and _CheckUselessForwardDeclarations().
|
protected |
Definition at line 52 of file PRESUBMIT.py.
|
protected |
Definition at line 35 of file PRESUBMIT.py.
|
protected |
Definition at line 42 of file PRESUBMIT.py.
|
protected |
Definition at line 45 of file PRESUBMIT.py.
list PRESUBMIT.LINT_FILTERS |
Definition at line 15 of file PRESUBMIT.py.
str PRESUBMIT.PRESUBMIT_VERSION = '2.0.0' |
Definition at line 11 of file PRESUBMIT.py.
bool PRESUBMIT.USE_PYTHON3 = True |
Definition at line 11 of file PRESUBMIT.py.