| /external/compiler-rt/lib/sanitizer_common/scripts/ |
| D | cpplint.py | 35 # but I think it is valuable to retain these wish-list items even if they cannot 39 # ----------- 40 # - Check for no 'explicit' for multi-arg ctor 41 # - Check for boolean assign RHS in parens 42 # - Check for ctor initializer-list colon position and spacing 43 # - Check that if there's a ctor, there should be a dtor 44 # - Check accessors that return non-pointer member variables are 46 # - Check accessors that return non-const pointer member vars are 48 # - Check for using public includes for testing 49 # - Check for spaces between brackets in one-line inline method [all …]
|
| /external/google-styleguide/cpplint/ |
| D | cpplint.py | 31 """Does google-lint on c++ files. 34 be in non-compliance with google style. It does not attempt to fix 35 up these problems -- the point is to educate. It does also not 63 Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...] 64 [--counting=total|toplevel|detailed] [--root=subdir] 65 [--linelength=digits] [--headers=x,y,...] 66 [--quiet] 70 https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml 72 Every problem is given a confidence score from 1-5, with 5 meaning we are 76 To suppress false-positive errors of a certain category, add a [all …]
|
| /external/libvpx/tools/ |
| D | cpplint.py | 31 """Does google-lint on c++ files. 34 be in non-compliance with google style. It does not attempt to fix 35 up these problems -- the point is to educate. It does also not 63 Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...] 64 [--counting=total|toplevel|detailed] [--root=subdir] 65 [--linelength=digits] [--headers=x,y,...] 66 [--quiet] 70 https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml 72 Every problem is given a confidence score from 1-5, with 5 meaning we are 76 To suppress false-positive errors of a certain category, add a [all …]
|
| /external/libaom/tools/ |
| D | cpplint.py | 31 """Does google-lint on c++ files. 34 be in non-compliance with google style. It does not attempt to fix 35 up these problems -- the point is to educate. It does also not 63 Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...] 64 [--counting=total|toplevel|detailed] [--root=subdir] 65 [--linelength=digits] [--headers=x,y,...] 66 [--quiet] 70 https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml 72 Every problem is given a confidence score from 1-5, with 5 meaning we are 76 To suppress false-positive errors of a certain category, add a [all …]
|
| /external/yapf/third_party/yapf_third_party/yapf_diff/ |
| D | yapf_diff.py | 1 # Modified copy of clang-format-diff.py that works with yapf. 19 git diff -U0 --no-color --relative HEAD^ | yapf-diff -i 20 svn diff --diff-cmd=diff -x-U0 | yapf-diff -p0 -i 22 It should be noted that the filename contained in the diff is used unmodified 40 '-i', 41 '--in-place', 46 '-p', 47 '--prefix', 52 '--regex', 56 '(case sensitive, overrides -iregex)') [all …]
|
| /external/clang/tools/clang-format/ |
| D | clang-format-diff.py | 3 #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===# 10 #===------------------------------------------------------------------------===# 20 git diff -U0 HEAD^ | clang-format-diff.py -p1 -i 21 svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i 36 'Reformat changed lines in diff. Without -i ' 39 parser.add_argument('-i', action='store_true', default=False, 41 parser.add_argument('-p', metavar='NUM', default=0, 43 parser.add_argument('-regex', metavar='PATTERN', default=None, 45 '(case sensitive, overrides -iregex)') 46 parser.add_argument('-iregex', metavar='PATTERN', default= [all …]
|
| /external/python/mako/mako/ |
| D | lexer.py | 2 # Copyright 2006-2023 the Mako authors and contributors <see AUTHORS file> 5 # the MIT License: http://www.opensource.org/licenses/mit-license.php 21 self, text, filename=None, input_encoding=None, preprocessor=None argument 24 self.filename = filename 25 self.template = parsetree.TemplateNode(self.filename) 48 "filename": self.filename, 51 def match(self, regexp, flags=None): member in Lexer 63 """match the given regular expression object to the current text 66 if a match occurs, update the current text and line position. 72 match = reg.match(self.text, self.match_position) [all …]
|
| /external/google-java-format/scripts/ |
| D | google-java-format-diff.py | 3 #===- google-java-format-diff.py - google-java-format Diff Reformatter -----===# 10 #===------------------------------------------------------------------------===# 13 google-java-format Diff Reformatter 20 git diff -U0 HEAD^ | google-java-format-diff.py -p1 -i 21 svn diff --diff-cmd=diff -x-U0 | google-java-format-diff.py -i 25 P4DIFF="git --no-pager diff --no-index" p4 diff | ./google-java-format-diff.py -i -p7 40 'Reformat changed lines in diff. Without -i ' 43 parser.add_argument('-i', action='store_true', default=False, 46 parser.add_argument('-p', metavar='NUM', default=0, 48 parser.add_argument('-regex', metavar='PATTERN', default=None, [all …]
|
| /external/bazelbuild-rules_android/src/tools/ak/repack/ |
| D | repack_test.go | 7 // http://www.apache.org/licenses/LICENSE-2.0 35 match bool member 41 name: "META-INF/MANIFEST.MF", 42 match: false, 46 match: false, 50 match: false, 55 name: "META-INF/MANIFEST.MF", 56 match: false, 60 match: false, 64 match: true, [all …]
|
| /external/minijail/tools/ |
| D | seccomp_policy_lint.py | 3 # Use of this source code is governed by a BSD-style license that can be 60 "kill-process", 61 "kill-thread", 81 "--denylist", 86 "--dangerous-syscalls", 89 help="Comma-separated list of dangerous sycalls (overrides default).", 92 "--assume-filename", 93 help="The filename when parsing stdin.", 98 type=argparse.FileType("r", encoding="utf-8"), 104 check_file, dangerous_syscalls: Set[str], filename: Optional[str] = None [all …]
|
| /external/grpc-grpc/src/csharp/Grpc.Tools/ |
| D | ProtoCompile.cs | 9 // http://www.apache.org/licenses/LICENSE-2.0 35 /// about language-specific behavior of protoc, and therefore can be used for 42 Usage: /home/kkm/work/protobuf/src/.libs/lt-protoc [OPTION] PROTO_FILES 44 -IPATH, --proto_path=PATH Specify the directory in which to search for 48 --version Show version info and exit. 49 -h, --help Show this text and exit. 50 --encode=MESSAGE_TYPE Read a text-format message of the given type 54 --decode=MESSAGE_TYPE Read a binary message of the given type from 58 --decode_raw Read an arbitrary protocol message from 63 --descriptor_set_in=FILES Specifies a delimited list of FILES [all …]
|
| /external/cronet/tot/third_party/jni_zero/ |
| D | parse.py | 2 # Use of this source code is governed by a BSD-style license that can be 58 filename: str 78 # Match single line comments, multiline comments, character literals, and 79 # double-quoted strings. 88 def replacer(match): argument 91 s = match.group(0) 119 match = _PACKAGE_REGEX.search(contents) 120 if not match: 122 return match.group(1) 132 # Does not handle doubly-nested classes. [all …]
|
| /external/cronet/stable/third_party/jni_zero/ |
| D | parse.py | 2 # Use of this source code is governed by a BSD-style license that can be 58 filename: str 78 # Match single line comments, multiline comments, character literals, and 79 # double-quoted strings. 88 def replacer(match): argument 91 s = match.group(0) 119 match = _PACKAGE_REGEX.search(contents) 120 if not match: 122 return match.group(1) 132 # Does not handle doubly-nested classes. [all …]
|
| /external/coreboot/util/supermicro/smcbiosinfo/ |
| D | smcbiosinfo.c | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 37 char str[15]; // "SUPERMSMCI--MB1" 54 printf("Usage: smcbiosinfo [options] -i build.h -b <boardid> -o <filename>\n"); in usage() 55 printf("-b | --boardid <ID> The board ID assigned by SMC\n"); in usage() 56 printf("-i | --input <FILE> The build.h file to parse\n"); in usage() 57 printf("-o | --output <FILE> The file to generate\n"); in usage() 58 printf("-h | --help Print this help\n"); in usage() 64 return -1; in bcd2int() 68 static char *get_line(char *fn, char *match) in get_line() argument 81 while ((read = getline(&line, &len, fp)) != -1) { in get_line() [all …]
|
| /external/cronet/stable/build/ |
| D | fix_gn_headers.py | 3 # Use of this source code is governed by a BSD-style license that can be 23 ['git', 'grep', '-En', pattern, '--', '*.gn', '*.gni'], 37 assert contents in lines[linenr - 1] 38 # Skip if it's already there. It could be before or after the match. 41 if lines[linenr - 2] == new: 58 for filename in headers: 59 filename = filename.strip() 60 if not (filename.endswith('.h') or filename.endswith('.hh')): 62 basename = os.path.basename(filename) 63 print(filename) [all …]
|
| /external/libchrome/build/ |
| D | fix_gn_headers.py | 3 # Use of this source code is governed by a BSD-style license that can be 22 ['git', 'grep', '-En', pattern, '--', '*.gn', '*.gni'], 36 assert contents in lines[linenr - 1] 37 # Skip if it's already there. It could be before or after the match. 40 if lines[linenr - 2] == new: 57 for filename in headers: 58 filename = filename.strip() 59 if not (filename.endswith('.h') or filename.endswith('.hh')): 61 basename = os.path.basename(filename) 62 print(filename) [all …]
|
| /external/cronet/tot/build/ |
| D | fix_gn_headers.py | 3 # Use of this source code is governed by a BSD-style license that can be 23 ['git', 'grep', '-En', pattern, '--', '*.gn', '*.gni'], 37 assert contents in lines[linenr - 1] 38 # Skip if it's already there. It could be before or after the match. 41 if lines[linenr - 2] == new: 58 for filename in headers: 59 filename = filename.strip() 60 if not (filename.endswith('.h') or filename.endswith('.hh')): 62 basename = os.path.basename(filename) 63 print(filename) [all …]
|
| /external/angle/build/ |
| D | fix_gn_headers.py | 3 # Use of this source code is governed by a BSD-style license that can be 23 ['git', 'grep', '-En', pattern, '--', '*.gn', '*.gni'], 37 assert contents in lines[linenr - 1] 38 # Skip if it's already there. It could be before or after the match. 41 if lines[linenr - 2] == new: 58 for filename in headers: 59 filename = filename.strip() 60 if not (filename.endswith('.h') or filename.endswith('.hh')): 62 basename = os.path.basename(filename) 63 print(filename) [all …]
|
| /external/yapf/third_party/yapf_third_party/_ylib2to3/ |
| D | fixer_base.py | 27 filename = None # The filename (set by set_filename) variable in BaseFix 30 order = 'post' # Does the fixer prefer pre- or post-order traversal 31 explicit = False # Is this ignored by refactor.py -f all? 37 keep_line_order = False # For the bottom matcher: match with the 62 self.{pattern,PATTERN} in .match(). 69 def set_filename(self, filename): argument 70 """Set the filename. 74 self.filename = filename 76 def match(self, node): member in BaseFix 77 """Returns match for a given parse tree node. [all …]
|
| /external/grpc-grpc/tools/distrib/ |
| D | check_include_guards.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 47 self.ifndef_re = re.compile(r"#ifndef ([A-Z][A-Z_0-9]*)") 48 self.define_re = re.compile(r"#define ([A-Z][A-Z_0-9]*)") 50 r"#endif /\* (?: *\\\n *)?([A-Z][A-Z_0-9]*) (?:\\\n *)?\*/$" 52 self.endif_re = re.compile(r"#endif // ([A-Z][A-Z_0-9]*)") 118 match = self.ifndef_re.search(fcontents) 119 if not match: 122 if match.lastindex is None: 124 self.fail(fpath, match.re, match.string, "", "", False) 128 running_guard = match.group(1) [all …]
|
| /external/python/cpython3/Lib/ |
| D | fnmatch.py | 1 """Filename matching with shell patterns. 3 fnmatch(FILENAME, PATTERN) matches according to the local convention. 4 fnmatchcase(FILENAME, PATTERN) always takes case in account. 20 """Test whether FILENAME matches PATTERN. 29 An initial period in FILENAME is not special. 30 Both FILENAME and PATTERN are first case-normalized 32 If you don't want this, use fnmatchcase(FILENAME, PATTERN). 41 pat_str = str(pat, 'ISO-8859-1') 43 res = bytes(res_str, 'ISO-8859-1') 46 return re.compile(res).match [all …]
|
| /external/libcups/tools/ |
| D | ipptool.c | 6 * Copyright © 2007-2021 by Apple Inc. 7 * Copyright © 1997-2007 by Easy Software Products. 17 #include <cups/cups-private.h> 40 #define MAX_MONITOR 10 // Maximum number of MONITOR-PRINTER-STATE EXPECT directives 61 IPPTOOL_OUTPUT_CSV /* Comma-separated values output */ 66 IPPTOOL_WITH_LITERAL = 0, /* Match string is a literal value */ 67 IPPTOOL_WITH_ALL = 1, /* Must match all values */ 68 IPPTOOL_WITH_REGEX = 2, /* Match string is a regular expression */ 69 IPPTOOL_WITH_HOSTNAME = 4, /* Match string is a URI hostname */ 70 IPPTOOL_WITH_RESOURCE = 8, /* Match string is a URI resource */ [all …]
|
| /external/pytorch/torchgen/ |
| D | code_template.py | 7 # match $identifier or ${identifier} and replace with value in env 12 # if the identifier is on a line starting with non-whitespace and a list 22 filename: str 25 def from_file(filename: str) -> CodeTemplate: 26 with open(filename) as f: 27 return CodeTemplate(f.read(), filename) 29 def __init__(self, pattern: str, filename: str = "") -> None: 31 self.filename = filename 35 ) -> str: 39 def lookup(v: str) -> object: [all …]
|
| /external/pdfium/testing/tools/ |
| D | api_check.py | 3 # Use of this source code is governed by a BSD-style license that can be 10 duplicates, and they match each other. It also checks that the order in 20 def _IsValidFunctionName(function, filename): argument 23 if function.startswith('FSDK_') and filename == 'fpdf_ext.h': 25 if function.startswith('FORM_') and filename == 'fpdf_formfill.h': 30 def _FindFunction(function_snippet, filename): argument 34 assert _IsValidFunctionName(function, filename) 38 def _GetExportsFromHeader(dirname, filename): argument 39 with open(os.path.join(dirname, filename)) as f: 47 functions.append(_FindFunction(split_line[0], filename)) [all …]
|
| /external/sdv/vsomeip/third_party/boost/mpl/doc/src/refmanual/ |
| D | refmanual.py | 1 # Copyright (c) Aleksey Gurtovoy 2001-2009 19 underline = underlines[len(parts) - 1] * len(parts[-1]) 21 hidden_target = '.. _`label-%s`:' % '-'.join( parts ) 22 return '\n%s\n%s\n%s\n\n' % (parts[-1], underline, hidden_target ) 24 return '\n%s\n%s\n\n' % (parts[-1], underline ) 29 return '%s.rst' % '-'.join( [x.split(' ')[0] for x in parts] ) 38 else: ref = '/'.join( page.split('.')[0].split('-') ) 45 if ref.find( '/' ) == -1: 46 … ref = ' '.join( filter( lambda x: len( x.strip() ) > 0, re.split( '([A-Z][a-z]+)', ref ) ) ) 52 def __write_index( filename, index ): argument [all …]
|