Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PlatformLab/Arachne
/ functions
Functions
336 in github.com/PlatformLab/Arachne
⨍
Functions
336
◇
Types & classes
55
↓ 1 callers
Function
CheckForCopyright
Logs an error if no Copyright message appears at the top of the file.
scripts/cpplint.py:1729
↓ 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
scripts/cpplint.py:2904
↓ 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:1789
↓ 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:5219
↓ 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:1914
↓ 1 callers
Function
CheckForNamespaceIndentation
(filename, nesting_state, clean_lines, line, error)
scripts/cpplint.py:2890
↓ 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:1896
↓ 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:4743
↓ 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:2643
↓ 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:4617
↓ 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:4300
↓ 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:2032
↓ 1 callers
Function
CheckItemIndentationInNamespace
(filename, raw_lines_no_comments, linenum, error)
scripts/cpplint.py:5493
↓ 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:4459
↓ 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:5321
↓ 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:796
↓ 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:3187
↓ 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:3302
↓ 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:1982
↓ 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:4638
↓ 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
scripts/cpplint.py:5406
↓ 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
scripts/cpplint.py:5342
↓ 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:3546
↓ 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:3059
↓ 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:2798
↓ 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:4085
↓ 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:3743
↓ 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:2008
↓ 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:1261
↓ 1 callers
Method
Count
Count line in current function body.
scripts/cpplint.py:1027
↓ 1 callers
Method
End
Stop analyzing function body.
scripts/cpplint.py:1060
↓ 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:1189
↓ 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:5045
↓ 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:5137
↓ 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:3890
↓ 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
scripts/cpplint.py:724
↓ 1 callers
Function
FindNextMultiLineCommentEnd
We are inside a comment, find the end marker.
scripts/cpplint.py:1348
↓ 1 callers
Function
FindNextMultiLineCommentStart
Find the beginning marker for a multiline comment.
scripts/cpplint.py:1337
↓ 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:5545
↓ 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:2328
↓ 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:2312
↓ 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:2304
↓ 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:2336
↓ 1 callers
Method
IncrementErrorCount
Bumps the module's error statistic.
scripts/cpplint.py:924
↓ 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_
scripts/cpplint.py:5439
↓ 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:1244
↓ 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:4663
↓ 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:627
↓ 1 callers
Function
IsForwardClassDeclaration
(clean_lines, linenum)
scripts/cpplint.py:2064
↓ 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:775
↓ 1 callers
Function
IsInitializerList
Check if current line is inside constructor initializer list. Args: clean_lines: A CleansedLines instance containing the file. linenum: The
scripts/cpplint.py:4701
↓ 1 callers
Function
IsMacroDefinition
(clean_lines, linenum)
scripts/cpplint.py:2054
↓ 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:
scripts/cpplint.py:4685
↓ 1 callers
Method
IsSource
File has a source file extension.
scripts/cpplint.py:1156
↓ 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
scripts/cpplint.py:5839
↓ 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.
scripts/cpplint.py:5830
↓ 1 callers
Method
PrintErrorCounts
Print a summary of errors by category, and the total.
scripts/cpplint.py:934
↓ 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
scripts/cpplint.py:5648
↓ 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
scripts/cpplint.py:5729
↓ 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
scripts/cpplint.py:5601
↓ 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
scripts/cpplint.py:603
↓ 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
scripts/cpplint.py:5501
↓ 1 callers
Function
RemoveMultiLineComments
Removes multiline (c-style) comments from lines.
scripts/cpplint.py:1365
↓ 1 callers
Function
RemoveMultiLineCommentsFromRange
Clears a range of lines for multi-line comments.
scripts/cpplint.py:1357
↓ 1 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:655
↓ 1 callers
Method
ResetErrorCounts
Sets the module's error statistic back to zero.
scripts/cpplint.py:919
↓ 1 callers
Function
ResetNolintSuppressions
Resets the set of NOLINT suppressions to empty.
scripts/cpplint.py:621
↓ 1 callers
Method
RestoreFilters
Restores filters previously backed up.
scripts/cpplint.py:915
↓ 1 callers
Method
SetCountingStyle
Sets the module's counting options.
scripts/cpplint.py:878
↓ 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
scripts/cpplint.py:882
↓ 1 callers
Method
SetLastHeader
(self, header_path)
scripts/cpplint.py:757
↓ 1 callers
Method
SetOutputFormat
Sets the output format for errors.
scripts/cpplint.py:868
↓ 1 callers
Method
SetVerboseLevel
Sets the module's verbosity, and returns the previous setting.
scripts/cpplint.py:872
↓ 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
scripts/cpplint.py:5460
↓ 1 callers
Method
Update
Update nesting state with current line. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containin
scripts/cpplint.py:2445
↓ 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
scripts/cpplint.py:5192
↓ 1 callers
Method
UpdatePreprocessor
Update preprocessor stack. We need to handle preprocessors due to classes like this: #ifdef SWIG struct ResultDetailsPageElementExten
scripts/cpplint.py:2388
↓ 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
scripts/cpplint.py:986
↓ 1 callers
Function
_BackupFilters
Saves the current filter list to backup storage.
scripts/cpplint.py:998
↓ 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
scripts/cpplint.py:4240
↓ 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:
scripts/cpplint.py:1425
↓ 1 callers
Function
_Filters
Returns the module's list of output filters, as a list.
scripts/cpplint.py:969
↓ 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
scripts/cpplint.py:4374
↓ 1 callers
Function
_IsSourceExtension
File extension (excluding dot) matches a source file extension.
scripts/cpplint.py:680
↓ 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
scripts/cpplint.py:3376
↓ 1 callers
Function
_OutputFormat
Gets the module's output format.
scripts/cpplint.py:944
↓ 1 callers
Function
_SetCountingStyle
Sets the module's counting options.
scripts/cpplint.py:964
↓ 1 callers
Function
_SetFilters
Sets the module's error-message filters. These filters are applied when deciding whether to emit a given error message. Args: filters: A s
scripts/cpplint.py:974
↓ 1 callers
Function
_SetOutputFormat
Sets the module's output format.
scripts/cpplint.py:949
↓ 1 callers
Function
_ShouldPrintError
If confidence >= verbose, category passes filter and is not suppressed.
scripts/cpplint.py:1161
↓ 1 callers
Function
arachne_thread_create_with_class
* This function is the wrapper for Arachne::createThreadWithClass. * Under Arachne's default core policy, the following thread classes are * availab
cwrapper/arachne_wrapper.cc:72
↓ 1 callers
Function
canThreadBeCreatedOnCore
src/ArachneTest.cc:139
↓ 1 callers
Function
descheduleCore
* If the Core Arbiter asks the Arachne runtime to yield the current core, this * function shall begin the process of descheduling a core. */
src/Arachne.cc:1436
↓ 1 callers
Method
estimate
* Returns -1,0,1 to suggest whether the core count should decrease, * stay the same, or increase respectively. * * \param coreList * The list o
src/CoreLoadEstimator.cc:33
↓ 1 callers
Function
getThreadId
* Return a thread handle for the currently executing thread, identical to the * one returned by the createThread call that initially created this thr
src/Arachne.cc:560
↓ 1 callers
Function
limitedTimeWait
Helper function for tests with timing dependencies, so that we wait for a finite amount of time in the case of a bug causing an infinite loop.
cwrapper/arachne_wrapper_test.cc:114
↓ 1 callers
Function
limitedTimeWait
Helper function for tests with timing dependencies, so that we wait for a finite amount of time in the case of a bug causing an infinite loop.
src/DefaultCorePolicyTest.cc:115
↓ 1 callers
Method
log
src/Logger.cc:43
↓ 1 callers
Function
main
()
scripts/cpplint.py:5912
↓ 1 callers
Function
mainThreadDestroy
* Tear down the state set up by mainThreadInit(). */
src/Arachne.cc:1203
← previous
next →
101–200 of 336, ranked by callers