MCPcopy Create free account

hub / github.com/0x61726b/electron-vibrancy / functions

Functions169 in github.com/0x61726b/electron-vibrancy

↓ 122 callersFunctionMatch
Matches the string with the pattern, caching the compiled regexp.
scripts/cpplint.py:498
↓ 108 callersFunctionSearch
Searches the string for the pattern, caching the compiled regexp.
scripts/cpplint.py:524
↓ 15 callersMethodNumLines
Returns the number of lines represented.
scripts/cpplint.py:1166
↓ 12 callersFunctionCloseExpression
If input points to ( or { or [ or <, finds the position that closes it. If lines[linenum][pos] points to a '(' or '{' or '[' or '<', finds the li
scripts/cpplint.py:1314
↓ 7 callersFunctionPrintUsage
Prints a brief usage string and exits, optionally with an error message. Args: message: The optional error message.
scripts/cpplint.py:5401
↓ 5 callersFunctionGetPreviousNonBlankLine
Return the most recent non-blank line and its line number. Args: clean_lines: A CleansedLines instance containing the file contents. linenu
scripts/cpplint.py:3395
↓ 5 callersFunctionReverseCloseExpression
If input points to ) or } or ] or >, finds the position that opens it. If lines[linenum][pos] points to a ')' or '}' or ']' or '>', finds the lin
scripts/cpplint.py:1433
↓ 4 callersMethod__init__
(self, filename)
scripts/cpplint.py:847
↓ 3 callersFunctionCheckCStyleCast
Checks for a C-style cast by looking for the pattern. Args: filename: The name of the current file. linenum: The number of the line to chec
scripts/cpplint.py:4794
↓ 3 callersFunctionCleanseComments
Removes //-comments and single-line C-style /* */ comments. Args: line: A line of C++ source. Returns: The line with single-line comment
scripts/cpplint.py:1130
↓ 3 callersFunctionFindEndOfExpressionInLine
Find the position just after the end of current parenthesized expression. Args: line: a CleansedLines line. startpos: start searching at th
scripts/cpplint.py:1237
↓ 3 callersFunctionGetIndentLevel
Return the number of leading spaces in line. Args: line: A string to check. Returns: An integer count of leading spaces, possibly zero.
scripts/cpplint.py:1482
↓ 3 callersMethodInnermostClass
Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.
scripts/cpplint.py:2287
↓ 3 callersFunctionIsBlankLine
Returns true if the given line is blank. We consider a line to be blank if the line is empty or consists of only white spaces. Args: line:
scripts/cpplint.py:2501
↓ 3 callersFunctionParseNolintSuppressions
Updates the global list of error-suppressions. Parses any NOLINT comments on the current line, updating the global error_suppressions store. Rep
scripts/cpplint.py:451
↓ 3 callersMethodRepositoryName
FullName after removing the local path to the repository. If we have a real absolute path name here we can try to do something smart: detecti
scripts/cpplint.py:854
↓ 3 callersMethodSeenOpenBrace
Check if we have seen the opening brace for the innermost block. Returns: True if we have seen the opening brace, False if the innermost
scripts/cpplint.py:1973
↓ 3 callersMethodSplit
Splits the file into the directory, basename, and extension. For 'chrome/browser/browser.cc', Split() would return ('chrome/browser', 'browse
scripts/cpplint.py:899
↓ 2 callersFunctionAddView
(buffer,options)
index.js:5
↓ 2 callersMethodAddView
src/vibrancy_win.cc:116
↓ 2 callersFunctionFindStartOfExpressionInLine
Find position at the matching start of current expression. This is almost the reverse of FindEndOfExpressionInLine, but note that the input posit
scripts/cpplint.py:1357
↓ 2 callersMethodFullName
Make Windows paths like Unix.
scripts/cpplint.py:850
↓ 2 callersFunctionGetHeaderGuardCPPVariable
Returns the CPP variable that should be used as a header guard. Args: filename: The name of a C++ header file. Returns: The CPP variable
scripts/cpplint.py:1497
↓ 2 callersMethodRemoveView
src/vibrancy_win.cc:130
↓ 2 callersFunctionReplaceAll
Replaces instances of pattern in a string with a replacement. The compiled regex is kept in a cache shared by Match and Search. Args: patter
scripts/cpplint.py:507
↓ 2 callersMethodResetSection
(self)
scripts/cpplint.py:568
↓ 2 callersFunctionSetBlurBehind
src/vibrancy_win.cc:62
↓ 2 callersMethodUpdateView
These are here so compiling doesnt fail.
src/vibrancy_win.cc:125
↓ 2 callersFunction_DropCommonSuffixes
Drops common suffixes like _test.cc or -inl.h from filename. For example: >>> _DropCommonSuffixes('foo/foo-inl.h') 'foo/foo' >>> _DropC
scripts/cpplint.py:4006
↓ 2 callersFunction_SetVerboseLevel
Sets the module's verbosity, and returns the previous setting.
scripts/cpplint.py:757
↓ 2 callersFunction_VerboseLevel
Returns the module's verbosity setting.
scripts/cpplint.py:753
↓ 1 callersMethodBaseName
File base name - text after the final slash, before the final period.
scripts/cpplint.py:913
↓ 1 callersMethodBegin
Start analyzing function body. Args: function_name: The name of the function being tracked.
scripts/cpplint.py:792
↓ 1 callersMethodCanonicalizeAlphabeticalOrder
Returns a path canonicalized for alphabetical comparison. - replaces "-" with "_" so they both cmp the same. - removes '-inl' since we don't
scripts/cpplint.py:577
↓ 1 callersMethodCheck
Report if too many lines in function body. Args: error: The function to call with any errors found. filename: The name of the current
scripts/cpplint.py:807
↓ 1 callersFunctionCheckAccess
Checks for improper use of DISALLOW* macros. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing
scripts/cpplint.py:2637
↓ 1 callersFunctionCheckAltTokens
Check alternative keywords being used in boolean expressions. Args: filename: The name of the current file. clean_lines: A CleansedLines in
scripts/cpplint.py:3827
↓ 1 callersMethodCheckBegin
Run checks that applies to text up to the opening brace. This is mostly for checking the text after the class identifier and the "{", usually
scripts/cpplint.py:1778
↓ 1 callersFunctionCheckBraces
Looks for misplaced braces (e.g. at the end of line). Args: filename: The name of the current file. clean_lines: A CleansedLines instance c
scripts/cpplint.py:3417
↓ 1 callersFunctionCheckBracesSpacing
Checks for horizontal spacing near commas. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
scripts/cpplint.py:2974
↓ 1 callersFunctionCheckCasts
Various cast related checks. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. l
scripts/cpplint.py:4688
↓ 1 callersFunctionCheckCheck
Checks the use of CHECK and EXPECT macros. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
scripts/cpplint.py:3717
↓ 1 callersFunctionCheckCommaSpacing
Checks for horizontal spacing near commas and semicolons. Args: filename: The name of the current file. clean_lines: A CleansedLines instan
scripts/cpplint.py:2940
↓ 1 callersFunctionCheckComment
Checks for common mistakes in comments. Args: line: The line in question. filename: The name of the current file. linenum: The number o
scripts/cpplint.py:2584
↓ 1 callersMethodCheckCompletedBlocks
Checks that all classes and namespaces have been completely parsed. Call this when all lines in a file have been processed. Args: filen
scripts/cpplint.py:2299
↓ 1 callersFunctionCheckDefaultLambdaCaptures
Check that default lambda captures are not used. Args: filename: The name of the current file. clean_lines: A CleansedLines instance contai
scripts/cpplint.py:5162
↓ 1 callersFunctionCheckEmptyBlockBody
Look for empty loop/conditional body with only a single semicolon. Args: filename: The name of the current file. clean_lines: A CleansedLin
scripts/cpplint.py:3661
↓ 1 callersMethodCheckEnd
Run checks that applies to text after the closing brace. This is mostly used for checking end of namespace comments. Args: filename: T
scripts/cpplint.py:1793
↓ 1 callersFunctionCheckForBadCharacters
Logs an error for each line containing bad characters. Two kinds of bad characters: 1. Unicode replacement characters: These indicate that eithe
scripts/cpplint.py:1594
↓ 1 callersFunctionCheckForCopyright
Logs an error if no Copyright message appears at the top of the file.
scripts/cpplint.py:1470
↓ 1 callersFunctionCheckForFunctionLengths
Reports for long function bodies. For an overview why this is done, see: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Write_Sho
scripts/cpplint.py:2515
↓ 1 callersFunctionCheckForHeaderGuard
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
scripts/cpplint.py:1520
↓ 1 callersFunctionCheckForIncludeWhatYouUse
Reports for missing stl includes. This function will output warnings to make sure you are including the headers necessary for the stl containers
scripts/cpplint.py:5049
↓ 1 callersFunctionCheckForMultilineCommentsAndStrings
Logs an error if we see /* ... */ or "..." that extend past one line. /* ... */ comments are legit inside macros, for one line. Otherwise, we pre
scripts/cpplint.py:1635
↓ 1 callersFunctionCheckForNewlineAtEOF
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,
scripts/cpplint.py:1618
↓ 1 callersFunctionCheckForNonConstReference
Check for non-const references. Separate from CheckLanguage since it scans backwards from current line, instead of scanning forward. Args:
scripts/cpplint.py:4570
↓ 1 callersFunctionCheckForNonStandardConstructs
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
scripts/cpplint.py:2320
↓ 1 callersFunctionCheckGlobalStatic
Check for unsafe global or static objects. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
scripts/cpplint.py:4437
↓ 1 callersFunctionCheckIncludeLine
Check rules that are applicable to #include lines. Strings on #include lines are NOT removed from elided line, to make certain tasks easier. Howe
scripts/cpplint.py:4106
↓ 1 callersFunctionCheckInvalidIncrement
Checks for invalid increment *count++. For example following function: void increment_counter(int* count) { *count++; } is invalid, becau
scripts/cpplint.py:1749
↓ 1 callersFunctionCheckLanguage
Checks rules from the 'C++ language rules' section of cppguide.html. Some of these rules are hard to test (function overloading, using uint32 ina
scripts/cpplint.py:4261
↓ 1 callersFunctionCheckMakePairUsesDeduction
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
scripts/cpplint.py:5143
↓ 1 callersMethodCheckNextIncludeOrder
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
scripts/cpplint.py:613
↓ 1 callersFunctionCheckOperatorSpacing
Checks for horizontal spacing around operators. Args: filename: The name of the current file. clean_lines: A CleansedLines instance contain
scripts/cpplint.py:2794
↓ 1 callersFunctionCheckParenthesisSpacing
Checks for horizontal spacing around parentheses. Args: filename: The name of the current file. clean_lines: A CleansedLines instance conta
scripts/cpplint.py:2903
↓ 1 callersFunctionCheckPosixThreading
Checks for calls to thread-unsafe functions. Much code has been originally written without consideration of multi-threading. Also, engineers are
scripts/cpplint.py:1701
↓ 1 callersFunctionCheckPrintf
Check for printf related issues. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file.
scripts/cpplint.py:4483
↓ 1 callersFunctionCheckRValueReference
Check for rvalue references. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. l
scripts/cpplint.py:3307
↓ 1 callersFunctionCheckSectionSpacing
Checks for additional blank line issues related to sections. Currently the only thing checked here is blank line before protected/private. Args:
scripts/cpplint.py:3341
↓ 1 callersFunctionCheckSpacing
Checks for the correctness of various spacing issues in the code. Things we check for: spaces around operators, spaces after if/for/while/switch,
scripts/cpplint.py:2667
↓ 1 callersFunctionCheckSpacingForFunctionCall
Checks for the correctness of various spacing around function calls. Args: filename: The name of the current file. clean_lines: A CleansedL
scripts/cpplint.py:2427
↓ 1 callersFunctionCheckStyle
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
scripts/cpplint.py:3879
↓ 1 callersFunctionCheckTrailingSemicolon
Looks for redundant trailing semicolon. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the
scripts/cpplint.py:3528
↓ 1 callersFunctionCheckVlogArguments
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
scripts/cpplint.py:1726
↓ 1 callersFunctionCleanseRawStrings
Removes C++11 raw strings from lines. Before: static const char kData[] = R"( multi-line string )"; After: s
scripts/cpplint.py:1025
↓ 1 callersMethodCount
Count line in current function body.
scripts/cpplint.py:802
↓ 1 callersFunctionDisableVibrancy
(buffer)
index.js:30
↓ 1 callersMethodDisableVibrancy
src/vibrancy_win.cc:109
↓ 1 callersMethodEnd
Stop analyzing function body.
scripts/cpplint.py:832
↓ 1 callersFunctionError
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
scripts/cpplint.py:956
↓ 1 callersFunctionExpectingFunctionArgs
Checks whether where function type arguments are expected. Args: clean_lines: A CleansedLines instance containing the file. linenum: The nu
scripts/cpplint.py:4889
↓ 1 callersMethodExtension
File extension - text following the final period.
scripts/cpplint.py:917
↓ 1 callersFunctionFilesBelongToSameModule
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
scripts/cpplint.py:4967
↓ 1 callersFunctionFindCheckMacro
Find a replaceable CHECK-like macro. Args: line: line to search on. Returns: (macro name, start position), or (None, -1) if no replaceabl
scripts/cpplint.py:3695
↓ 1 callersFunctionFindNextMultiLineCommentEnd
We are inside a comment, find the end marker.
scripts/cpplint.py:1100
↓ 1 callersFunctionFindNextMultiLineCommentStart
Find the beginning marker for a multiline comment.
scripts/cpplint.py:1090
↓ 1 callersFunctionFlagCxx11Features
Flag those c++11 features that we only allow in certain places. Args: filename: The name of the current file. clean_lines: A CleansedLines
scripts/cpplint.py:5227
↓ 1 callersFunctionGetLineWidth
Determines the width of the line in column positions. Args: line: A string, which may be a Unicode string. Returns: The width of the lin
scripts/cpplint.py:3858
↓ 1 callersMethodInAsmBlock
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.
scripts/cpplint.py:2006
↓ 1 callersMethodInExternC
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.
scripts/cpplint.py:1990
↓ 1 callersMethodInNamespaceBody
Check if we are currently one level inside a namespace body. Returns: True if top of the stack is a namespace block, False otherwise.
scripts/cpplint.py:1982
↓ 1 callersMethodInTemplateArgumentList
Check if current position is inside template argument list. Args: clean_lines: A CleansedLines instance containing the file. linenum:
scripts/cpplint.py:2014
↓ 1 callersMethodIncrementErrorCount
Bumps the module's error statistic.
scripts/cpplint.py:726
↓ 1 callersMethodIsBlockInfo
Returns true if this block is a _BlockInfo. This is convenient for verifying that an object is an instance of a _BlockInfo, but not an instan
scripts/cpplint.py:1806
↓ 1 callersFunctionIsCppString
Does line terminate so, that the next symbol is in string constant. This function does not consider single-line nor multi-line comments. Args:
scripts/cpplint.py:1009
↓ 1 callersFunctionIsDecltype
Check if the token ending on (linenum, column) is decltype(). Args: clean_lines: A CleansedLines instance containing the file. linenum: the
scripts/cpplint.py:3052
↓ 1 callersFunctionIsDerivedFunction
Check if current line contains an inherited function. Args: clean_lines: A CleansedLines instance containing the file. linenum: The number
scripts/cpplint.py:4511
↓ 1 callersFunctionIsErrorSuppressedByNolint
Returns true if the specified error category is suppressed on this line. Consults the global error_suppressions map populated by ParseNolintSuppr
scripts/cpplint.py:483
↓ 1 callersFunctionIsHigherThanYosemite
src/vibrancy_mac.cc:31
↓ 1 callersMethodIsInAlphabeticalOrder
Check if a header is in alphabetical order with the previous header. Args: clean_lines: A CleansedLines instance containing the file.
scripts/cpplint.py:592
next →1–100 of 169, ranked by callers