/aosp_15_r20/external/clang/docs/ |
H A 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 …]
|
H A 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 …]
|
H A D | LibFormat.rst | 7 as some basic style discussions. 9 If you just want to use `clang-format` as a tool or integrated into an editor, 31 formatting. A list of options can be found under :ref:`style-options`. 39 The style options describe specific formatting options that can be used in 40 order to make `ClangFormat` comply with different style guides. Currently, 41 two style guides are hard-coded: 45 /// \brief Returns a format style complying with the LLVM coding standards: 49 /// \brief Returns a format style complying with Google's C++ style guide: 54 through the `-style` option.
|
H A D | ClangTools.rst | 21 - ``cd llvm/tools/clang/tools`` 22 - ``svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra`` 26 - ``cd llvm/tools/clang/tools`` 27 - ``git clone http://llvm.org/git/clang-tools-extra.git extra`` 50 common refactoring and rewriting toolkit-style library is also part of 73 ``clang-check`` 81 fixit-hints offered by clang. See :doc:`HowToSetupToolingForLLVM` for 82 instructions on how to setup and used `clang-check`. 84 ``clang-format`` 87 Clang-format is both a :doc:`library <LibFormat>` and a :doc:`stand-alone tool [all …]
|
/aosp_15_r20/bootable/recovery/ |
H A D | .clang-format | 1 # bootable/recovery project uses repohook to apply `clang-format` to the changed lines, with the 2 # local style file in `.clang-format`. This will be triggered automatically with `repo upload`. 3 # Alternatively, one can stage and format a change with `git clang-format` directly. 6 # $ git clang-format --style file 8 # Or to format a committed change. 10 # $ git clang-format --style file HEAD~1 12 # `--style file` will pick up the local style file in `.clang-format`. This can be configured as the 15 # $ git config --local clangFormat.style file 17 # Note that `repo upload` calls the `clang-format` binary in Android repo (i.e. 18 # `$ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/clang-stable/bin/clang-format`), which might [all …]
|
/aosp_15_r20/system/tools/aidl/ |
D | aidl-format.sh | 19 clang_format=clang-format 25 function _aidl-format() ( 28 function find-aidl-format-style() { 32 if find "$path" -maxdepth 1 -mindepth 1 -name .aidl-format | grep "."; then 74 function apply-clang-format() { 76 local style="$2" 78 local styletext="$([ -f "$style" ] && cat "$style" | tr '\n' ',' 2> /dev/null)" 80 --style='{BasedOnStyle: Google, 117 function format-one() { 120 local style="$3" [all …]
|
/aosp_15_r20/packages/modules/Bluetooth/system/doc/ |
D | style_guide.md | 2 This document outlines the coding conventions and code style used in Fluoride. 3 Its primary purpose is to provide explicit guidance on style so that developers 4 are consistent with one another and spend less time debating style. 36 pointer and then back to the original integer. This style of code is typically 98 example, the following style is preferred: 265 Code formatting is done automatically using clang-format. 267 The style file is located at the root of the source tree in .clang-format. The 268 -style=file option instructs clang-format to look for this file. You may find 269 clang-format --help useful for more advanced usage. The [Online clang-format 270 Documentation](http://clang.llvm.org/docs/ClangFormat.html) can also be helpful. [all …]
|
/aosp_15_r20/external/mesa3d/docs/ |
H A 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 …]
|
/aosp_15_r20/external/sandboxed-api/sandboxed_api/tools/clang_generator/ |
H A D | emitter.cc | 133 clang::format::FormatStyle style = in ReformatGoogleStyle() local 134 clang::format::getGoogleStyle(clang::format::FormatStyle::LK_Cpp); in ReformatGoogleStyle() 135 style.DerivePointerAlignment = false; in ReformatGoogleStyle() 136 style.PointerAlignment = clang::format::FormatStyle::PAS_Left; in ReformatGoogleStyle() 138 style.ColumnLimit = column_limit; in ReformatGoogleStyle() 141 clang::tooling::Replacements replacements = clang::format::reformat( in ReformatGoogleStyle() 142 style, code, llvm::ArrayRef(clang::tooling::Range(0, code.size())), in ReformatGoogleStyle() 146 clang::tooling::applyAllReplacements(code, replacements); in ReformatGoogleStyle() 190 std::vector<std::string> GetNamespacePath(const clang::TypeDecl* decl) { in GetNamespacePath() 193 if (const auto* nd = llvm::dyn_cast<clang::NamespaceDecl>(ctx)) { in GetNamespacePath() [all …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/utils/ |
H A 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"
|
/aosp_15_r20/prebuilts/checkstyle/ |
H A D | README.md | 3 Checkstyle is used by developers to validate Java code style and formatting, 11 1. To check style of entire specific files: 13 2. To check style of the lines modified in the latest commit: 50 Note that checkstyle does not always agree with clang-format, and so it's best 55 In `.clang-format` add the following to disable format checking and correcting 64 In some versions of clang-format, `DisableFormat` doesn't stop the sorting of 65 includes. So to fully disable clang-format from doing anything for Java files,
|
/aosp_15_r20/external/libwebm/ |
H A 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`.
|
/aosp_15_r20/external/vulkan-validation-layers/ |
H A D | CONTRIBUTING.md | 23 or csv format) to identify related checks that may be implemented simultaneously. 49 * Please read and adhere to the style and process [guidelines ](#coding-conventions-and-formatting)… 57 * Use the **[Google style guide](https://google.github.io/styleguide/cppguide.html)** for source co… 58 …* The column limit is 132 (as opposed to the default value 80). The clang-format tool will handle … 59 …* The indent is 4 spaces instead of the default 2 spaces. Again, the clang-format tool will handle… 62 a good reason is "This violates the style guide, but it improves type safety." 64 * Run **clang-format** on your changes to maintain consistent formatting 65 * There are `.clang-format` files present in the repository to define clang-format settings 66 which are found and used automatically by clang-format. 67 …* **clang-format** binaries are available from the LLVM orginization, here: [LLVM](https://clang.l… [all …]
|
/aosp_15_r20/external/swiftshader/src/ |
H A 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"
|
/aosp_15_r20/external/openthread/script/ |
H A 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…
|
/aosp_15_r20/frameworks/native/vulkan/ |
H A D | README.md | 11 We follow the [Chromium coding style](https://www.chromium.org/developers/coding-style) for naming … 13 Use "clang-format -style=file" to format all C/C++ code, except code imported verbatim from elsewhe…
|
/aosp_15_r20/external/ot-br-posix/script/ |
H A 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
|
/aosp_15_r20/external/pigweed/docs/style/ |
H A D | cpp.rst | 1 .. _docs-pw-style-cpp: 4 C++ style 6 The Pigweed C++ style guide is closely based on Google's external C++ Style 11 The Pigweed style guide only applies to Pigweed itself. It does not apply to 17 Pigweed style guide, but are separated out since it covers more general 18 embedded development beyond just C++ style. 33 Pigweed uses `clang-format <https://clang.llvm.org/docs/ClangFormat.html>`_ to 34 automatically format Pigweed source code. A ``.clang-format`` configuration is 36 `pw format` tool can be used to automatically format code. 40 ``clang-format`` prior to submission. Existing code may be reformatted at any [all …]
|
/aosp_15_r20/system/update_engine/ |
H A D | .clang-format | 17 # This is the .clang-format file used by all Brillo projects, conforming to the 18 # style guide defined by Brillo. To use this file create a *relative* symlink in 22 # See go/brillo-c++-style for details about the style guide. 41 # cpplint.py does smarter #include sorting than clang-format (the former ignores
|
/aosp_15_r20/external/conscrypt/srcgen/ |
H A 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 \
|
/aosp_15_r20/packages/modules/Bluetooth/ |
D | .clang-format | 18 # Below are some minor deviations from the default Google style to 22 # AOSP is based on google style with some modification commented below 35 # AOSP suggest 1, but ask to follow clang-format settings. CppLint ask for 2 38 # Allow clang-format to automatically fix more things 45 # Java format is handled by google-java-format
|
/aosp_15_r20/frameworks/base/cmds/incidentd/ |
H A D | README.md | 25 Use clang-format to style the file 27 clang-format -style=file -i <file list>
|
/aosp_15_r20/external/flatbuffers/ |
H A 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…
|
/aosp_15_r20/build/soong/docs/ |
H A D | tidy.md | 3 Android C/C++ source files can be checked by clang-tidy for issues like 4 coding style, error-prone/performance patterns, and static flow analysis. 6 [clang-tidy document](https://clang.llvm.org/extra/clang-tidy) 8 [clang-tidy checks](https://clang.llvm.org/extra/clang-tidy/checks/list.html). 12 The simplest way to enable clang-tidy checks is 18 This will turn on the global default to run clang-tidy for every required 19 C/C++ source file compilation. The global default clang-tidy checks 26 The default global clang-tidy checks and flags are defined in 30 ## Module clang-tidy properties 38 clang-tidy is enabled explicitly and with a different check list: [all …]
|
/aosp_15_r20/bootable/libbootloader/gbl/toolchain/ |
H A D | gbl_toolchain.bzl | 45 "--target={}".format(ctx.attr.target_system_triple), 50 ] + ["-I{}".format(inc) for inc in builtin_includes] + ctx.attr.cc_flags), 55 toolchain_identifier = "{}_id".format(ctx.attr.cc_toolchain_name), 60 compiler = "clang", 67 tools = [tool(path = gbl_llvm_tool_path("clang++"))], 76 tools = [tool(path = gbl_llvm_tool_path("clang"))], 83 tools = [tool(path = gbl_llvm_tool_path("clang++"))], 90 path = gbl_llvm_tool_path("clang++"), 98 path = gbl_llvm_tool_path("clang++"), 102 path = gbl_llvm_tool_path("clang"), [all …]
|