/netbsd-src/external/apache2/llvm/dist/clang/tools/clang-format/ |
H A D | CMakeLists.txt | 3 add_clang_tool(clang-format 14 clang_target_link_libraries(clang-format 23 install(PROGRAMS clang-format-bbedit.applescript 24 DESTINATION share/clang 25 COMPONENT clang-format) 26 install(PROGRAMS clang-format-diff.py 27 DESTINATION share/clang 28 COMPONENT clang-format) 29 install(PROGRAMS clang-format-sublime.py 30 DESTINATION share/clang [all …]
|
H A D | ClangFormat.cpp | 28 using clang::tooling::Replacements; 63 Style("style", cl::desc(clang::format::StyleOptionHelpDescription), 64 cl::init(clang::format::DefaultFormatStyle), 73 cl::init(clang::format::DefaultFallbackStyle), 179 namespace clang { namespace 180 namespace format { namespace 357 static bool format(StringRef FileName) { in format() function 466 OS << clang::getClangToolFullVersion("clang-format") << '\n'; in PrintVersion() 489 llvm::Expected<clang::format::FormatStyle> FormatStyle = in dumpConfig() 490 clang::format::getStyle(Style, FileName, FallbackStyle, in dumpConfig() [all …]
|
H A D | clang-format-bbedit.applescript | 1 -- 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="…
|
/netbsd-src/external/apache2/llvm/dist/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++/Java/JavaScript/Objective-C/Protobuf/C# code. 18 $ clang-format -help 19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code. 27 USAGE: clang-format [options] [<file> ...] 31 Clang-format options: 35 =unknown - If set, unknown format options are only warned about. 39 differing format depending on an option being 42 When reading from stdin, clang-format assumes this 45 clang-format from an editor integration [all …]
|
H A D | ClangTools.rst | 13 directory tree, `clang-tools-extra 14 <https://github.com/llvm/llvm-project/tree/main/clang-tools-extra>`_. 60 ``clang-check`` 68 fixit-hints offered by clang. See :doc:`HowToSetupToolingForLLVM` for 69 instructions on how to setup and used `clang-check`. 71 ``clang-format`` 74 Clang-format is both a :doc:`library <LibFormat>` and a :doc:`stand-alone tool 76 according to configurable style guides. To do so, clang-format uses Clang's 78 the whitespace around those tokens. The goal is for clang-format to serve both 92 ``clang-tidy`` [all …]
|
H A D | ClangFormatStyleOptions.rst | 8 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/docs/ |
H A D | Contributing.rst | 58 …oc:`CodingStandards`. You can use the `clang-format-diff.py`_ or `git-clang-format`_ tools to auto… 65 formatted properly. We use ``clang-format`` for this, which has git integration 66 through the ``git-clang-format`` script. On some systems, it may already be 68 run it -- the following command will format only the code changed in the most 73 % git clang-format HEAD~1 85 If you don't already have ``clang-format`` or ``git clang-format`` installed 86 on your system, the ``clang-format`` binary will be built alongside clang, and 88 ``clang/tools/clang-format/git-clang-format``. 155 .. _clang-format-diff.py: https://reviews.llvm.org/source/llvm-github/browse/main/clang/tools/clang… 156 .. _git-clang-format: https://reviews.llvm.org/source/llvm-github/browse/main/clang/tools/clang-for…
|
H A D | FuzzingLLVM.rst | 20 clang-fuzzer 28 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+clang-fuzzer 30 clang-proto-fuzzer 36 This fuzzer accepts clang command line options after `ignore_remaining_args=1`. 37 For example, the following command will fuzz clang with a higher optimization 42 % bin/clang-proto-fuzzer <corpus-dir> -ignore_remaining_args=1 -O3 44 clang-format-fuzzer 47 A |generic fuzzer| that runs clang-format_ on C++ text fragments. Some of the 51 .. _clang-format: https://clang.llvm.org/docs/ClangFormat.html 53 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+clang-format-fuzzer [all …]
|
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/ci/ |
H A D | Dockerfile | 46 RUN LLVM_VERSION=$(find /usr/bin -regex '^.+/clang-[0-9.]+$') && LLVM_VERSION=${LLVM_VERSION#*clang… 47 RUN ln -s $(find /usr/bin -regex '^.+/clang\+\+-[0-9.]+$') /usr/bin/clang++ && [ -e $(readlink /usr… 48 RUN ln -s $(find /usr/bin -regex '^.+/clang-[0-9.]+$') /usr/bin/clang && [ -e $(readlink /usr/bin/c… 53 …UN . /tmp/env.sh && ln -s /usr/bin/clang++-${LLVM_TOT_VERSION} /usr/bin/clang++-tot && [ -e $(read… 54 RUN . /tmp/env.sh && ln -s /usr/bin/clang-${LLVM_TOT_VERSION} /usr/bin/clang-tot && [ -e $(readlink… 56 # Install clang-format 57 RUN . /tmp/env.sh && apt-get install -y clang-format-$LLVM_VERSION 58 …n -s $(find /usr/bin -regex '^.+/clang-format-[0-9.]+$') /usr/bin/clang-format && [ -e $(readlink … 59 …ind /usr/bin -regex '^.+/git-clang-format-[0-9.]+$') /usr/bin/git-clang-format && [ -e $(readlink …
|
H A D | run-buildbot | 108 -DCMAKE_C_COMPILER=clang-cl \ 109 -DCMAKE_CXX_COMPILER=clang-cl \ 148 check-format) 153 git-clang-format \ 154 --binary /usr/bin/clang-format --diff \ 159 | tee ${BUILD_DIR}/clang-format.patch 161 ! grep -q '^--- a' ${BUILD_DIR}/clang-format.patch 183 export CC=clang 184 export CXX=clang++ 192 export CC=clang [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/tools/ |
H A D | CMakeLists.txt | 6 add_clang_subdirectory(clang-diff) 7 add_clang_subdirectory(clang-format) 8 add_clang_subdirectory(clang-format-vs) 9 add_clang_subdirectory(clang-fuzzer) 10 add_clang_subdirectory(clang-import-test) 11 add_clang_subdirectory(clang-offload-bundler) 12 add_clang_subdirectory(clang-offload-wrapper) 13 add_clang_subdirectory(clang-scan-deps) 14 add_clang_subdirectory(clang-repl) 18 add_clang_subdirectory(clang-rename) [all …]
|
/netbsd-src/external/mit/libcbor/dist/ |
H A D | clang-format.sh | 5 if which clang-format-8; then 6 clang-format-8 --verbose -style=file -i **/*.c **/*.h **/*.cpp 8 clang-format --verbose -style=file -i **/*.c **/*.h **/*.cpp
|
H A D | .travis-qemu.sh | 116 clang-format -version 117 clang-format-8 -version 118 ./clang-format.sh
|
/netbsd-src/external/apache2/llvm/dist/clang/tools/clang-format-vs/ |
H A D | CMakeLists.txt | 1 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)
|
/netbsd-src/external/apache2/llvm/dist/llvm/utils/release/ |
H A D | build_llvm_package.bat | 13 REM Visual Studio 2019 SDK and Nuget (for the clang-format plugin), 36 echo Clang format plugin version: %clang_format_vs_version% 59 -DLLDB_TEST_COMPILER=%cd%\build32_stage0\bin\clang.exe ^ 61 -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;compiler-rt;openmp;lldb" 74 ninja check-clang || ninja check-clang || ninja check-clang || exit /b 77 ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 83 set CC=..\build32_stage0\bin\clang-cl 84 set CXX=..\build32_stage0\bin\clang-cl 88 ninja check-clang || ninja check-clang || ninja check-clang || exit /b 91 ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/contrib/ |
H A D | clang-format | 16 # clang-format 7.0.1 is required 19 # clang-format-diff script that is usually also packaged with clang-format. 22 # git diff -U0 --no-color | clang-format-diff -p1 24 # git diff -U0 --no-color | clang-format-diff -p1 -i
|
/netbsd-src/external/gpl3/gcc/dist/contrib/ |
H A D | clang-format | 16 # clang-format 7.0.1 is required 19 # clang-format-diff script that is usually also packaged with clang-format. 22 # git diff -U0 --no-color | clang-format-diff -p1 24 # git diff -U0 --no-color | clang-format-diff -p1 -i
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/ |
H A D | AtomicChange.cpp | 14 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::AtomicChange) 29 const clang::tooling::AtomicChange &E) in NormalizedAtomicChange() 36 clang::tooling::AtomicChange denormalize(const llvm::yaml::IO &) { in denormalize() 45 std::vector<clang::tooling::Replacement> Replaces; 67 template <> struct MappingTraits<clang::tooling::AtomicChange> { 68 static void mapping(IO &Io, clang::tooling::AtomicChange &Doc) { in mapping() 69 MappingNormalization<NormalizedAtomicChange, clang::tooling::AtomicChange> in mapping() 83 namespace clang { namespace 109 const clang::tooling::Replacements &Replaces) { in getRangesForFormating() 113 std::vector<clang::tooling::Range> Ranges; in getRangesForFormating() [all …]
|
/netbsd-src/external/bsd/libc++/lib/ |
H A D | Makefile | 12 condition_variable_destructor.cpp debug.cpp exception.cpp format.cpp \ 49 CWARNFLAGS.clang+= -Wno-error=unused-variable -Wno-error=missing-noreturn 50 CWARNFLAGS.clang+= -Wno-error=missing-prototypes -Wno-error=sometimes-uninitialized 51 CWARNFLAGS.clang+= -Wno-error=missing-field-initializers -Wno-error=switch 52 CWARNFLAGS.clang+= -Wno-error=implicit-exception-spec-mismatch -Wno-error=format-nonliteral -Wno-er…
|
/netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/secondary/clang/tools/clang-format/ |
H A D | BUILD.gn | 1 executable("clang-format") { 4 "//clang/lib/Basic", 5 "//clang/lib/Format", 6 "//clang/lib/Rewrite", 7 "//clang/lib/Tooling/Core", 11 "//clang/lib/AST/", 12 "//clang/lib/Frontend/", 13 "//clang/lib/Sema/",
|
/netbsd-src/external/apache2/llvm/dist/clang/tools/clang-format/fuzzer/ |
H A D | CMakeLists.txt | 7 add_clang_executable(clang-format-fuzzer 12 target_link_libraries(clang-format-fuzzer
|
/netbsd-src/external/apache2/llvm/dist/llvm/utils/ |
H A D | update_cc_test_checks.py | 39 json_dump_args = [args.clang] + clang_args + ['-fsyntax-only', '-o', '-'] 104 common.debug('line {}: found function {}'.format(line+1, func_name), file=sys.stderr) 117 if not args.clang: 119 args.clang = 'clang' 121 args.clang = os.path.join(args.llvm_bin, 'clang') 154 if not distutils.spawn.find_executable(args.clang): 163 [args.clang, '-print-file-name=include']).decode().strip() 183 raw_tool_output = common.invoke_tool(args.clang, clang_args, filename) 261 exe = [ti.args.clang] + clang_args 288 common.debug('Extracted clang cmd: clang {}'.format(clang_args)) [all …]
|
/netbsd-src/external/apache2/llvm/bin/clang-format/ |
H A D | Makefile | 3 PROG_CXX= clang-format 8 .PATH: ${CLANG_SRCDIR}/tools/clang-format
|
/netbsd-src/external/apache2/llvm/bin/ |
H A D | Makefile | 5 SUBDIR= clang \ 6 clang-tblgen \ 13 clang-format \ 14 clang-repl \ 15 clang-rename \
|
/netbsd-src/external/apache2/llvm/dist/clang/cmake/caches/ |
H A D | DistributionExample-stage2.cmake | 4 set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra;lld" CACHE STRING "") 26 clang 28 clang-format 29 clang-resource-headers
|