Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F27037353
FindClangTidy.cmake
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Authored By
Unknown
Size
892 B
Referenced Files
None
Subscribers
None
FindClangTidy.cmake
View Options
# CMake find_package() Module for clang-tidy
#
# Example usage:
#
# find_package(ClangTidy)
#
# If successful the following variables will be defined
# CLANGTIDY_FOUND
# CLANGTIDY_EXECUTABLE
if
(
ROSA_CLANG_TIDY_PATH
STREQUAL
""
)
find_program
(
CLANGTIDY_EXECUTABLE
NAMES
clang-tidy
DOC
"Path to clang-tidy executable"
)
else
()
find_program
(
CLANGTIDY_EXECUTABLE
NAMES
clang-tidy
PATHS
${
ROSA_CLANG_TIDY_PATH
}
DOC
"Path to clang-tidy executable"
NO_DEFAULT_PATH
)
endif
()
# Handle REQUIRED and QUIET arguments
# this will also set CLANGTIDY_FOUND to true if CLANGTIDY_EXECUTABLE exists
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
ClangTidy
"Failed to locate clang-tidy executable"
CLANGTIDY_EXECUTABLE
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 27, 8:39 PM (6 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
407001
Default Alt Text
FindClangTidy.cmake (892 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline