Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jul 2023 13:38:17 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   clang-tidy not part of base
Message-ID:  <CAFDf7UL1g41bDc3Zk9=oRAdMACLVUYCWQvBezcvWvEdhHQk=Bg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000bd913505fff90624
Content-Type: text/plain; charset="UTF-8"

Hello all,

Recently deskutils/treesheets upstream introduced clang-tidy to cmake:
---
set(CMAKE_CXX_CLANG_TIDY clang-tidy
-checks=cppcoreguidelines-*,clang-analyzer-*,readability-*,performance-*,portability-*,concurrency-*,modernize-*)
---
https://github.com/aardappel/treesheets/blob/9131048804169c448ba61900935ff04acfb1e279/CMakeLists.txt#L63C13-L63C13

This causing build to fail because clang-tidy is not found.
What I found is that 13 and 14 doesn't ship this program but it is
available as clang-tidy{13,15} from llvm ports.

As workaround I comment it out.
Any sugestions on what to do, what to say to upstream?

Should this be a cmake debug option?

Thanks,

-- 
Nuno Teixeira
FreeBSD Committer (ports)

--000000000000bd913505fff90624
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello all,</div><div><br></div><div>Recently deskutil=
s/treesheets upstream introduced clang-tidy to cmake:</div><div>---</div><d=
iv>set(CMAKE_CXX_CLANG_TIDY clang-tidy -checks=3Dcppcoreguidelines-*,clang-=
analyzer-*,readability-*,performance-*,portability-*,concurrency-*,moderniz=
e-*)</div><div>---</div><div><a href=3D"https://github.com/aardappel/treesh=
eets/blob/9131048804169c448ba61900935ff04acfb1e279/CMakeLists.txt#L63C13-L6=
3C13">https://github.com/aardappel/treesheets/blob/9131048804169c448ba61900=
935ff04acfb1e279/CMakeLists.txt#L63C13-L63C13</a></div><div><br></div><div>=
This causing build to fail because clang-tidy is not found.<br></div><div>W=
hat I found is that 13 and 14 doesn&#39;t ship this program but it is avail=
able as clang-tidy{13,15} from llvm ports.</div><div><br></div><div>As work=
around I comment it out.<br></div><div>Any sugestions on what to do, what t=
o say to upstream?</div><div><br></div><div>Should this be a cmake debug op=
tion?</div><div><br></div><div>Thanks,<br></div><div><br><span class=3D"gma=
il_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signatur=
e" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><span style=3D"color=
:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div><=
/div></div></div>

--000000000000bd913505fff90624--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UL1g41bDc3Zk9=oRAdMACLVUYCWQvBezcvWvEdhHQk=Bg>