Home
last modified time | relevance | path

Searched full:braces (Results 1 – 25 of 1640) sorted by relevance

12345678910>>...66

/aosp_15_r20/external/executorch/backends/xnnpack/third-party/
H A Dxnnpack.buck.bzl22 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
50 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
72 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
98 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
122 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
155 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
197 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
231 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
261 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
291 … "-Wno-error=missing-braces", # required since the SGX toolchain does not have this by default
[all …]
/aosp_15_r20/external/trace-cmd/
H A DCODING_STYLE15 having the start of text line up to braces in the previous line is not
41 Brackets and braces
44 For all conditionals, the braces start on the same line:
66 But for functions, the braces should start on the following line:
73 It is also fine to not use braces for simple conditionals and loops.
86 But any complex or multiline conditional or loop should have braces even if it
96 Notice above that even though the else portion is simple, it too has braces as
97 the else and if blocks should match. If one is required to have braces, they
98 both should have braces.
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/clang-tidy/utils/
DBracesAroundStatement.h10 /// This file provides utilities to put braces around a statement.
21 /// A provider of fix-it hints to insert opening and closing braces. An instance
26 /// diagnostic in case braces cannot be inserted automatically.
32 /// Constructor for a valid hint that cannot insert braces automatically.
48 /// Indicates whether the hint provides fix-its to insert braces.
67 /// Create fix-it hints for braces that wrap the given statement when applied.
69 /// and adds line breaks before the braces accordingly.
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/
H A Dgroup.rs15 pub struct Braces<'a> { struct
46 pub fn parse_braces<'a>(input: &ParseBuffer<'a>) -> Result<Braces<'a>> { in parse_braces()
47 parse_delimited(input, Delimiter::Brace).map(|(span, content)| Braces { in parse_braces()
84 Delimiter::Brace => "expected curly braces", in parse_delimited()
151 /// Parse a set of curly braces and expose their content to subsequent parsers.
218 $crate::__private::Ok(braces) => {
219 $content = braces.content;
220 braces.token
/aosp_15_r20/external/clang/test/Parser/
H A Dwarn-dangling-else.cpp6 …{ if (a) if (b) d++; else e++; } // expected-warning {{add explicit braces to avoid dangling else}} in f()
7 …{ if (a) while (b) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dang… in f()
8 …{ if (a) switch (b) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dan… in f()
9 …{ if (a) for (;;) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dangl… in f()
10 …{ if (a) if (b) if (d) d++; else e++; else d--; } // expected-warning {{add explicit braces to avo… in f()
15 } else e++; // expected-warning {{add explicit braces to avoid dangling else}} in f()
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/
H A Dgroup.rs18 pub struct Braces<'a> { struct
55 pub fn parse_braces<'a>(input: &ParseBuffer<'a>) -> Result<Braces<'a>> { in parse_braces()
56 parse_delimited(input, Delimiter::Brace).map(|(span, content)| Braces { in parse_braces()
93 Delimiter::Brace => "expected curly braces", in parse_delimited()
160 /// Parse a set of curly braces and expose their content to subsequent parsers.
227 $crate::__private::Ok(braces) => {
228 $content = braces.content;
229 braces.token
/aosp_15_r20/external/rust/android-crates-io/crates/syn/src/
Dgroup.rs18 pub struct Braces<'a> { struct
55 pub fn parse_braces<'a>(input: &ParseBuffer<'a>) -> Result<Braces<'a>> { in parse_braces()
56 parse_delimited(input, Delimiter::Brace).map(|(span, content)| Braces { in parse_braces()
93 Delimiter::Brace => "expected curly braces", in parse_delimited()
160 /// Parse a set of curly braces and expose their content to subsequent parsers.
227 $crate::__private::Ok(braces) => {
228 $content = braces.content;
229 braces.token
/aosp_15_r20/build/make/tools/warn/
H A Dcpp_warn_patterns.py146 medium('Missing braces around initializer',
147 [r".*: warning: missing braces around initializer.*"]),
201 medium('Suggest adding braces around empty body',
202 [r".*: warning: suggest braces around empty body in an 'if' statement",
204 r".*: warning: suggest braces around empty body in an 'else' statement",
207 [r".*: warning: suggest explicit braces to avoid ambiguous 'else'",
422 low('Add braces to avoid dangling else',
423 [r".*: warning: add explicit braces to avoid dangling else"]),
430 low('Missing braces',
431 [r".*: warning: suggest braces around initialization of",
[all …]
/aosp_15_r20/external/auto/value/src/main/java/com/google/auto/value/processor/
H A DReformatter.java40 for (int start = 0, previous = 0, braces = 0, parens = 0, end = 0; in fixup()
54 braces++; in fixup()
57 braces--; in fixup()
77 // blank lines are inside parentheses or inside more than one set of braces. in fixup()
88 int indent = braces * 2; in fixup()
100 if (parens == 0 && braces < 2 && s.charAt(previous) != '\n' && out.length() > 0) { in fixup()
/aosp_15_r20/external/skia/src/sksl/transform/
H A DSkSLEliminateUnnecessaryBraces.cpp80 // We found two non-empty statements. We can't eliminate braces from in EliminateUnnecessaryBraces()
128 // If we find such a structure, we must disambiguate the else-clause by adding braces: in EliminateUnnecessaryBraces()
149 // will bind to the inner if-statement if we don't add braces. We must wrap in EliminateUnnecessaryBraces()
150 // the outer if-statement's true-clause in braces. in EliminateUnnecessaryBraces()
175 // First, we eliminate braces around single-statement child blocks wherever possible. in EliminateUnnecessaryBraces()
179 // The first pass can be overzealous, since it can remove so many braces that else- in EliminateUnnecessaryBraces()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/
H A D.uncrustify.cfg32 # Braces on the same line (Egyptian-style braces)
43 # Braces on same line as keywords that follow them - 'else' and the 'while' in 'do {} while ()';
51 # Functions are the exception and have braces on the next line
229 # Add braces in single-line statements
/aosp_15_r20/external/mbedtls/
H A D.uncrustify.cfg32 # Braces on the same line (Egyptian-style braces)
43 # Braces on same line as keywords that follow them - 'else' and the 'while' in 'do {} while ()';
51 # Functions are the exception and have braces on the next line
229 # Add braces in single-line statements
/aosp_15_r20/external/accompanist/spotless/
H A Dgreclipse.properties41 #Whether opening braces position shall be the next line.
43 groovy.formatter.braces.start=same
45 #Whether closing braces position shall be the next line.
47 groovy.formatter.braces.end=next
/aosp_15_r20/external/apache-xml/test/tests/perf-gold/output/
H A DoutputHhref.out20 <p>7. "#" <A href="&{text()}between#after">Note the amp-double-braces should be escaped differently…
47 <p>7. "#" <A href="&{text()}between#after">Note the amp-double-braces should be escaped differently…
74 <p>7. "#" <A href="&{text()}between#after">Note the amp-double-braces should be escaped differently…
102 <p>7. "#" <A href="&{text()}between#after">Note the amp-double-braces should be escaped differently…
129 <p>7. "#" <A href="&{text()}between#after">Note the amp-double-braces should be escaped differently…
/aosp_15_r20/external/python/cpython2/Tools/scripts/
Dtexcheck.py7 * Unbalanced or mismatched parenthesis, brackets, and braces.
101 braces = re.compile(r'({)|(})')
106 bracestack = [] # Stack of pending open braces
135 # Balance opening and closing braces
136 for open, close in braces.findall(line):
/aosp_15_r20/external/clang/include/clang/Format/
H A DFormat.h222 /// \brief Different ways to attach braces to their surrounding context.
224 /// Always attach braces to surrounding context.
226 /// Like ``Attach``, but break before braces on function, namespace and
229 /// Like ``Attach``, but break before braces on enum, function, and record
235 /// Always break before braces.
237 /// Always break before braces and add an extra level of indentation to
238 /// braces of control statements, not to those of class, function
250 /// \brief Precise control over the wrapping of braces.
272 /// \brief Indent the wrapped braces themselves.
/aosp_15_r20/external/arm-trusted-firmware/docs/process/
H A Dcoding-style.rst87 A space should also be used to separate parentheses and braces when they are not
127 Braces chapter
133 Braces follow the **Kernighan and Ritchie (K&R)** style, where the opening brace
164 used, braces must be placed around the statements that form the body of the
180 instead of omitting the optional braces around a single statement:
193 add braces around the conditional body when adding the ``bar++;`` statement then
/aosp_15_r20/packages/apps/TV/common/src/com/android/tv/common/
DSoftPreconditions.java48 * in square braces. Unmatched placeholders will be left as-is.
88 * in square braces. Unmatched placeholders will be left as-is.
128 * in square braces. Unmatched placeholders will be left as-is.
206 * square braces.
233 // if we run out of placeholders, append the extra args in square braces in format()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/aot/
H A Dtest.cc34 #include "{{TFCOMPILE_HEADER}}" // NOLINT(whitespace/braces)
45 #define CPP_CLASS {{TFCOMPILE_CPP_CLASS}} // NOLINT(whitespace/braces)
46 #define TEST_NAME {{TFCOMPILE_NAME}}Test // NOLINT(whitespace/braces)
47 #define BM_NAME BM_{{TFCOMPILE_NAME}} // NOLINT(whitespace/braces)
/aosp_15_r20/external/trusty/arm-trusted-firmware/docs/process/
Dcoding-style.rst90 A space should also be used to separate parentheses and braces when they are not
130 Braces chapter
136 Braces follow the **Kernighan and Ritchie (K&R)** style, where the opening brace
167 used, braces must be placed around the statements that form the body of the
183 instead of omitting the optional braces around a single statement:
196 add braces around the conditional body when adding the ``bar++;`` statement then
/aosp_15_r20/external/clang/test/SemaCXX/
H A Dcxx0x-initializer-scalars.cpp58 return {1}; // expected-warning {{braces around scalar init}} in direct_usage()
73 takes_int({1}); // expected-warning {{braces around scalar init}} in function_call()
80 …(overloaded({0})) == sizeof(one), "bad overload"); // expected-warning {{braces around scalar init… in overloaded_call()
81 …verloaded({0.0})) == sizeof(two), "bad overload"); // expected-warning {{braces around scalar init… in overloaded_call()
/aosp_15_r20/external/clang/docs/
H A DClangFormatStyleOptions.rst349 * ``bool IndentBraces`` Indent the wrapped braces themselves.
377 Always attach braces to surrounding context.
380 Like ``Attach``, but break before braces on function, namespace and
384 Like ``Attach``, but break before braces on enum, function, and record
392 Always break before braces.
395 Always break before braces and add an extra level of indentation to
396 braces of control statements, not to those of class, function
/aosp_15_r20/frameworks/base/tools/codegen/src/com/android/codegen/
H A DUtils.kt52 var braces = 0 in hasUnbalancedCurlyBrace() variable
54 if (it == '{') braces++ in hasUnbalancedCurlyBrace()
55 if (it == '}') braces-- in hasUnbalancedCurlyBrace()
56 if (braces < 0) return true in hasUnbalancedCurlyBrace()
/aosp_15_r20/external/skia/site/docs/dev/contrib/
H A Dstyle.md215 ## Braces section
217 Open braces don't get a newline. `else` and `else if` appear on same line as
218 opening and closing braces unless preprocessor conditional compilation
219 interferes. Braces are always used with `if`, `else`, `while`, `for`, and `do`.
261 parentheses and braces:
/aosp_15_r20/external/google-styleguide/cpplint/
H A Dcpplint_unittest.py532 # NOLINT, NOLINTNEXTLINE silences the readability/braces warning for "};".
1627 'Extra space before [ [whitespace/braces] [5]'))
1663 ' [readability/braces] [4]')
1985 # Braces shouldn't be followed by a ; unless they're defining a struct
2383 ' [whitespace/braces] [4]')
2409 ' [whitespace/braces] [4]'))
2501 ' [whitespace/braces] [5]')
2503 ' [whitespace/braces] [5]')
2508 ' [whitespace/braces] [5]')
2521 'You don\'t need a ; after a } [readability/braces] [4]')
[all …]

12345678910>>...66