1 .. title:: clang-tidy - readability-duplicate-include
3 readability-duplicate-include
4 =============================
6 Looks for duplicate includes and removes them. The check maintains a list of
7 included files and looks for duplicates. If a macro is defined or undefined
8 then the list of included files is cleared.
25 Because of the intervening macro definitions, this code remains unchanged:
30 #include "assertion.h"
31 // ...code with assertions enabled
34 #include "assertion.h"
35 // ...code with assertions disabled