| /external/pigweed/pw_presubmit/py/pw_presubmit/ |
| D | format_code.py | 9 # https://www.apache.org/licenses/LICENSE-2.0 16 """Checks and fixes formatting for source files. 18 This uses clang-format, gn format, gofmt, and python -m yapf to format source 83 def _ensure_newline(orig: bytes) -> bytes: 89 def _diff(path, original: bytes, formatted: bytes) -> str: 107 ) -> str | None: 122 ) -> dict[Path, str]: 135 ) -> dict[Path, str]: 136 """Adapts the formatting check API to work with this presubmit tooling.""" 147 ) -> dict[Path, str]: [all …]
|
| /external/cronet/third_party/libc++/src/test/std/time/time.syn/ |
| D | formatter.year_month_day.pass.cpp | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 9 // UNSUPPORTED: no-localization 10 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME 12 // TODO FMT This test should not require std::to_chars(floating-point) 13 // XFAIL: availability-fp_to_chars-missing 18 // REQUIRES: locale.fr_FR.UTF-8 19 // REQUIRES: locale.ja_JP.UTF-8 43 check(SV("1970-01-31"), in test_no_chrono_specs() [all …]
|
| D | formatter.year_month_weekday_last.pass.cpp | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 9 // UNSUPPORTED: no-localization 10 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME 12 // TODO FMT This test should not require std::to_chars(floating-point) 13 // XFAIL: availability-fp_to_chars-missing 15 // REQUIRES: locale.fr_FR.UTF-8 16 // REQUIRES: locale.ja_JP.UTF-8 40 check(SV("1970/Jan/Mon[last]"), in test_no_chrono_specs() [all …]
|
| D | formatter.year_month_weekday.pass.cpp | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 9 // UNSUPPORTED: no-localization 10 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME 12 // TODO FMT This test should not require std::to_chars(floating-point) 13 // XFAIL: availability-fp_to_chars-missing 15 // REQUIRES: locale.fr_FR.UTF-8 16 // REQUIRES: locale.ja_JP.UTF-8 40 check(SV("1970/Jan/Mon[1]"), in test_no_chrono_specs() [all …]
|
| D | formatter.year_month_day_last.pass.cpp | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 9 // UNSUPPORTED: no-localization 10 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME 12 // TODO FMT This test should not require std::to_chars(floating-point) 13 // XFAIL: availability-fp_to_chars-missing 15 // REQUIRES: locale.fr_FR.UTF-8 16 // REQUIRES: locale.ja_JP.UTF-8 40 check(SV("1970/Jan/last"), in test_no_chrono_specs() [all …]
|
| D | formatter.hh_mm_ss.pass.cpp | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 9 // UNSUPPORTED: no-localization 10 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME 12 // XFAIL: availability-fp_to_chars-missing 14 // REQUIRES: locale.fr_FR.UTF-8 15 // REQUIRES: locale.ja_JP.UTF-8 45 check(SV("00:00:00.000"), SV("{}"), std::chrono::hh_mm_ss{0ms}); in test_no_chrono_specs() 46 check(SV("*00:00:00.000*"), SV("{:*^14}"), std::chrono::hh_mm_ss{0ms}); in test_no_chrono_specs() [all …]
|
| D | formatter.month.pass.cpp | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 9 // UNSUPPORTED: no-localization 10 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME 12 // TODO FMT This test should not require std::to_chars(floating-point) 13 // XFAIL: availability-fp_to_chars-missing 15 // REQUIRES: locale.fr_FR.UTF-8 16 // REQUIRES: locale.ja_JP.UTF-8 40 check(SV("Jan"), SV("{}"), std::chrono::month{1}); in test_no_chrono_specs() [all …]
|
| /external/pigweed/pw_presubmit/ |
| D | docs.rst | 1 .. _module-pw_presubmit: 6 .. pigweed-module:: 10 checking and fixing code format. It also includes the presubmit check script for 20 unified interface for automatically formatting code in a variety of languages. 23 existing tools like ``clang-format``, and it’s simple to add support for new 24 languages. (Note: Bazel formatting requires ``buildifier`` to be present on your 25 system. If it's not Bazel formatting passes without checking.) 34 .. todo-check: disable 36 * Check code format of several languages including C, C++, and Python 47 * Forbid non-inclusive language [all …]
|
| /external/rust/crates/oneshot-uniffi/.github/workflows/ |
| D | style-sanity.yml | 1 name: Rust linting, formatting and audit 5 - .github/workflows/*.yml 6 - '**/*.rs' 7 - Cargo.toml 8 - Cargo.lock 11 clippy-linting: 12 runs-on: ubuntu-latest 14 - uses: actions/checkout@v3 16 - uses: actions-rs/toolchain@v1.0.6 22 - name: Clippy check [all …]
|
| /external/cldr/tools/ |
| D | README.md | 7 …-java-format) that is [configured in the Maven build](../.github/workflows/maven.yml) via a [Maven… 9 …check the formatting locally using the command `mvn --file=tools/pom.xml spotless:check`. You can… 13 …k for [`android-formatting.xml`](https://raw.githubusercontent.com/aosp-mirror/platform_developmen… 14 …-linting#_formatter) in "Applying formatter settings", but use the same `android-formatting.xml` l… 15 * IntelliJ: Use the [official plugin](https://plugins.jetbrains.com/plugin/8527-google-java-format/… 17 (This documentation is from the Unicode project [https://github.com/unicode-org/unicodetools](unico…
|
| /external/cronet/third_party/libc++/src/test/std/containers/container.adaptors/container.adaptors.format/ |
| D | format.functions.tests.h | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 30 void test_char_default(TestFunction check, ExceptionTest check_exception, auto&& input) { in test_char_default() argument 31 // Note when no range-underlying-spec is present the char is escaped, in test_char_default() 32 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{}"), input); in test_char_default() 35 check(SV("[H, e, l, l, o]"), SV("{::}"), input); in test_char_default() 37 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{::?}"), input); in test_char_default() 39 // ***** underlying has no format-spec in test_char_default() 41 // *** align-fill & width *** in test_char_default() [all …]
|
| /external/pigweed/pw_presubmit/py/pw_presubmit/format/ |
| D | core.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 14 """Formatting library core.""" 29 def _ensure_newline(orig: str) -> str: 37 def simple_diff(path: Path, original: str, formatted: str) -> str: 69 This type is returned by in-memory formatting check operations. 72 ok: A boolean indicating whether or not formatting was successful. 76 the formatting process. 89 ok: A boolean indicating whether or not formatting was successful. 90 diff: The resulting diff of applying code formatting, as a 91 human-readable string. [all …]
|
| /external/icu/icu4c/source/i18n/ |
| D | messageformat2.cpp | 26 // ------------------------------------------------------ 27 // Formatting 29 // The result of formatting a literal is just itself. 66 // Check if it's local or global in formatOperand() 72 // see https://github.com/unicode-org/message-format-wg/issues/299 in formatOperand() 76 // `var` is a local -- look it up in formatOperand() 81 // Variable wasn't found in locals -- check if it's global in formatOperand() 85 // Unbound variable -- set a resolution error in formatOperand() 88 …// https://github.com/unicode-org/message-format-wg/blob/main/spec/formatting.md#fallback-resoluti… in formatOperand() 126 optionsVector->adoptElement(resolvedOpt.orphan(), status); in resolveOptions() [all …]
|
| /external/accessibility-test-framework/src/main/java/com/google/android/apps/common/testing/accessibility/framework/ |
| D | AccessibilityHierarchyCheck.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 26 * Base class to check the accessibility of {@code ViewHierarchyElement}s. 36 * by this check, or {@code null} if there is not yet an article on these issues. 42 * the issues identified by this check, or {@code null} if there is not yet an article on these 50 /** Indicates the category to which the check belongs. */ 54 * Returns the {@link QuestionHandler} associated with this check. Default returns {@code null} if 55 * no QuestionHandler has been declared for this check 63 * Generates a static human-readable title message for the check, supporting standard HTML 64 * formatting markup. 66 * @return a localized {@link CharSequence} of the check title message [all …]
|
| D | AccessibilityHierarchyCheckResult.java | 18 * Result generated when an accessibility check runs on a {@code ViewHierarchyElement}. 30 * @param checkClass The class of the check reporting the error 53 * @param checkClass The class of the check reporting the error 90 AccessibilityHierarchyCheck check = in fromProto() local 92 checkNotNull(check, "Failed to resolve check class: %s", proto.getSourceCheckClass()); in fromProto() 109 check.getClass(), type, element, resultId, metadata, answersBuilder.build()); in fromProto() 114 * generated this result, which may contain formatting markup. 124 * generated this result, without formatting markup. 133 * Returns a human-readable message representing the result identified by the check, which may 134 * contain formatting markup [all …]
|
| /external/fmtlib/test/compile-error-test/ |
| D | CMakeLists.txt | 4 project(compile-error-test CXX) 19 # For non-error tests (we expect them to compile successfully): 44 # Generates a source file for non-error test with `non_error_test_content` and 45 # CMake project file with all error and single non-error test targets. 51 add_library(test-${test_name} ${test_name}.cc) 52 target_link_libraries(test-${test_name} PRIVATE fmt::fmt) 62 add_library(non-error-test non_error_test.cc) 63 target_link_libraries(non-error-test PRIVATE fmt::fmt) 78 "-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}" 79 "-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}" [all …]
|
| /external/vulkan-validation-layers/scripts/ |
| D | check_code_format.sh | 2 # Copyright (c) 2017-2019 Google Inc. 9 # http://www.apache.org/licenses/LICENSE-2.0 18 # Exits with non 0 exit code if formatting is needed. 27 FILES_TO_CHECK=$(git diff --name-only master | grep -v -E "^include/vulkan" | grep -E ".*\.(cpp|cc|… 28 COPYRIGHTED_FILES_TO_CHECK=$(git diff --name-only master | grep -v -E "^include/vulkan") 30 if [ -z "${FILES_TO_CHECK}" ]; then 31 echo -e "${GREEN}No source code to check for formatting.${NC}" 33 # Check source files in PR for clang-format errors 34 …FORMAT_DIFF=$(git diff -U0 master -- ${FILES_TO_CHECK} | python ./scripts/clang-format-diff.py -p1… 36 if [ ! -z "${FORMAT_DIFF}" ]; then [all …]
|
| /external/cronet/third_party/libc++/src/test/std/utilities/format/format.range/format.range.fmtmap/ |
| D | format.functions.tests.h | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 26 void test_char(TestFunction check, ExceptionTest check_exception) { in test_char() argument 29 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'}"), SV("{}"), input); in test_char() 31 // ***** underlying has no format-spec in test_char() 33 // *** align-fill & width *** in test_char() 34 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'} "), SV("{:35}"), input); in test_char() 35 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'}*****"), SV("{:*<35}"), input); in test_char() 36 check(SV("__{'a': 'A', 'b': 'B', 'c': 'C'}___"), SV("{:_^35}"), input); in test_char() [all …]
|
| /external/icu/libandroidicu/include/unicode/ |
| D | ulistformatter.h | 5 * Copyright (C) 2015-2016, International Business Machines 25 * \brief C API: Format a list in a locale-appropriate way. 27 * A UListFormatter is used to format a list of items in a locale-appropriate way, 72 * Conjunction formatting, e.g. "Alice, Bob, Charlie, and Delta". 79 * Disjunction (or alternative, or simply one of) formatting, e.g. 87 * Formatting of a list of values with units, e.g. "5 pounds, 12 ounces". 101 * Use list formatting with full words (no abbreviations) when possible. 108 * Use list formatting of typical length. 114 * Use list formatting of the shortest possible length. 130 * function returns immediately. The caller should check its output [all …]
|
| /external/icu/libicu/cts_headers/unicode/ |
| D | ulistformatter.h | 5 * Copyright (C) 2015-2016, International Business Machines 25 * \brief C API: Format a list in a locale-appropriate way. 27 * A UListFormatter is used to format a list of items in a locale-appropriate way, 72 * Conjunction formatting, e.g. "Alice, Bob, Charlie, and Delta". 79 * Disjunction (or alternative, or simply one of) formatting, e.g. 87 * Formatting of a list of values with units, e.g. "5 pounds, 12 ounces". 101 * Use list formatting with full words (no abbreviations) when possible. 108 * Use list formatting of typical length. 114 * Use list formatting of the shortest possible length. 130 * function returns immediately. The caller should check its output [all …]
|
| /external/icu/icu4c/source/i18n/unicode/ |
| D | ulistformatter.h | 5 * Copyright (C) 2015-2016, International Business Machines 25 * \brief C API: Format a list in a locale-appropriate way. 27 * A UListFormatter is used to format a list of items in a locale-appropriate way, 72 * Conjunction formatting, e.g. "Alice, Bob, Charlie, and Delta". 79 * Disjunction (or alternative, or simply one of) formatting, e.g. 87 * Formatting of a list of values with units, e.g. "5 pounds, 12 ounces". 101 * Use list formatting with full words (no abbreviations) when possible. 108 * Use list formatting of typical length. 114 * Use list formatting of the shortest possible length. 130 * function returns immediately. The caller should check its output [all …]
|
| /external/cronet/third_party/icu/source/i18n/unicode/ |
| D | ulistformatter.h | 5 * Copyright (C) 2015-2016, International Business Machines 25 * \brief C API: Format a list in a locale-appropriate way. 27 * A UListFormatter is used to format a list of items in a locale-appropriate way, 72 * Conjunction formatting, e.g. "Alice, Bob, Charlie, and Delta". 79 * Disjunction (or alternative, or simply one of) formatting, e.g. 87 * Formatting of a list of values with units, e.g. "5 pounds, 12 ounces". 101 * Use list formatting with full words (no abbreviations) when possible. 108 * Use list formatting of typical length. 114 * Use list formatting of the shortest possible length. 130 * function returns immediately. The caller should check its output [all …]
|
| /external/cronet/third_party/libc++/src/test/std/utilities/format/format.range/format.range.fmtset/ |
| D | format.functions.tests.h | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 28 void test_char_default(TestFunction check, ExceptionTest check_exception) { in test_char_default() argument 31 // Note when no range-underlying-spec is present the char is escaped, in test_char_default() 32 check(SV("{'a', 'b', 'c'}"), SV("{}"), input); in test_char_default() 34 check(SV("{a, b, c}"), SV("{::}"), input); in test_char_default() 36 check(SV("{'a', 'b', 'c'}"), SV("{::?}"), input); in test_char_default() 38 // ***** underlying has no format-spec in test_char_default() 40 // *** align-fill & width *** in test_char_default() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/utilities/format/format.range/format.range.formatter/ |
| D | format.functions.tests.h | 1 //===----------------------------------------------------------------------===// 4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 34 void test_char_default(TestFunction check, ExceptionTest check_exception, auto&& input) { in test_char_default() argument 35 // Note when no range-underlying-spec is present the char is escaped, in test_char_default() 36 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{}"), input); in test_char_default() 39 check(SV("[H, e, l, l, o]"), SV("{::}"), input); in test_char_default() 41 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{::?}"), input); in test_char_default() 43 // ***** underlying has no format-spec in test_char_default() 45 // *** align-fill & width *** in test_char_default() [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_locale.py | 14 tlocs = ("en_US.UTF-8", "en_US.ISO8859-1", "en_US") 23 tlocs = ("en_US.UTF-8", "en_US.US-ASCII", "en_US") 105 'negative_sign': '-', 116 # and a non-ASCII currency symbol. 131 'negative_sign': '-', 142 # Utility functions for formatting tests 171 self._test_format("%f", -42, grouping=1, out='-42.000000') 172 self._test_format("%+f", -42, grouping=1, out='-42.000000') 175 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20)) 177 self._test_format("%+10.f", -4200, grouping=1, [all …]
|