-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
I am attempting to
I want to use run-clang-tidy if needed
Expected Behavior
No strange errors about missing header or bad compiler settings
Current Behavior
bash-5.2$ cmake --workflow appleclang-release
Executing workflow step 1 of 3: configure preset "appleclang-release"
-- CMAKE_CXX_STANDARD="20" ; CMAKE_PROJECT_NAME="beman.exemplar" ; CMAKE_PROJECT_VERSION="2.1.1" ; CMAKE_SOURCE_DIR="/Users/clausklein/Workspace/cpp/beman-project/exemplar"
-- CMAKE_CXX_SCAN_FOR_MODULES="" ; PROJECT_NAME="beman.exemplar.examples" ; PROJECT_VERSION="2.1.1" ; PROJECT_SOURCE_DIR="/Users/clausklein/Workspace/cpp/beman-project/exemplar/examples"
-- Examples to be built: identity_direct_usage;identity_as_default_projection
-- Configuring done (0.9s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_TOOLCHAIN_FILE
-- Build files have been written to: /Users/clausklein/Workspace/cpp/beman-project/exemplar/build/appleclang-release
Executing workflow step 2 of 3: build preset "appleclang-release"
ninja: no work to do.
Executing workflow step 3 of 3: test preset "appleclang-release"
Test project /Users/clausklein/Workspace/cpp/beman-project/exemplar/build/appleclang-release
Start 1: IdentityTest.call_identity_with_int
1/7 Test #1: IdentityTest.call_identity_with_int ...................... Passed 0.00 sec
Start 2: IdentityTest.call_identity_with_custom_type
2/7 Test #2: IdentityTest.call_identity_with_custom_type .............. Passed 0.00 sec
Start 3: IdentityTest.compare_std_vs_beman
3/7 Test #3: IdentityTest.compare_std_vs_beman ........................ Passed 0.00 sec
Start 4: IdentityTest.check_is_transparent
4/7 Test #4: IdentityTest.check_is_transparent ........................ Passed 0.00 sec
Start 5: find-package-test
5/7 Test #5: find-package-test ........................................ Passed 1.91 sec
Start 6: beman.exemplar.examples.identity_direct_usage
6/7 Test #6: beman.exemplar.examples.identity_direct_usage ............ Passed 0.00 sec
Start 7: beman.exemplar.examples.identity_as_default_projection
7/7 Test #7: beman.exemplar.examples.identity_as_default_projection ... Passed 0.00 sec
100% tests passed, 0 tests failed out of 7
Total Test time (real) = 1.94 sec
bash-5.2$ clang-tidy -p=build/appleclang-release /Users/clausklein/Workspace/cpp/beman-project/exemplar/examples/identity_direct_usage.cpp
4 warnings and 1 error generated.
Error while processing /Users/clausklein/Workspace/cpp/beman-project/exemplar/examples/identity_direct_usage.cpp.
/Users/clausklein/Workspace/cpp/beman-project/exemplar/examples/identity_direct_usage.cpp:7:11: warning: namespace alias decl 'exe' is unused [misc-unused-alias-decls]
7 | namespace exe = beman::exemplar;
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
8 |
/Users/clausklein/Workspace/cpp/beman-project/exemplar/src/beman/exemplar/../../../include/beman/exemplar/identity.hpp:23:10: error: 'utility' file not found [clang-diagnostic-error]
23 | #include <utility> // std::forward
| ^~~~~~~~~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
Found compiler error(s).
bash-5.2$