/openbsd-src/gnu/llvm/clang/tools/clang-format/ |
H A D | CMakeLists.txt | 3 add_clang_tool(clang-format 14 clang_target_link_libraries(clang-format 23 install(FILES clang-format-bbedit.applescript 24 DESTINATION "${CMAKE_INSTALL_DATADIR}/clang" 25 COMPONENT clang-format) 26 install(PROGRAMS clang-format-diff.py 27 DESTINATION "${CMAKE_INSTALL_DATADIR}/clang" 28 COMPONENT clang-format) 29 install(FILES clang-format-sublime.py 30 DESTINATION "${CMAKE_INSTALL_DATADIR}/clang" [all …]
|
H A D | ClangFormat.cpp | 30 using clang::tooling::Replacements; 65 Style("style", cl::desc(clang::format::StyleOptionHelpDescription), 66 cl::init(clang::format::DefaultFormatStyle), 75 cl::init(clang::format::DefaultFallbackStyle), 206 namespace clang { namespace 207 namespace format { namespace 401 static bool format(StringRef FileName) { in format() function 543 OS << clang::getClangToolFullVersion("clang-format") << '\n'; in PrintVersion() 566 llvm::Expected<clang::format::FormatStyle> FormatStyle = in dumpConfig() 567 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="…
|
/openbsd-src/gnu/llvm/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/JSON/Objective-C/Protobuf/C# code. 20 $ clang-format --help 21 OVERVIEW: A tool to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code. 29 USAGE: clang-format [options] [@<file>] [<file> ...] 33 Clang-format options: 37 =unknown - If set, unknown format options are only warned about. 41 differing format depending on an option being 44 .clang-format file. 46 If this is not passed, the .clang-format file is searched [all …]
|
H A D | ClangFormatStyleOptions.rst | 4 in this file directly. Instead, modify them in include/clang/Format/Format.h 22 When using :program:`clang-format` command line utility or 23 ``clang::format::reformat(...)`` functions from code, one can either use one of 28 Configuring Style with clang-format 31 :program:`clang-format` supports two ways to provide custom style options: 33 use ``-style=file`` and put style configuration in the ``.clang-format`` or 34 ``_clang-format`` file in the project directory. 36 When using ``-style=file``, :program:`clang-format` for each input file will 37 try to find the ``.clang-format`` file located in the closest parent directory 41 When using ``-style=file:<format_file_path>``, :program:`clang-format` for [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 | ClangOffloadPackager.rst | 14 metadata. We use a custom binary format for bundling all the device images 15 together. The image format is a small header wrapping around a string map. This 22 The binary format is marked by the ``0x10FF10AD`` magic bytes, followed by a 26 format is a serialization of a string map and an image buffer. The binary header 35 | uint8_t | magic | The magic bytes for the binary format (0x10FF10AD) | 37 | uint32_t | version | Version of this format (currently version 1) | 119 array of the :ref:`string entry<table-binary_string>` format. 141 bundled together by simply concatenating them in this format. Because we have 158 USAGE: clang-offload-packager [options] 168 clang-offload-packager options: [all …]
|
/openbsd-src/gnu/llvm/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… 66 formatted properly. We use ``clang-format`` for this, which has git integration 67 through the ``git-clang-format`` script. On some systems, it may already be 69 run it -- the following command will format only the code changed in the most 74 % git clang-format HEAD~1 86 If you don't already have ``clang-format`` or ``git clang-format`` installed 87 on your system, the ``clang-format`` binary will be built alongside clang, and 89 ``clang/tools/clang-format/git-clang-format``. 201 .. _clang-format-diff.py: https://reviews.llvm.org/source/llvm-github/browse/main/clang/tools/clang… 202 .. _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 …]
|
/openbsd-src/gnu/llvm/libcxx/utils/ci/ |
H A D | Dockerfile | 73 RUN ln -fs /usr/bin/clang++-14 /usr/bin/c++ && [ -e $(readlink /usr/bin/c++) ] 74 RUN ln -fs /usr/bin/clang-14 /usr/bin/cc && [ -e $(readlink /usr/bin/cc) ] 76 # Install clang-format; always use the lastest stable branch. 78 RUN apt-get update && apt-get install -y clang-format-$(($LLVM_HEAD_VERSION - 2)) clang-format-$(($… 79 RUN ln -s /usr/bin/clang-format-14 /usr/bin/clang-format && [ -e $(readlink /usr/bin/clang-format) ] 80 RUN ln -s /usr/bin/git-clang-format-14 /usr/bin/git-clang-format && [ -e $(readlink /usr/bin/git-cl… 82 # Install clang-tidy 84 …N apt-get update && apt-get install -y clang-tidy-$(($LLVM_HEAD_VERSION - 1)) clang-tidy-$LLVM_HEA… 85 RUN ln -s /usr/bin/clang-tidy-14 /usr/bin/clang-tidy && [ -e $(readlink /usr/bin/clang-tidy) ] 87 # Install llvm-dev and libclang-dev to compile custom clang-tidy checks [all …]
|
H A D | run-buildbot | 41 GIT_CLANG_FORMAT The git-clang-format binary to use in the 'format' builder. 46 ENABLE_CLANG_TIDY Whether to compile and run clang-tidy checks. This variable 133 -DCMAKE_C_COMPILER=clang-cl \ 134 -DCMAKE_CXX_COMPILER=clang-cl \ 177 check-format) 183 GIT_CLANG_FORMAT=git-clang-format 191 | tee ${BUILD_DIR}/clang-format.patch 193 ! grep -q '^--- a' ${BUILD_DIR}/clang-format.patch 584 clang-cl-dll) 596 clang-cl-static) [all …]
|
/openbsd-src/gnu/llvm/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)
|
/openbsd-src/gnu/llvm/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-linker-wrapper) 12 add_clang_subdirectory(clang-offload-packager) 13 add_clang_subdirectory(clang-offload-bundler) 14 add_clang_subdirectory(clang-scan-deps) 16 add_clang_subdirectory(clang-repl) [all …]
|
/openbsd-src/gnu/llvm/clang/tools/clang-format/fuzzer/ |
H A D | CMakeLists.txt | 7 add_clang_executable(clang-format-fuzzer 12 target_link_libraries(clang-format-fuzzer
|
H A D | ClangFormatFuzzer.cpp | 20 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); in LLVMFuzzerTestOneInput() 22 auto Replaces = reformat(Style, s, clang::tooling::Range(0, s.size())); in LLVMFuzzerTestOneInput()
|
/openbsd-src/gnu/llvm/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/",
|
/openbsd-src/gnu/llvm/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 …]
|
/openbsd-src/gnu/llvm/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
|
/openbsd-src/gnu/llvm/llvm/utils/ |
H A D | update_cc_test_checks.py | 39 json_dump_args = [args.clang] + clang_args + ['-fsyntax-only', '-o', '-'] 118 common.debug('line {}: found function {}'.format(line+1, func), file=sys.stderr) 131 if not args.clang: 133 args.clang = 'clang' 135 args.clang = os.path.join(args.llvm_bin, 'clang') 178 if not find_executable(args.clang): 187 [args.clang, '-print-file-name=include']).decode().strip() 207 raw_tool_output = common.invoke_tool(args.clang, clang_args, filename) 286 exe = [ti.args.clang] + clang_args 314 common.debug('Extracted clang cmd: clang {}'.format(clang_args)) [all …]
|
/openbsd-src/gnu/llvm/clang/include/clang/Tooling/ |
H A D | NodeIntrospection.h | 21 namespace clang { 57 static std::string format(const LocationCall &Call); 89 NodeLocationAccessors GetLocations(clang::Stmt const *Object); 90 NodeLocationAccessors GetLocations(clang::Decl const *Object); 91 NodeLocationAccessors GetLocations(clang::CXXCtorInitializer const *Object); 92 NodeLocationAccessors GetLocations(clang::NestedNameSpecifierLoc const &); 93 NodeLocationAccessors GetLocations(clang::TemplateArgumentLoc const &); 94 NodeLocationAccessors GetLocations(clang::CXXBaseSpecifier const *); 95 NodeLocationAccessors GetLocations(clang::TypeLoc const &); 96 NodeLocationAccessors GetLocations(clang::DeclarationNameInfo const &); [all …]
|
/openbsd-src/gnu/llvm/llvm/docs/CommandGuide/ |
H A D | llvm-debuginfo-analyzer.rst | 26 file format, assuming the debug information correctly represents the 63 * :ref:`report_` - Describe the format layouts for view printing. 122 toolchain name, binary file format, etc. 142 =format: Object file format name. 210 file format. It includes MS runtime types. 231 =format 323 When redirecting the output from a complex binary format, it is 348 =json: Use JSON as the output format (Not implemented). 386 =children: Elements and children are displayed in a tree format. 387 =list: Elements are displayed in a tabular format. [all …]
|
/openbsd-src/gnu/llvm/clang/lib/Format/ |
H A D | IntegerLiteralSeparatorFixer.h | 20 namespace clang { 21 namespace format { 30 std::string format(const StringRef IntegerLiteral, int DigitsPerGroup,
|
/openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
H A D | BuiltinsNEON.def | 14 // The format of this database matches clang/Basic/Builtins.def. 17 #include "clang/Basic/arm_neon.inc" 18 #include "clang/Basic/arm_fp16.inc"
|
H A D | BuiltinsSVE.def | 14 // The format of this database matches clang/Basic/Builtins.def. 17 #include "clang/Basic/arm_sve_builtins.inc" 18 #include "clang/Basic/BuiltinsAArch64NeonSVEBridge.def"
|
/openbsd-src/gnu/llvm/llvm/utils/lit/lit/llvm/ |
H A D | config.py | 46 self.lit_config.note("using lit tools: {}".format(path)) 269 def get_clang_builtin_include_dir(self, clang): argument 273 [clang, '-print-file-name=include']) 276 print(clang) 278 "Couldn't find the include dir for Clang ('%s')" % clang) 288 def get_clang_has_lsan(self, clang, triple): argument 289 if not clang: 295 clang_binary = clang.split()[0] 450 message = "couldn't find '{}' program".format(name) 453 ', try setting {} in your environment'.format(search_env) [all …]
|