Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0x61726b/electron-vibrancy
/ functions
Functions
169 in github.com/0x61726b/electron-vibrancy
⨍
Functions
169
◇
Types & classes
18
↓ 122 callers
Function
Match
Matches the string with the pattern, caching the compiled regexp.
scripts/cpplint.py:498
↓ 108 callers
Function
Search
Searches the string for the pattern, caching the compiled regexp.
scripts/cpplint.py:524
↓ 15 callers
Method
NumLines
Returns the number of lines represented.
scripts/cpplint.py:1166
↓ 12 callers
Function
CloseExpression
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 callers
Function
PrintUsage
Prints a brief usage string and exits, optionally with an error message. Args: message: The optional error message.
scripts/cpplint.py:5401
↓ 5 callers
Function
GetPreviousNonBlankLine
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 callers
Function
ReverseCloseExpression
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 callers
Method
__init__
(self, filename)
scripts/cpplint.py:847
↓ 3 callers
Function
CheckCStyleCast
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 callers
Function
CleanseComments
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 callers
Function
FindEndOfExpressionInLine
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 callers
Function
GetIndentLevel
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 callers
Method
InnermostClass
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 callers
Function
IsBlankLine
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 callers
Function
ParseNolintSuppressions
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 callers
Method
RepositoryName
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 callers
Method
SeenOpenBrace
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 callers
Method
Split
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 callers
Function
AddView
(buffer,options)
index.js:5
↓ 2 callers
Method
AddView
src/vibrancy_win.cc:116
↓ 2 callers
Function
FindStartOfExpressionInLine
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 callers
Method
FullName
Make Windows paths like Unix.
scripts/cpplint.py:850
↓ 2 callers
Function
GetHeaderGuardCPPVariable
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 callers
Method
RemoveView
src/vibrancy_win.cc:130
↓ 2 callers
Function
ReplaceAll
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 callers
Method
ResetSection
(self)
scripts/cpplint.py:568
↓ 2 callers
Function
SetBlurBehind
src/vibrancy_win.cc:62
↓ 2 callers
Method
UpdateView
These are here so compiling doesnt fail.
src/vibrancy_win.cc:125
↓ 2 callers
Function
_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 callers
Function
_SetVerboseLevel
Sets the module's verbosity, and returns the previous setting.
scripts/cpplint.py:757
↓ 2 callers
Function
_VerboseLevel
Returns the module's verbosity setting.
scripts/cpplint.py:753
↓ 1 callers
Method
BaseName
File base name - text after the final slash, before the final period.
scripts/cpplint.py:913
↓ 1 callers
Method
Begin
Start analyzing function body. Args: function_name: The name of the function being tracked.
scripts/cpplint.py:792
↓ 1 callers
Method
CanonicalizeAlphabeticalOrder
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 callers
Method
Check
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 callers
Function
CheckAccess
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 callers
Function
CheckAltTokens
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 callers
Method
CheckBegin
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 callers
Function
CheckBraces
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 callers
Function
CheckBracesSpacing
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 callers
Function
CheckCasts
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 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
scripts/cpplint.py:3717
↓ 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
scripts/cpplint.py:2940
↓ 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
scripts/cpplint.py:2584
↓ 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
scripts/cpplint.py:2299
↓ 1 callers
Function
CheckDefaultLambdaCaptures
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 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
scripts/cpplint.py:3661
↓ 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
scripts/cpplint.py:1793
↓ 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
scripts/cpplint.py:1594
↓ 1 callers
Function
CheckForCopyright
Logs an error if no Copyright message appears at the top of the file.
scripts/cpplint.py:1470
↓ 1 callers
Function
CheckForFunctionLengths
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 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
scripts/cpplint.py:1520
↓ 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
scripts/cpplint.py:5049
↓ 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
scripts/cpplint.py:1635
↓ 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,
scripts/cpplint.py:1618
↓ 1 callers
Function
CheckForNonConstReference
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 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
scripts/cpplint.py:2320
↓ 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
scripts/cpplint.py:4437
↓ 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
scripts/cpplint.py:4106
↓ 1 callers
Function
CheckInvalidIncrement
Checks for invalid increment *count++. For example following function: void increment_counter(int* count) { *count++; } is invalid, becau
scripts/cpplint.py:1749
↓ 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
scripts/cpplint.py:4261
↓ 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
scripts/cpplint.py:5143
↓ 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
scripts/cpplint.py:613
↓ 1 callers
Function
CheckOperatorSpacing
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 callers
Function
CheckParenthesisSpacing
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 callers
Function
CheckPosixThreading
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 callers
Function
CheckPrintf
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 callers
Function
CheckRValueReference
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 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:
scripts/cpplint.py:3341
↓ 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,
scripts/cpplint.py:2667
↓ 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
scripts/cpplint.py:2427
↓ 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
scripts/cpplint.py:3879
↓ 1 callers
Function
CheckTrailingSemicolon
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 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
scripts/cpplint.py:1726
↓ 1 callers
Function
CleanseRawStrings
Removes C++11 raw strings from lines. Before: static const char kData[] = R"( multi-line string )"; After: s
scripts/cpplint.py:1025
↓ 1 callers
Method
Count
Count line in current function body.
scripts/cpplint.py:802
↓ 1 callers
Function
DisableVibrancy
(buffer)
index.js:30
↓ 1 callers
Method
DisableVibrancy
src/vibrancy_win.cc:109
↓ 1 callers
Method
End
Stop analyzing function body.
scripts/cpplint.py:832
↓ 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
scripts/cpplint.py:956
↓ 1 callers
Function
ExpectingFunctionArgs
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 callers
Method
Extension
File extension - text following the final period.
scripts/cpplint.py:917
↓ 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
scripts/cpplint.py:4967
↓ 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
scripts/cpplint.py:3695
↓ 1 callers
Function
FindNextMultiLineCommentEnd
We are inside a comment, find the end marker.
scripts/cpplint.py:1100
↓ 1 callers
Function
FindNextMultiLineCommentStart
Find the beginning marker for a multiline comment.
scripts/cpplint.py:1090
↓ 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
scripts/cpplint.py:5227
↓ 1 callers
Function
GetLineWidth
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 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.
scripts/cpplint.py:2006
↓ 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.
scripts/cpplint.py:1990
↓ 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.
scripts/cpplint.py:1982
↓ 1 callers
Method
InTemplateArgumentList
Check if current position is inside template argument list. Args: clean_lines: A CleansedLines instance containing the file. linenum:
scripts/cpplint.py:2014
↓ 1 callers
Method
IncrementErrorCount
Bumps the module's error statistic.
scripts/cpplint.py:726
↓ 1 callers
Method
IsBlockInfo
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 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:
scripts/cpplint.py:1009
↓ 1 callers
Function
IsDecltype
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 callers
Function
IsDerivedFunction
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 callers
Function
IsErrorSuppressedByNolint
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 callers
Function
IsHigherThanYosemite
src/vibrancy_mac.cc:31
↓ 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.
scripts/cpplint.py:592
next →
1–100 of 169, ranked by callers