Searched +refs:clang +refs:format +refs:style (Results 1 – 25 of 323) sorted by relevance
12345678910>>...13
| /external/clang/docs/ |
| D | ClangFormat.rst | 13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used 14 to format C/C++/Obj-C code. 18 $ clang-format -help 19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code. 27 USAGE: clang-format [options] [<file> ...] 31 Clang-format options: 33 -assume-filename=<string> - When reading from stdin, clang-format assumes this 34 filename to look for a style config file (with 35 -style=file) and to determine the language. 37 clang-format from an editor integration [all …]
|
| D | ClangFormatStyleOptions.rst | 5 :doc:`ClangFormatStyleOptions` describes configurable formatting style options 8 When using :program:`clang-format` command line utility or 9 ``clang::format::reformat(...)`` functions from code, one can either use one of 11 custom style by configuring specific style options. 14 Configuring Style with clang-format 17 :program:`clang-format` supports two ways to provide custom style options: 18 directly specify style configuration in the ``-style=`` command line option or 19 use ``-style=file`` and put style configuration in the ``.clang-format`` or 20 ``_clang-format`` file in the project directory. 22 When using ``-style=file``, :program:`clang-format` for each input file will [all …]
|
| /external/sandboxed-api/sandboxed_api/tools/clang_generator/ |
| D | emitter_base.cc | 95 clang::format::FormatStyle style = in ReformatGoogleStyle() local 96 clang::format::getGoogleStyle(clang::format::FormatStyle::LK_Cpp); in ReformatGoogleStyle() 97 style.DerivePointerAlignment = false; in ReformatGoogleStyle() 98 style.PointerAlignment = clang::format::FormatStyle::PAS_Left; in ReformatGoogleStyle() 100 style.ColumnLimit = column_limit; in ReformatGoogleStyle() 103 clang::tooling::Replacements replacements = clang::format::reformat( in ReformatGoogleStyle() 104 style, code, llvm::ArrayRef(clang::tooling::Range(0, code.size())), in ReformatGoogleStyle() 108 clang::tooling::applyAllReplacements(code, replacements); in ReformatGoogleStyle() 120 std::vector<std::string> GetNamespacePath(const clang::TypeDecl* decl) { in GetNamespacePath() 123 if (const auto* nd = llvm::dyn_cast<clang::NamespaceDecl>(ctx)) { in GetNamespacePath() [all …]
|
| /external/cronet/stable/third_party/libc++/src/utils/ |
| D | clang-format-merge-driver.sh | 28 clang-format --style=file --assume-filename="$path" < "$base" > "$base.tmp" 31 clang-format --style=file --assume-filename="$path" < "$current" > "$current.tmp" 34 clang-format --style=file --assume-filename="$path" < "$other" > "$other.tmp"
|
| /external/cronet/tot/third_party/libc++/src/utils/ |
| D | clang-format-merge-driver.sh | 28 clang-format --style=file --assume-filename="$path" < "$base" > "$base.tmp" 31 clang-format --style=file --assume-filename="$path" < "$current" > "$current.tmp" 34 clang-format --style=file --assume-filename="$path" < "$other" > "$other.tmp"
|
| /external/iamf_tools/ |
| D | CONTRIBUTING.md | 15 ## Coding style 20 The coding style used by this project is enforced with clang-format using the 22 [.clang-format](.clang-format) 25 # Apply clang-format to modified .cc, .h files 26 $ clang-format -i --style=file \
|
| /external/mesa3d/docs/ |
| D | codingstyle.rst | 4 Mesa is over 20 years old and the coding style has evolved over time. 5 Some old parts use a style that's a bit out of date. Different sections 6 of mesa can use different coding style as set in the local EditorConfig 9 try following the format of existing, neighboring code. 11 ``clang-format`` 14 A growing number of drivers and components are adopting ``clang-format`` 17 You can re-format the code for the components that have opted-in to the 18 formatting enforcement (listed in ``.clang-format-include``) by simply 19 running ``ninja -C build/ clang-format``. 33 Add this to your ``.vimrc`` to automatically format any C & C++ file [all …]
|
| /external/angle/third_party/spirv-tools/src/utils/ |
| D | check_code_format.sh | 27 CLANG_FORMAT=${CLANG_FORMAT:-clang-format} 29 echo missing clang-format: set CLANG_FORMAT or put clang-format in the PATH 34 CLANG_FORMAT_DIFF=${CLANG_FORMAT_DIFF:-./utils/clang-format-diff.py} 36 …echo missing clang-format-diffy.py: set CLANG_FORMAT_DIFF or put it in ./utils/clang-format-diff.py 50 …${BASE_BRANCH} -- ${FILES_TO_CHECK} | python3 "${CLANG_FORMAT_DIFF}" -p1 -style=file -binary "$CLA…
|
| /external/conscrypt/srcgen/ |
| D | generate_android_src.sh | 54 CLANG_STABLE_BIN=${ANDROID_BUILD_TOP}/prebuilts/clang/host/linux-x86/clang-stable/bin 55 ${ANDROID_BUILD_TOP}/tools/repohooks/tools/clang-format.py --fix \ 56 --clang-format ${CLANG_STABLE_BIN}/clang-format \ 57 --git-clang-format ${CLANG_STABLE_BIN}/git-clang-format \ 58 --style file \
|
| /external/swiftshader/src/ |
| D | clang-format-all.sh | 7 CLANG_FORMAT=${CLANG_FORMAT:-clang-format} 14 Usage: ./clang-format-all.sh [-ah] 17 -a, --all Format all files (default is to format only files active in a git CL) 41 …nd ${DIR} -iname "*.hpp" -o -iname "*.cpp" -o -iname "*.inl" | xargs ${CLANG_FORMAT} -i -style=file 42 …nd ${DIR} -iname "*.hpp" -o -iname "*.cpp" -o -iname "*.inl" | xargs ${CLANG_FORMAT} -i -style=file 49 ${CLANG_FORMAT} -i -style=file "$BASEDIR/$FILE"
|
| /external/libwebm/ |
| D | CONTRIBUTING.md | 28 The C++ code style is based on the 30 `clang-format --style=Google`. `clang-format -i --style=file` can be used to 31 format individual files, it will use the settings from `.clang-format`. 34 [cmake-format](https://cmake-format.readthedocs.io/en/latest/). `cmake-format 35 -i` can be used to format individual files, it will use the settings from 36 `.cmake-format.py`.
|
| /external/expat/expat/ |
| D | apply-clang-format.sh | 39 -style=file 51 type -P clang-format 53 clang-format --version 55 clang-format "${args[@]}" -- "${files[@]}"
|
| /external/openthread/script/ |
| D | make-pretty | 156 | xargs -n3 -P"$OT_BUILD_JOBS" script/clang-format -style=file -i -verbose 166 | xargs -n3 -P"$OT_BUILD_JOBS" script/clang-format-check 178 && ../../script/clang-tidy -j"$OT_BUILD_JOBS" "${OT_CLANG_TIDY_FIX_DIRS[@]}" -fix) 190 && ../../script/clang-tidy -j"$OT_BUILD_JOBS" "${OT_CLANG_TIDY_FIX_DIRS[@]}") 220 …| xargs -n10 -P"$OT_BUILD_JOBS" python3 -m yapf --verbose --style '{based_on_style: google, column… 230 …| xargs -n10 -P"$OT_BUILD_JOBS" python3 -m yapf --verbose --style '{based_on_style: google, column…
|
| /external/ot-br-posix/script/ |
| D | make-pretty | 85 | xargs -n3 -P"$OT_BUILD_JOBS" script/clang-format -style=file -i -verbose 95 | xargs -n3 -P"$OT_BUILD_JOBS" script/clang-format-check 125 | xargs -n10 -P"$OT_BUILD_JOBS" python3 -m yapf --verbose --style google -ipr 135 | xargs -n10 -P"$OT_BUILD_JOBS" python3 -m yapf --verbose --style google -dpr
|
| /external/flatbuffers/ |
| D | Formatters.md | 8 - DONT format/lint the generated code. 14 …`clang-format` as it's formatter. Run the following script `sh scripts/clang-format-git.sh`, and i…
|
| /external/cronet/stable/base/third_party/cityhash_v103/ |
| D | README.chromium | 17 - 002-fix-include-guards.patch: Fix include guards to follow Chromium style. 21 - 004-google-style.patch: Use nullptr, remove 'using namespace std;'. 22 - 005-bswap-clang.patch: Use the builtins for bswap when compiling with clang. 23 - clang-format
|
| /external/cronet/tot/base/third_party/cityhash_v103/ |
| D | README.chromium | 17 - 002-fix-include-guards.patch: Fix include guards to follow Chromium style. 21 - 004-google-style.patch: Use nullptr, remove 'using namespace std;'. 22 - 005-bswap-clang.patch: Use the builtins for bswap when compiling with clang. 23 - clang-format
|
| /external/mesa3d/src/vulkan/runtime/radix_sort/shaders/ |
| D | prefix.comp | 2 // Use of this source code is governed by a BSD-style license that can be 11 // clang-format off 16 // clang-format on 52 // clang-format off 57 // clang-format on 103 // clang-format off 106 // clang-format on
|
| D | scatter_0_odd.comp | 2 // Use of this source code is governed by a BSD-style license that can be 11 // clang-format off 20 // clang-format on
|
| D | scatter_1_odd.comp | 2 // Use of this source code is governed by a BSD-style license that can be 11 // clang-format off 20 // clang-format on
|
| D | scatter_1_even.comp | 2 // Use of this source code is governed by a BSD-style license that can be 11 // clang-format off 20 // clang-format on
|
| D | scatter_0_even.comp | 2 // Use of this source code is governed by a BSD-style license that can be 11 // clang-format off 20 // clang-format on
|
| /external/pdfium/ |
| D | .clang-format | 1 # Defines the Chromium style for automatic reformatting. 2 # http://clang.llvm.org/docs/ClangFormatStyleOptions.html 6 # 'vector<vector<int>>'. ('Auto' means that clang-format will only use 11 # the Chromium style (is implied by BasedOnStyle: Chromium).
|
| /external/drm_hwcomposer/.ci/ |
| D | .gitlab-ci-checkcommit.sh | 39 check_tool_installed clang-format-diff-19 52 author=$(git show -s --format='%an <%ae>' "$h") 58 committer=$(git show -s --format='%cn <%ce>' "$h") 64 git diff -U0 "$h" -- | clang-format-diff-19 -p 1 -style=file > /tmp/format-fixup.patch 65 if [ -s /tmp/format-fixup.patch ]; then 66 cat /tmp/format-fixup.patch >&2
|
| /external/grpc-grpc/doc/ |
| D | cpp-style-guide.md | 4 The majority of gRPC's C++ requirements are drawn from the [Google C++ style 6 as in C, layout rules are defined by clang-format, and all code 7 should be passed through clang-format. A (docker-based) script to do
|
12345678910>>...13