-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
clang-tidyclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
I don't know where the issue is coming from, so I am posting it here too. There is an equivalent discourse on CMake.
Error:
error: unable to handle compilation, expected exactly one compiler job in '' [clang-diagnostic-error]
warning: /clang-tidy-issue/test_module.ixx: 'linker' input unused [clang-diagnostic-unused-command-line-argument]
Found compiler error(s).MWE:
# CMakeLists.txt
cmake_minimum_required(VERSION 3.26)
project(clang-tidy-issue
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API 2182bf5c-ef0d-489a-91da-49dbc3090d2a)
set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP TRUE)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPERIMENTAL_CXX_MODULE_MAP_FORMAT clang)
set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=*")
add_library(test_library)
target_sources(test_library PUBLIC
FILE_SET cxx_modules
TYPE CXX_MODULES
FILES
test_module.ixx
)// test_module.ixx
module;
#include <string>
export module test_module;
export namespace test_module {
consteval std::string_view version(){
return "0.0.0";
}
}Metadata
Metadata
Assignees
Labels
clang-tidyclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"