Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JoseExposito/touchegg
/ functions
Functions
427 in github.com/JoseExposito/touchegg
⨍
Functions
427
◇
Types & classes
107
↓ 1 callers
Function
CheckCheck
Checks the use of CHECK and EXPECT macros. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
cmake/cpplint.py:4659
↓ 1 callers
Function
CheckCommaSpacing
Checks for horizontal spacing near commas and semicolons. Args: filename: The name of the current file. clean_lines: A CleansedLines instan
cmake/cpplint.py:3983
↓ 1 callers
Function
CheckComment
Checks for common mistakes in comments. Args: line: The line in question. filename: The name of the current file. linenum: The number o
cmake/cpplint.py:3647
↓ 1 callers
Method
CheckCompletedBlocks
Checks that all classes and namespaces have been completely parsed. Call this when all lines in a file have been processed. Args: filen
cmake/cpplint.py:3283
↓ 1 callers
Function
CheckEmptyBlockBody
Look for empty loop/conditional body with only a single semicolon. Args: filename: The name of the current file. clean_lines: A CleansedLin
cmake/cpplint.py:4532
↓ 1 callers
Method
CheckEnd
Run checks that applies to text after the closing brace. This is mostly used for checking end of namespace comments. Args: filename: T
cmake/cpplint.py:2755
↓ 1 callers
Function
CheckForBadCharacters
Logs an error for each line containing bad characters. Two kinds of bad characters: 1. Unicode replacement characters: These indicate that eithe
cmake/cpplint.py:2533
↓ 1 callers
Function
CheckForCopyright
Logs an error if no Copyright message appears at the top of the file.
cmake/cpplint.py:2267
↓ 1 callers
Function
CheckForFunctionLengths
Reports for long function bodies. For an overview why this is done, see: https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Write_Sh
cmake/cpplint.py:3576
↓ 1 callers
Function
CheckForHeaderGuard
Checks that the file contains a header guard. Logs an error if no #ifndef header guard is present. For other headers, checks that the full pathn
cmake/cpplint.py:2397
↓ 1 callers
Function
CheckForIncludeWhatYouUse
Reports for missing stl includes. This function will output warnings to make sure you are including the headers necessary for the stl containers
cmake/cpplint.py:6091
↓ 1 callers
Function
CheckForMultilineCommentsAndStrings
Logs an error if we see /* ... */ or "..." that extend past one line. /* ... */ comments are legit inside macros, for one line. Otherwise, we pre
cmake/cpplint.py:2576
↓ 1 callers
Function
CheckForNamespaceIndentation
(filename, nesting_state, clean_lines, line, error)
cmake/cpplint.py:3562
↓ 1 callers
Function
CheckForNewlineAtEOF
Logs an error if there is no newline char at the end of the file. Args: filename: The name of the current file. lines: An array of strings,
cmake/cpplint.py:2558
↓ 1 callers
Function
CheckForNonConstReference
Check for non-const references. Separate from CheckLanguage since it scans backwards from current line, instead of scanning forward. Args:
cmake/cpplint.py:5591
↓ 1 callers
Function
CheckForNonStandardConstructs
r"""Logs an error if we see certain non-ANSI constructs ignored by gcc-2. Complain about several constructs which gcc-2 accepts, but which are no
cmake/cpplint.py:3305
↓ 1 callers
Function
CheckGlobalStatic
Check for unsafe global or static objects. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
cmake/cpplint.py:5421
↓ 1 callers
Function
CheckHeaderFileIncluded
Logs an error if a source file does not include its header.
cmake/cpplint.py:2500
↓ 1 callers
Function
CheckIncludeLine
Check rules that are applicable to #include lines. Strings on #include lines are NOT removed from elided line, to make certain tasks easier. Howe
cmake/cpplint.py:5082
↓ 1 callers
Function
CheckInvalidIncrement
Checks for invalid increment *count++. For example following function: void increment_counter(int* count) { *count++; } is invalid, becau
cmake/cpplint.py:2694
↓ 1 callers
Function
CheckItemIndentationInNamespace
(filename, raw_lines_no_comments, linenum, error)
cmake/cpplint.py:6365
↓ 1 callers
Function
CheckLanguage
Checks rules from the 'C++ language rules' section of cppguide.html. Some of these rules are hard to test (function overloading, using uint32 ina
cmake/cpplint.py:5260
↓ 1 callers
Function
CheckMakePairUsesDeduction
Check that make_pair's template arguments are deduced. G++ 4.6 in C++11 mode fails badly if make_pair's template arguments are specified explicit
cmake/cpplint.py:6195
↓ 1 callers
Method
CheckNextIncludeOrder
Returns a non-empty error message if the next header is out of order. This function also updates the internal state to be ready to check the
cmake/cpplint.py:1218
↓ 1 callers
Function
CheckOperatorSpacing
Checks for horizontal spacing around operators. Args: filename: The name of the current file. clean_lines: A CleansedLines instance contain
cmake/cpplint.py:3830
↓ 1 callers
Function
CheckParenthesisSpacing
Checks for horizontal spacing around parentheses. Args: filename: The name of the current file. clean_lines: A CleansedLines instance conta
cmake/cpplint.py:3945
↓ 1 callers
Function
CheckPosixThreading
Checks for calls to thread-unsafe functions. Much code has been originally written without consideration of multi-threading. Also, engineers are
cmake/cpplint.py:2644
↓ 1 callers
Function
CheckPrintf
Check for printf related issues. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file.
cmake/cpplint.py:5482
↓ 1 callers
Function
CheckRedundantOverrideOrFinal
Check if line contains a redundant "override" or "final" virt-specifier. Args: filename: The name of the current file. clean_lines: A Clean
cmake/cpplint.py:6280
↓ 1 callers
Function
CheckRedundantVirtual
Check if line contains a redundant "virtual" function-specifier. Args: filename: The name of the current file. clean_lines: A CleansedLines
cmake/cpplint.py:6216
↓ 1 callers
Function
CheckSectionSpacing
Checks for additional blank line issues related to sections. Currently the only thing checked here is blank line before protected/private. Args:
cmake/cpplint.py:4188
↓ 1 callers
Function
CheckSpacing
Checks for the correctness of various spacing issues in the code. Things we check for: spaces around operators, spaces after if/for/while/switch,
cmake/cpplint.py:3701
↓ 1 callers
Function
CheckSpacingForFunctionCall
Checks for the correctness of various spacing around function calls. Args: filename: The name of the current file. clean_lines: A CleansedL
cmake/cpplint.py:3470
↓ 1 callers
Function
CheckStyle
Checks rules from the 'C++ style rules' section of cppguide.html. Most of these rules are hard to test (naming, comment style), but we do what we
cmake/cpplint.py:4841
↓ 1 callers
Function
CheckTrailingSemicolon
Looks for redundant trailing semicolon. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the
cmake/cpplint.py:4385
↓ 1 callers
Function
CheckVlogArguments
Checks that VLOG() is only used for defining a logging level. For example, VLOG(2) is correct. VLOG(INFO), VLOG(WARNING), VLOG(ERROR), and VLOG(F
cmake/cpplint.py:2670
↓ 1 callers
Function
CleanseRawStrings
Removes C++11 raw strings from lines. Before: static const char kData[] = R"( multi-line string )"; After: s
cmake/cpplint.py:1798
↓ 1 callers
Method
Count
Count line in current function body.
cmake/cpplint.py:1540
↓ 1 callers
Method
End
Stop analyzing function body.
cmake/cpplint.py:1573
↓ 1 callers
Function
Error
Logs the fact we've found a lint error. We log where the error was found, and also our confidence in the error, that is, how certain we are this
cmake/cpplint.py:1716
↓ 1 callers
Function
ExpectingFunctionArgs
Checks whether where function type arguments are expected. Args: clean_lines: A CleansedLines instance containing the file. linenum: The nu
cmake/cpplint.py:5903
↓ 1 callers
Function
FilesBelongToSameModule
Check if these two filenames belong to the same module. The concept of a 'module' here is a as follows: foo.h, foo-inl.h, foo.cc, foo_test.cc and
cmake/cpplint.py:6005
↓ 1 callers
Function
FindCheckMacro
Find a replaceable CHECK-like macro. Args: line: line to search on. Returns: (macro name, start position), or (None, -1) if no replaceabl
cmake/cpplint.py:4636
↓ 1 callers
Method
FindHeader
Check if a header has already been included. Args: header: header to check. Returns: Line number of previous occurrence, or -1 if
cmake/cpplint.py:1146
↓ 1 callers
Function
FindNextMultiLineCommentEnd
We are inside a comment, find the end marker.
cmake/cpplint.py:1885
↓ 1 callers
Function
FindNextMultiLineCommentStart
Find the beginning marker for a multiline comment.
cmake/cpplint.py:1874
↓ 1 callers
Function
FixupPathFromRoot
()
cmake/cpplint.py:2342
↓ 1 callers
Function
FlagCxx11Features
Flag those c++11 features that we only allow in certain places. Args: filename: The name of the current file. clean_lines: A CleansedLines
cmake/cpplint.py:6418
↓ 1 callers
Method
FormatJUnitXML
(self)
cmake/cpplint.py:1402
↓ 1 callers
Method
InAsmBlock
Check if we are currently one level inside an inline ASM block. Returns: True if the top of the stack is a block containing inline ASM.
cmake/cpplint.py:2990
↓ 1 callers
Method
InExternC
Check if we are currently one level inside an 'extern "C"' block. Returns: True if top of the stack is an extern block, False otherwise.
cmake/cpplint.py:2974
↓ 1 callers
Method
InNamespaceBody
Check if we are currently one level inside a namespace body. Returns: True if top of the stack is a namespace block, False otherwise.
cmake/cpplint.py:2966
↓ 1 callers
Method
InTemplateArgumentList
Check if current position is inside template argument list. Args: clean_lines: A CleansedLines instance containing the file. linenum:
cmake/cpplint.py:2998
↓ 1 callers
Method
IncrementErrorCount
Bumps the module's error statistic.
cmake/cpplint.py:1368
↓ 1 callers
Function
IsBlockInNameSpace
Checks that the new block is directly in a namespace. Args: nesting_state: The _NestingState object that contains info about our state. is_
cmake/cpplint.py:6313
↓ 1 callers
Function
IsCppString
Does line terminate so, that the next symbol is in string constant. This function does not consider single-line nor multi-line comments. Args:
cmake/cpplint.py:1781
↓ 1 callers
Function
IsDerivedFunction
Check if current line contains an inherited function. Args: clean_lines: A CleansedLines instance containing the file. linenum: The number
cmake/cpplint.py:5511
↓ 1 callers
Function
IsErrorSuppressedByNolint
Returns true if the specified error category is suppressed on this line. Consults the global error_suppressions map populated by ParseNolintSuppr
cmake/cpplint.py:1044
↓ 1 callers
Function
IsForwardClassDeclaration
(clean_lines, linenum)
cmake/cpplint.py:2726
↓ 1 callers
Method
IsInAlphabeticalOrder
Check if a header is in alphabetical order with the previous header. Args: clean_lines: A CleansedLines instance containing the file.
cmake/cpplint.py:1197
↓ 1 callers
Function
IsInitializerList
Check if current line is inside constructor initializer list. Args: clean_lines: A CleansedLines instance containing the file. linenum: The
cmake/cpplint.py:5549
↓ 1 callers
Function
IsMacroDefinition
(clean_lines, linenum)
cmake/cpplint.py:2716
↓ 1 callers
Function
IsOutOfLineMethodDefinition
Check if current line contains an out-of-line method definition. Args: clean_lines: A CleansedLines instance containing the file. linenum:
cmake/cpplint.py:5533
↓ 1 callers
Function
ParseArguments
Parses the command line arguments. This may set the output format and verbosity level as side-effects. Args: args: The command line argument
cmake/cpplint.py:6753
↓ 1 callers
Function
PrintCategories
Prints a list of all the error-categories used by error messages. These are the categories used to filter messages via --filter.
cmake/cpplint.py:6744
↓ 1 callers
Method
PrintErrorCounts
Print a summary of errors by category, and the total.
cmake/cpplint.py:1378
↓ 1 callers
Function
PrintVersion
()
cmake/cpplint.py:6738
↓ 1 callers
Function
ProcessConfigOverrides
Loads the configuration files and processes the config overrides. Args: filename: The name of the file being processed by the linter. Retur
cmake/cpplint.py:6540
↓ 1 callers
Function
ProcessFile
Does google-lint on a single file. Args: filename: The name of the file to parse. vlevel: The level of errors to report. Every error of c
cmake/cpplint.py:6629
↓ 1 callers
Function
ProcessFileData
Performs lint checks and reports any errors to the given error function. Args: filename: Filename of the file that is being processed. file
cmake/cpplint.py:6489
↓ 1 callers
Function
ProcessGlobalSuppresions
Updates the list of global error suppressions. Parses any lint directives in the file that have global effect. Args: lines: An array of stri
cmake/cpplint.py:1020
↓ 1 callers
Function
ProcessLine
Processes a single line in the file. Args: filename: Filename of the file that is being processed. file_extension: The extension (dot not i
cmake/cpplint.py:6373
↓ 1 callers
Function
RemoveMultiLineComments
Removes multiline (c-style) comments from lines.
cmake/cpplint.py:1902
↓ 1 callers
Function
RemoveMultiLineCommentsFromRange
Clears a range of lines for multi-line comments.
cmake/cpplint.py:1894
↓ 1 callers
Method
ResetErrorCounts
Sets the module's error statistic back to zero.
cmake/cpplint.py:1363
↓ 1 callers
Function
ResetNolintSuppressions
Resets the set of NOLINT suppressions to empty.
cmake/cpplint.py:1038
↓ 1 callers
Method
RestoreFilters
Restores filters previously backed up.
cmake/cpplint.py:1359
↓ 1 callers
Method
SetCountingStyle
Sets the module's counting options.
cmake/cpplint.py:1322
↓ 1 callers
Method
SetFilters
Sets the error-message filters. These filters are applied when deciding whether to emit a given error message. Args: filters: A st
cmake/cpplint.py:1326
↓ 1 callers
Method
SetLastHeader
(self, header_path)
cmake/cpplint.py:1179
↓ 1 callers
Method
SetOutputFormat
Sets the output format for errors.
cmake/cpplint.py:1306
↓ 1 callers
Method
SetQuiet
Sets the module's quiet settings, and returns the previous setting.
cmake/cpplint.py:1310
↓ 1 callers
Method
SetVerboseLevel
Sets the module's verbosity, and returns the previous setting.
cmake/cpplint.py:1316
↓ 1 callers
Function
ShouldCheckNamespaceIndentation
This method determines if we should apply our namespace indentation check. Args: nesting_state: The current nesting state. is_namespace_ind
cmake/cpplint.py:6332
↓ 1 callers
Method
Update
Update nesting state with current line. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containin
cmake/cpplint.py:3107
↓ 1 callers
Function
UpdateIncludeState
Fill up the include_dict with new includes found from the file. Args: filename: the name of the header to read. include_dict: a dictionary
cmake/cpplint.py:6063
↓ 1 callers
Method
UpdatePreprocessor
Update preprocessor stack. We need to handle preprocessors due to classes like this: #ifdef SWIG struct ResultDetailsPageElementExten
cmake/cpplint.py:3050
↓ 1 callers
Function
_AddFilters
Adds more filter overrides. Unlike _SetFilters, this function does not reset the current list of filters available. Args: filters: A strin
cmake/cpplint.py:1499
↓ 1 callers
Function
_BackupFilters
Saves the current filter list to backup storage.
cmake/cpplint.py:1511
↓ 1 callers
Function
_ClassifyInclude
Figures out what kind of header 'include' is. Args: fileinfo: The current file cpplint is running over. A FileInfo instance. include: The p
cmake/cpplint.py:5006
↓ 1 callers
Method
_CollapseStrings
Collapses strings and chars on a line to simple "" or '' blocks. We nix strings first so we're not fooled by text like '"http://"' Args:
cmake/cpplint.py:1963
↓ 1 callers
Function
_ExpandDirectories
Searches a list of filenames and replaces directories in the list with all files descending from those directories. Files with extensions not in t
cmake/cpplint.py:6855
↓ 1 callers
Function
_FilterExcludedFiles
Filters out files listed in the --exclude command line switch. File paths in the switch are evaluated relative to the current working directory
cmake/cpplint.py:6886
↓ 1 callers
Function
_Filters
Returns the module's list of output filters, as a list.
cmake/cpplint.py:1482
↓ 1 callers
Function
_GetTextInside
r"""Retrieves all the text between matching open and close parentheses. Given a string of lines and a regular expression string, retrieve all the t
cmake/cpplint.py:5175
↓ 1 callers
Function
_IsParentOrSame
Return true if child is subdirectory of parent. Assumes both paths are absolute and don't contain symlinks.
cmake/cpplint.py:6896
↓ 1 callers
Function
_IsType
Check if expression looks like a type name, returns true if so. Args: clean_lines: A CleansedLines instance containing the file. nesting_st
cmake/cpplint.py:4019
↓ 1 callers
Function
_OutputFormat
Gets the module's output format.
cmake/cpplint.py:1449
↓ 1 callers
Function
_Quiet
Return's the module's quiet setting.
cmake/cpplint.py:1458
↓ 1 callers
Function
_SetCountingStyle
Sets the module's counting options.
cmake/cpplint.py:1477
← previous
next →
101–200 of 427, ranked by callers