# The GenerateExportHeader should prevent clang-tidy warning

**URL:** https://discourse.cmake.org/t/the-generateexportheader-should-prevent-clang-tidy-warning/10620
**Category:** Development
**Created:** [April 9, 2024, 4:41pm UTC](https://discourse.cmake.org/t/the-generateexportheader-should-prevent-clang-tidy-warning/10620 "2024-04-09T16:41:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [April 9, 2024, 4:41pm UTC](https://discourse.cmake.org/t/the-generateexportheader-should-prevent-clang-tidy-warning/10620/1 "2024-04-09T16:41:58Z")

</div>

```cpp
/* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) */
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef ALGO_NO_DEPRECATED
# define ALGO_NO_DEPRECATED
# endif
#endif
``
```

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [April 9, 2024, 5:16pm UTC](https://discourse.cmake.org/t/the-generateexportheader-should-prevent-clang-tidy-warning/10620/2 "2024-04-09T17:16:46Z")

</div>

Yes, I’d welcome a merge request doing that, thanks.

---

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [April 10, 2024, 8:07pm UTC](https://discourse.cmake.org/t/the-generateexportheader-should-prevent-clang-tidy-warning/10620/3 "2024-04-10T20:07:23Z")

</div>

done, see [https://gitlab.kitware.com/cmake/cmake/-/merge\_requests/9418](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9418)
