-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C++] There is a problem with clang-format regular matching. #37299
Comments
Isn't that matches[1] in find_clang_tool[2]? [1] https://cmake.org/cmake/help/latest/command/if.html#matches |
I got
|
cmake version is cmake version 3.18.2 |
I think it is prefix Homebrew |
kou
pushed a commit
that referenced
this issue
Aug 22, 2023
…'s clang-format (#37300) ### Rationale for this change On my mac system, the clang-format version information is: ``` ➜ ~ clang-format -version Homebrew clang-format version 16.0.4 ``` This isn't matched by the current clang-format regex in the CMake setup: ```cmake find_clang_tool(clang-format CLANG_FORMAT_BIN "^clang-format version ${ARROW_CLANG_TOOLS_VERSION_ESCAPED}") ``` ### What changes are included in this PR? Make regex more lenient to accomodate the Homebrew clang-format version string. ### Are these changes tested? no ### Are there any user-facing changes? no * Closes: #37299 Authored-by: light-city <455954986@qq.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
loicalleyne
pushed a commit
to loicalleyne/arrow
that referenced
this issue
Nov 13, 2023
…mebrew's clang-format (apache#37300) ### Rationale for this change On my mac system, the clang-format version information is: ``` ➜ ~ clang-format -version Homebrew clang-format version 16.0.4 ``` This isn't matched by the current clang-format regex in the CMake setup: ```cmake find_clang_tool(clang-format CLANG_FORMAT_BIN "^clang-format version ${ARROW_CLANG_TOOLS_VERSION_ESCAPED}") ``` ### What changes are included in this PR? Make regex more lenient to accomodate the Homebrew clang-format version string. ### Are these changes tested? no ### Are there any user-facing changes? no * Closes: apache#37299 Authored-by: light-city <455954986@qq.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug, including details regarding any error messages, version, and platform.
On my mac system, the version information is
if we use
^clang-format
, we can't match.Component(s)
C++
The text was updated successfully, but these errors were encountered: