[PATCH] D44778: [clang-format] Wildcard expansion on Windows.

Zachary Turner via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 22 07:35:12 PDT 2018


Never seen this PURE_WINDOWS CMake variable. How is it different than MSVC?
On Thu, Mar 22, 2018 at 5:30 AM Alexander Kornienko via Phabricator <
reviews at reviews.llvm.org> wrote:

> alexfh created this revision.
> alexfh added reviewers: klimek, djasper.
> Herald added a subscriber: mgorny.
>
> Add support for wildcard expansion in command line arguments on Windows.
> See
> https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments
>
> Fixes https://bugs.llvm.org/show_bug.cgi?id=17217
>
>
> Repository:
>   rC Clang
>
> https://reviews.llvm.org/D44778
>
> Files:
>   tools/clang-format/CMakeLists.txt
>
>
> Index: tools/clang-format/CMakeLists.txt
> ===================================================================
> --- tools/clang-format/CMakeLists.txt
> +++ tools/clang-format/CMakeLists.txt
> @@ -4,6 +4,14 @@
>    ClangFormat.cpp
>    )
>
> +if( PURE_WINDOWS )
> +  # Add support for wildcard expansion in command-line arguments on
> Windows.
> +  # See
> +  #
> https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments
> +  set_property(TARGET clang-format APPEND_STRING PROPERTY
> +    LINK_FLAGS " setargv.obj")
> +endif()
> +
>  set(CLANG_FORMAT_LIB_DEPS
>    clangBasic
>    clangFormat
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180322/108c735e/attachment-0001.html>


More information about the cfe-commits mailing list