include-what-you-use is included but is not presented as a CMake option
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- cmake
- Área
- build-system
Línea de trabajo
Comienza en cmake/StaticAnalyzers.cmake y en la parte final de ProjectOptions.cmake, comparando la ruta de include-what-you-use con myproject_enable_clang_tidy y con la implementación anterior enlazada en el issue. Configura el proyecto o abre cmake-gui para verificar que la opción de include-what-you-use está expuesta y que habilitarla llega a la macro existente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In /cmake/StaticAnalyzers.cmake, the macro myproject_enable_include_what_you_use is declared.
However, myproject_enable_include_what_you_use is never actually set as an option elsewhere. Therefore, it's not possible to set it as an option in places like cmake-gui or based on the configuration.
For instance, myproject_enable_clang_tidy is right above it. I see that at the bottom of ProjectOptions.cmake that macro is called if myproject_ENABLE_CLANG_TIDY is set to true. There is no equivalent for myproject_enable_include_what_you_use.
It appears when iwyu was added, https://github.com/cpp-best-practices/cmake_template/blob/3a8c8f9793fb9805af558bfe097491e9a6efc97c/cmake/StaticAnalyzers.cmake was simpler. It did have option(ENABLE_INCLUDE_WHAT_YOU_USE "Enable static analysis with include-what-you-use" OFF).
StaticAnalyzers.cmake has had some changes, but it appears
macro(myproject_enable_include_what_you_use)
find_program(INCLUDE_WHAT_YOU_USE include-what-you-use)
if(INCLUDE_WHAT_YOU_USE)
set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${INCLUDE_WHAT_YOU_USE})
else()
message(WARNING "include-what-you-use requested but executable not found")
endif()
endmacro()
is orphaned code that doesn't do anything. If I am mistaken hopefully, someone can explain this a little bit better to me. I've had to heavily edit my fork of this template because we can only support CMake 3.12 at this time, due to our usage of MSVS 2017. I'm doing some cleanup and noticed that iwyu is never really used. Looking at the code on the main branch, I don't see it being used so it's not like I unintentionally removed it.
- Lenguaje dominante
- CMake
- Estrellas
- 1.8k
- Forks
- 205
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cpp-best-practices/cmake_template
-
Put back `-Wsign-conversion` for gcc in CompilerWarnings.cmakePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 Menos de una hora Aptitud para principiantes 85/100
-
Enable sanitizers globallyAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
cpp-best-practices/cmake_template#140 · 2 comentarios ·
-
From-scratch clone/build fails on `src/ftxui_sample/CMakeFiles/intro.dir/main.cpp.obj`Posiblemente ocupada @leftibot la tomó hace 195 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
cpp-best-practices/cmake_template#139 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
cpp-best-practices/cmake_template#91 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
cpp-best-practices/cmake_template#79 · 4 comentarios · 1 reacción ·
Todos los issues de cpp-best-practices/cmake_template
Issues similares
-
Font inlining cache is not created or reusedPosiblemente ocupada @nagahara-naoki la tomó hoy. Abiertoarea: @angular/build
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
angular/angular-cli#34719 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
osaurus-ai/osaurus#3422 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
foundation/foundation-emails#2127 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mw00/project-maya#983 · 1 comentario ·
Los mantenedores suelen responder en 2 días