Skip to content
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

Only use local clang-format 7 or 8 #1487

Merged
merged 1 commit into from Oct 15, 2019

Conversation

svenklemm
Copy link
Member

clang-format > 8 has slightly different oppinion about source code
formatting than earlier versions, unfortunately some of the new
options cannot be set in a backwardscompatible way so we fall back
to docker for newer versions.

CMakeLists.txt Outdated
@@ -277,7 +277,7 @@ if (CLANG_FORMAT)
message(FATAL_ERROR "Could not parse clang-format version ${CLANG_FORMAT_VERSION_OUTPUT}")
endif ()

if(${CMAKE_MATCH_1} LESS "7")
if((${CMAKE_MATCH_1} LESS "7") OR (${CMAKE_MATCH_1} GREATER "8"))
message(WARNING "clang-format is out of date (at least version 7 required)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change the warning message? It's wrong for > 8.

clang-format > 8 has slightly different oppinion about source code
formatting than earlier versions, unfortunately some of the new
options cannot be set in a backwardscompatible way so we fall back
to docker for newer versions.
@codecov
Copy link

codecov bot commented Oct 15, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@d82ad2c). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1487   +/-   ##
=========================================
  Coverage          ?   81.31%           
=========================================
  Files             ?      114           
  Lines             ?    16619           
  Branches          ?        0           
=========================================
  Hits              ?    13513           
  Misses            ?     3106           
  Partials          ?        0
Flag Coverage Δ
#cron 81.31% <ø> (?)
#pr 81.31% <ø> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d82ad2c...d6c1e62. Read the comment docs.

@svenklemm svenklemm merged commit f36d68b into timescale:master Oct 15, 2019
@cevian cevian added the build Issues related to building TimescaleDB or using its binaries label Oct 28, 2019
@cevian cevian added this to the 1.5.0 milestone Oct 28, 2019
@svenklemm svenklemm deleted the clang-format branch April 18, 2021 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to building TimescaleDB or using its binaries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants