Home
last modified time | relevance | path

Searched +refs:clang +refs:format (Results 1 – 25 of 26920) sorted by relevance

12345678910>>...1077

/aosp_15_r20/external/clang/docs/
H A DClangFormat.rst13 :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
37 clang-format from an editor integration
41 fallback in case clang-format is invoked with
42 -style=file, but can not find the .clang-format
[all …]
H A DClangFormatStyleOptions.rst8 When using :program:`clang-format` command line utility or
9 ``clang::format::reformat(...)`` functions from code, one can either use one of
14 Configuring Style with clang-format
17 :program:`clang-format` supports two ways to provide custom style options:
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
23 try to find the ``.clang-format`` file located in the closest parent directory
27 The ``.clang-format`` file uses YAML format:
44 When :program:`clang-format` formats a file, it auto-detects the language using
[all …]
/aosp_15_r20/external/clang/tools/clang-format/
H A DCMakeLists.txt3 add_clang_tool(clang-format
14 target_link_libraries(clang-format
22 install(PROGRAMS clang-format-bbedit.applescript
23 DESTINATION share/clang
24 COMPONENT clang-format)
25 install(PROGRAMS clang-format-diff.py
26 DESTINATION share/clang
27 COMPONENT clang-format)
28 install(PROGRAMS clang-format-sublime.py
29 DESTINATION share/clang
[all …]
H A DClangFormat.cpp30 using clang::tooling::Replacements;
65 cl::desc(clang::format::StyleOptionHelpDescription),
110 namespace clang { namespace
111 namespace format { namespace
240 static bool format(StringRef FileName) { in format() function
317 OS << clang::getClangToolFullVersion("clang-format") << '\n'; in PrintVersion()
340 clang::format::configurationAsText(clang::format::getStyle( in main()
350 Error = clang::format::format("-"); in main()
353 Error = clang::format::format(FileNames[0]); in main()
362 Error |= clang::format::format(FileNames[i]); in main()
/aosp_15_r20/external/mesa3d/docs/
H A Dcodingstyle.rst9 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
34 (that has a .clang-format config) when you save it:
42 " Only format files that have a .clang-format in a parent folder
43 if !empty(findfile('.clang-format', '.;'))
[all …]
/aosp_15_r20/external/cronet/third_party/protobuf/objectivec/Tests/
H A DGPBMessageTests+Merge.m1 // Protocol Buffers - Google's data interchange format
270 // clang-format off
278 // clang-format on
281 // clang-format off
289 // clang-format on
292 // clang-format off
300 // clang-format on
303 // clang-format off
311 // clang-format on
314 // clang-format off
[all …]
/aosp_15_r20/external/protobuf/objectivec/Tests/
H A DGPBMessageTests+Merge.m1 // Protocol Buffers - Google's data interchange format
270 // clang-format off
278 // clang-format on
281 // clang-format off
289 // clang-format on
292 // clang-format off
300 // clang-format on
303 // clang-format off
311 // clang-format on
314 // clang-format off
[all …]
/aosp_15_r20/bootable/recovery/
H A D.clang-format1 # 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
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
20 # `/usr/bin/clang-format`). Specifying the file with `--binary` will ensure consistent results.
[all …]
/aosp_15_r20/external/llvm/test/CodeGen/PowerPC/
H A DBreakableToken-reduced.ll31 %"class.clang::format::BreakableStringLiteral" = type { %"class.clang::format::BreakableSingleLineT…
32 %"class.clang::format::BreakableSingleLineToken" = type { %"class.clang::format::BreakableToken", i…
33 %"class.clang::format::BreakableToken" = type { i32 (...)**, %"struct.clang::format::FormatToken"*,…
35clang::format::FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::Sou…
36 %"class.clang::Token" = type <{ i32, i32, i8*, i16, i16, [4 x i8] }>
37 %"class.clang::SourceRange" = type { %"class.clang::SourceLocation", %"class.clang::SourceLocation"…
38 %"class.clang::SourceLocation" = type { i32 }
42 %"struct.std::_Head_base.2" = type { %"class.clang::format::TokenRole"* }
43 %"class.clang::format::TokenRole" = type { i32 (...)**, %"struct.clang::format::FormatStyle"* }
59 %"struct.clang::format::FormatStyle" = type { i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, i8, i8, i32…
[all …]
/aosp_15_r20/external/mesa3d/
H A D.git-blame-ignore-revs13 # git log -1 --pretty=format:'%n# %s%n%H%n' >> .git-blame-ignore-revs $COMMIT
15 # pvr: Fix clang-format error.
18 # panfrost: Fix up some formatting for clang-format
21 # asahi: clang-format the world again
24 # perfetto: Add a .clang-format for the directory.
27 # panfrost/winsys: Clang-format
30 # panfrost: Re-run clang-format
33 # panvk: Clang-format
39 # mapi: clang-format _glapi_add_dispatch()
42 # radv: reformat according to its .clang-format
[all …]
/aosp_15_r20/external/protobuf/objectivec/
H A DGPBCodedOutputStream.m1 // Protocol Buffers - Google's data interchange format
67 [NSException raise:GPBCodedOutputStreamException_OutOfSpace format:@""];
73 [NSException raise:GPBCodedOutputStreamException_WriteFailed format:@""];
128 uint32_t fieldNumber, GPBWireFormat format) {
129 GPBWriteRawVarint32(state, GPBWireFormatMakeTag(fieldNumber, format));
198 #pragma clang diagnostic push
199 #pragma clang diagnostic ignored "-Wdirect-ivar-access"
455 // clang-format off
481 // clang-format on
484 // clang-format off
[all …]
/aosp_15_r20/external/cronet/third_party/protobuf/objectivec/
H A DGPBCodedOutputStream.m1 // Protocol Buffers - Google's data interchange format
67 [NSException raise:GPBCodedOutputStreamException_OutOfSpace format:@""];
73 [NSException raise:GPBCodedOutputStreamException_WriteFailed format:@""];
128 uint32_t fieldNumber, GPBWireFormat format) {
129 GPBWriteRawVarint32(state, GPBWireFormatMakeTag(fieldNumber, format));
198 #pragma clang diagnostic push
199 #pragma clang diagnostic ignored "-Wdirect-ivar-access"
455 // clang-format off
481 // clang-format on
484 // clang-format off
[all …]
/aosp_15_r20/packages/modules/Bluetooth/floss/build/
Dllvm-rename.sh34 …--install /usr/bin/clang clang /usr/bin/clang-${version} ${priorit…
35 … --slave /usr/bin/clang++ clang++ /usr/bin/clang++-${version} \
38 … --slave /usr/bin/clang-check clang-check /usr/bin/clang-check-${version} \
39 … --slave /usr/bin/clang-cl clang-cl /usr/bin/clang-cl-${version} \
40 … --slave /usr/bin/clang-cpp clang-cpp /usr/bin/clang-cpp-${version} \
41 … --slave /usr/bin/clang-format clang-format /usr/bin/clang-format-${version} \
42 …--slave /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff-${versio…
43 …--slave /usr/bin/clang-import-test clang-import-test /usr/bin/clang-import-test-${versio…
44 …--slave /usr/bin/clang-include-fixer clang-include-fixer /usr/bin/clang-include-fixer-${vers…
45 …--slave /usr/bin/clang-offload-bundler clang-offload-bundler /usr/bin/clang-offload-bundler-${ve…
[all …]
/aosp_15_r20/external/webrtc/sdk/objc/unittests/
H A Dnalu_rewriter_xctest.mm30 // clang-format off
37 // clang-format on
50 // clang-format off
60 // clang-format on
117 // clang-format off
121 // clang-format on
132 // clang-format off
138 // clang-format on
182 // clang-format off
187 // clang-format on
[all …]
/aosp_15_r20/external/bazelbuild-rules_rust/examples/nix_cross_compiling/bazel/toolchain_rules/cc_tools/
H A Dclang.bzl1 """ CC Compile ActionConfigs for clang """
66 clang,
79 clang (string): Path to clang binaries.
104 "--target={}".format(target),
112 "-fdebug-prefix-map=${{pwd}}={}".format(remap_path_prefix),
152 tools = [tool(path = "{}/bin/clang".format(clang))],
164 tools = [tool(path = "{}/bin/clang".format(clang))],
176 tools = [tool(path = "{}/bin/clang".format(clang))],
188 tools = [tool(path = "{}/bin/clang".format(clang))],
200 tools = [tool(path = "{}/bin/clang".format(clang))],
/aosp_15_r20/prebuilts/clang/host/linux-x86/kleaf/
Dclang_toolchain_repository.bzl15 """Defines a repository that provides all clang toolchains."""
32 """.format(repository_ctx.attr.name))
36 All clang toolchains used by Kleaf.
42 '''.format(
68 name = "1_user_{{}}_clang_toolchain".format(arch.name),
72 '''.format(
89 fail("FATAL: {} does not start with {}/".format(
115 "lib/clang/*/include/**",
122 name = "1_user_{{}}_clang_toolchain".format(arch.name),
127 '''.format(
[all …]
/aosp_15_r20/external/skia/
H A D.clang-format3 # change. Make sure to install git-clang-format [1] by adding it to your
7 # $ git clang-format
13 # Some clients are running on older versions of clang-format, so please limit
14 # flag choices to options supported by clang-format version 10 and below.
15 # - XcodeClangFormat: clang-format 10
16 # - bin/clang-format: clang-format 11
17 # - brew: clang-format 14
19 …//source.chromium.org/chromium/chromium/src/+/HEAD:third_party/clang-format/script/git-clang-format
/aosp_15_r20/prebuilts/vndk/v33/arm/include/generated-headers/hardware/interfaces/sensors/aidl/android.hardware.sensors-V1-ndk-source/gen/include/aidl/android/hardware/sensors/
DISensors.h61 …::aidl::android::hardware::sensors::ISensors::SharedMemInfo::SharedMemFormat format = ::aidl::andr…
69 …return std::tie(type, format, size, memoryHandle) != std::tie(rhs.type, rhs.format, rhs.size, rhs.…
72 …return std::tie(type, format, size, memoryHandle) < std::tie(rhs.type, rhs.format, rhs.size, rhs.m…
75 …return std::tie(type, format, size, memoryHandle) <= std::tie(rhs.type, rhs.format, rhs.size, rhs.…
78 …return std::tie(type, format, size, memoryHandle) == std::tie(rhs.type, rhs.format, rhs.size, rhs.…
81 …return std::tie(type, format, size, memoryHandle) > std::tie(rhs.type, rhs.format, rhs.size, rhs.m…
84 …return std::tie(type, format, size, memoryHandle) >= std::tie(rhs.type, rhs.format, rhs.size, rhs.…
92 os << ", format: " << ::android::internal::ToString(format); in toString()
191 #pragma clang diagnostic push
192 #pragma clang diagnostic ignored "-Wc++17-extensions"
[all …]
/aosp_15_r20/prebuilts/vndk/v33/x86_64/include/generated-headers/hardware/interfaces/sensors/aidl/android.hardware.sensors-V1-ndk-source/gen/include/aidl/android/hardware/sensors/
DISensors.h61 …::aidl::android::hardware::sensors::ISensors::SharedMemInfo::SharedMemFormat format = ::aidl::andr…
69 …return std::tie(type, format, size, memoryHandle) != std::tie(rhs.type, rhs.format, rhs.size, rhs.…
72 …return std::tie(type, format, size, memoryHandle) < std::tie(rhs.type, rhs.format, rhs.size, rhs.m…
75 …return std::tie(type, format, size, memoryHandle) <= std::tie(rhs.type, rhs.format, rhs.size, rhs.…
78 …return std::tie(type, format, size, memoryHandle) == std::tie(rhs.type, rhs.format, rhs.size, rhs.…
81 …return std::tie(type, format, size, memoryHandle) > std::tie(rhs.type, rhs.format, rhs.size, rhs.m…
84 …return std::tie(type, format, size, memoryHandle) >= std::tie(rhs.type, rhs.format, rhs.size, rhs.…
92 os << ", format: " << ::android::internal::ToString(format); in toString()
191 #pragma clang diagnostic push
192 #pragma clang diagnostic ignored "-Wc++17-extensions"
[all …]
/aosp_15_r20/prebuilts/vndk/v33/arm64/include/generated-headers/hardware/interfaces/sensors/aidl/android.hardware.sensors-V1-ndk-source/gen/include/aidl/android/hardware/sensors/
DISensors.h61 …::aidl::android::hardware::sensors::ISensors::SharedMemInfo::SharedMemFormat format = ::aidl::andr…
69 …return std::tie(type, format, size, memoryHandle) != std::tie(rhs.type, rhs.format, rhs.size, rhs.…
72 …return std::tie(type, format, size, memoryHandle) < std::tie(rhs.type, rhs.format, rhs.size, rhs.m…
75 …return std::tie(type, format, size, memoryHandle) <= std::tie(rhs.type, rhs.format, rhs.size, rhs.…
78 …return std::tie(type, format, size, memoryHandle) == std::tie(rhs.type, rhs.format, rhs.size, rhs.…
81 …return std::tie(type, format, size, memoryHandle) > std::tie(rhs.type, rhs.format, rhs.size, rhs.m…
84 …return std::tie(type, format, size, memoryHandle) >= std::tie(rhs.type, rhs.format, rhs.size, rhs.…
92 os << ", format: " << ::android::internal::ToString(format); in toString()
191 #pragma clang diagnostic push
192 #pragma clang diagnostic ignored "-Wc++17-extensions"
[all …]
/aosp_15_r20/prebuilts/vndk/v33/x86/include/generated-headers/hardware/interfaces/sensors/aidl/android.hardware.sensors-V1-ndk-source/gen/include/aidl/android/hardware/sensors/
DISensors.h61 …::aidl::android::hardware::sensors::ISensors::SharedMemInfo::SharedMemFormat format = ::aidl::andr…
69 …return std::tie(type, format, size, memoryHandle) != std::tie(rhs.type, rhs.format, rhs.size, rhs.…
72 …return std::tie(type, format, size, memoryHandle) < std::tie(rhs.type, rhs.format, rhs.size, rhs.m…
75 …return std::tie(type, format, size, memoryHandle) <= std::tie(rhs.type, rhs.format, rhs.size, rhs.…
78 …return std::tie(type, format, size, memoryHandle) == std::tie(rhs.type, rhs.format, rhs.size, rhs.…
81 …return std::tie(type, format, size, memoryHandle) > std::tie(rhs.type, rhs.format, rhs.size, rhs.m…
84 …return std::tie(type, format, size, memoryHandle) >= std::tie(rhs.type, rhs.format, rhs.size, rhs.…
92 os << ", format: " << ::android::internal::ToString(format); in toString()
191 #pragma clang diagnostic push
192 #pragma clang diagnostic ignored "-Wc++17-extensions"
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/c++/v1/
D__availability65 // [1]: https://clang.llvm.org/docs/AttributeReference.html#availability
171 // clang-format off
176 // clang-format on
186 // clang-format off
188 …_Pragma("clang attribute push(__attribute__((availability(macos,strict,introduced=10.15))), apply_…
189 …_Pragma("clang attribute push(__attribute__((availability(ios,strict,introduced=13.0))), apply_to=…
190 …_Pragma("clang attribute push(__attribute__((availability(tvos,strict,introduced=13.0))), apply_to…
191 …_Pragma("clang attribute push(__attribute__((availability(watchos,strict,introduced=6.0))), apply_…
193 _Pragma("clang attribute pop") \
194 _Pragma("clang attribute pop") \
[all …]
/aosp_15_r20/external/conscrypt/srcgen/
H A Dgenerate_android_src.sh54 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 \
/aosp_15_r20/external/gsc-utils/
H A D.clang-format3 # clang-format configuration file. Intended for clang-format >= 9.
7 # Documentation/process/clang-format.rst
8 # https://clang.llvm.org/docs/ClangFormat.html
9 # https://clang.llvm.org/docs/ClangFormatStyleOptions.html
11 # Note: imported from Kernel .clang-format, uncommented options that
12 # require clang-format-4.0 or clang-format-5.0, and removed
/aosp_15_r20/external/pytorch/aten/src/ATen/native/vulkan/glsl/
H A Dunary_op.glsl2 // clang-format off
7 // clang-format on
11 // clang-format off
25 // clang-format on
35 // clang-format off
42 // clang-format on

12345678910>>...1077