Home
last modified time | relevance | path

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

12345678910

/external/clang/tools/clang-format/
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 …]
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()
Dclang-format-bbedit.applescript1 -- In this file, change "/path/to/" to the path where you installed clang-format
3 -- select the script from the Script menu and clang-format will format the
18 set newContents to do shell script "/path/to/clang-format -offset=" & selectionOffset & " -length="…
/external/clang/docs/
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 …]
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 …]
DClangTools.rst21 - ``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``
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
89 according to configurable style guides. To do so, clang-format uses Clang's
[all …]
/external/llvm/test/CodeGen/PowerPC/
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 …]
/external/pdfium/
DDEPS54 "tools/clang":
55 Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'),
139 # Pull clang-format binaries using checked-in hashes.
147 '--bucket', 'chromium-clang-format',
148 '-s', 'pdfium/buildtools/win/clang-format.exe.sha1',
158 '--bucket', 'chromium-clang-format',
159 '-s', 'pdfium/buildtools/mac/clang-format.sha1',
169 '--bucket', 'chromium-clang-format',
170 '-s', 'pdfium/buildtools/linux64/clang-format.sha1',
174 # Pull clang
[all …]
/external/clang/tools/clang-format-vs/
DCMakeLists.txt1 option(BUILD_CLANG_FORMAT_VS_PLUGIN "Build clang-format VS plugin" OFF)
5 "${LLVM_TOOLS_BINARY_DIR}/clang-format.exe"
6 "${CMAKE_CURRENT_SOURCE_DIR}/ClangFormat/clang-format.exe"
7 DEPENDS clang-format)
DREADME.txt2 for clang-format.
13 The CMake build will copy clang-format.exe and LICENSE.TXT into the ClangFormat/
/external/clang/tools/
DCMakeLists.txt5 add_clang_subdirectory(clang-format)
6 add_clang_subdirectory(clang-format-vs)
7 add_clang_subdirectory(clang-fuzzer)
17 add_clang_subdirectory(clang-check)
22 # We support checking out the clang-tools-extra repository into the 'extra'
27 add_llvm_external_project(clang-tools-extra extra)
29 # libclang may require clang-tidy in clang-tools-extra.
/external/v8/
DDEPS41 "v8/tools/clang":
42 …Var("chromium_url") + "/chromium/src/tools/clang.git" + "@" + "75350a858c51ad69e2aae051a8727534542…
89 # Pull clang-format binaries using checked-in hashes.
97 "--bucket", "chromium-clang-format",
98 "-s", "v8/buildtools/win/clang-format.exe.sha1",
108 "--bucket", "chromium-clang-format",
109 "-s", "v8/buildtools/mac/clang-format.sha1",
119 "--bucket", "chromium-clang-format",
120 "-s", "v8/buildtools/linux64/clang-format.sha1",
269 # debugging when used with clang on Ubuntu Precise.
[all …]
/external/clang/tools/clang-format/fuzzer/
DClangFormatFuzzer.cpp21 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); in LLVMFuzzerTestOneInput()
23 applyAllReplacements(s, clang::format::reformat( in LLVMFuzzerTestOneInput()
24 Style, s, {clang::tooling::Range(0, s.size())})); in LLVMFuzzerTestOneInput()
DCMakeLists.txt3 add_clang_executable(clang-format-fuzzer
8 target_link_libraries(clang-format-fuzzer
/external/llvm/utils/release/
Dbuild_llvm_package.bat13 REM Visual Studio 2013 SDK (for the clang-format plugin).
29 echo Clang format plugin version: %clang_format_vs_version%
39 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/cfe/%branch% llvm/tools/clang || exit…
40 … export -r %revision% http://llvm.org/svn/llvm-project/clang-tools-extra/%branch% llvm/tools/clang
59 ninja check-clang || exit /b
64 set CC=..\build32_stage0\bin\clang-cl
65 set CXX=..\build32_stage0\bin\clang-cl
69 ninja check-clang || exit /b
70 copy ..\llvm\tools\clang\tools\clang-format-vs\ClangFormat\bin\Release\ClangFormat.vsix ClangFormat…
83 ninja check-clang || exit /b
[all …]
/external/skia/
D.gitignore39 tools/clang
43 bin/clang-format
44 bin/clang-format.exe
/external/libyuv/files/
DDEPS301 # debugging when used with clang on Ubuntu Precise.
312 # Pull clang if needed or requested via GYP_DEFINES.
314 'name': 'clang',
316 'action': ['python', 'src/tools/clang/scripts/update.py', '--if-needed'],
359 # Pull clang-format binaries using checked-in hashes.
367 '--bucket', 'chromium-clang-format',
368 '-s', 'src/buildtools/win/clang-format.exe.sha1',
378 '--bucket', 'chromium-clang-format',
379 '-s', 'src/buildtools/mac/clang-format.sha1',
389 '--bucket', 'chromium-clang-format',
[all …]
/external/libvpx/libvpx/
DREADME138 The coding style used by this project is enforced with clang-format using the
139 configuration contained in the .clang-format file in the root of the
142 Before pushing changes for review you can format your code with:
143 # Apply clang-format to modified .c, .h and .cc files
144 $ clang-format -i --style=file \
147 Check the .clang-format file for the version used to generate it if there is
150 See also: http://clang.llvm.org/docs/ClangFormat.html
/external/swiftshader/third_party/LLVM/utils/lit/lit/ExampleTests/Clang/
Dlit.cfg8 # testFormat: The test format to use to interpret tests.
22 # Discover the 'clang' and 'clangcc' to use.
27 # Determine which clang to use.
28 clang = os.getenv('CLANG')
30 # If the user set clang in the environment, definitely use that and don't
32 if clang:
33 return clang
36 clang = lit.util.which('clang', PATH)
38 if not clang:
39 lit.fatal("couldn't find 'clang' program, try setting "
[all …]
/external/clang/
DAndroid.mk4 .PHONY: clang-toolchain-minimal clang-toolchain-full llvm-tools
5 clang-toolchain-minimal: \
6 clang
8 clang-toolchain-full: \
9 clang-toolchain-minimal \
11 clang-check \
12 clang-format \
13 clang-tidy \
66 clang-toolchain-minimal: \
79 clang-toolchain-full: \
[all …]
/external/clang/tools/scan-build-py/libscanbuild/
Danalyze.py27 from libscanbuild.clang import get_checkers
104 'clang': args.clang,
136 'ANALYZE_BUILD_CLANG': args.clang if need_analyzer(args.build) else '',
151 logging.basicConfig(format='analyze: %(levelname)s: %(message)s',
209 result.append('-analyzer-store={0}'.format(args.store_model))
211 result.append('-analyzer-constraints={0}'.format(
222 result.append('-analyzer-output={0}'.format(args.output_format))
259 print(' {0} {1}'.format(prefix, name))
262 print(' {0} {1: <30} {2}'.format(prefix, name, description))
273 print_checkers(get_checkers(args.clang, args.plugins))
[all …]
/external/vulkan-validation-layers/
DCONTRIBUTING.md48 * Run clang-format on your changes to maintain formatting.
49 * There are `.clang-format files` throughout the repository to define clang-format settings
50 which are found and used automatically by clang-format.
55 > $ git clang-format --style=file
56 > # Check to see if clang-format made any changes and if they are OK.
/external/clang/test/
DCMakeLists.txt28 clang clang-headers
29 clang-format
31 clang-tblgen
36 clang-check
50 clang-interpreter
84 add_custom_target(clang-test-depends DEPENDS ${CLANG_TEST_DEPS})
85 set_target_properties(clang-test-depends PROPERTIES FOLDER "Clang tests")
87 add_lit_testsuite(check-clang "Running the Clang regression tests"
94 set_target_properties(check-clang PROPERTIES FOLDER "Clang tests")
101 # Add a legacy target spelling: clang-test
[all …]
/external/llvm/test/tools/dsymutil/X86/
Dmismatch.m8 clang -cc1 -emit-obj -fmodules -fmodule-map-file=modules.modulemap \
9 -fmodule-format=obj -g -dwarf-ext-refs -fmodules-cache-path=. \
12 clang -cc1 -emit-obj -fmodules -fmodule-map-file=modules.modulemap \
13 -fmodule-format=obj -g -dwarf-ext-refs -fmodules-cache-path=. \
/external/clang/unittests/Format/
DFormatTestSelective.cpp17 namespace clang { namespace
18 namespace format { namespace
23 std::string format(llvm::StringRef Code, unsigned Offset, unsigned Length) { in format() function in clang::format::__anonda8d4d5d0111::FormatTestSelective
41 EXPECT_EQ("int a;\nint b;", format("int a; \nint b;", 0, 0)); in TEST_F()
42 EXPECT_EQ("int a;", format("int a; ", 0, 0)); in TEST_F()
43 EXPECT_EQ("int a;\n", format("int a; \n \n \n ", 0, 0)); in TEST_F()
44 EXPECT_EQ("int a;\nint b; ", format("int a; \nint b; ", 0, 0)); in TEST_F()
51 format("{int b;\n int a;}", 8, 0)); in TEST_F()
55 format("{int b;\n int a;}", 7, 0)); in TEST_F()
61 format("#define A \\\n" in TEST_F()
[all …]

12345678910