Skip to content

Commit e9501a0

Browse files
authored
Add IWYU pragmas to indicate that the headers export symbols. (#4785)
Described here https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-begin_exportsend_exports These pragmas are not only understood by the IWYU tools, but as well clang-tidy ( https://clangd.llvm.org/design/include-cleaner#iwyu-pragmas ), so that projects using clang-tidy will not get false-positives about missing includes. Signed-off-by: Henner Zeller <[email protected]>
1 parent df4d68c commit e9501a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtime/Cpp/runtime/src/antlr4-runtime.h

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
// This is the umbrella header for all ANTLR4 C++ runtime headers.
99

10+
// IWYU pragma: begin_exports
11+
1012
#include "antlr4-common.h"
1113

1214
#include "ANTLRErrorListener.h"
@@ -166,3 +168,5 @@
166168
#include "tree/xpath/XPathWildcardAnywhereElement.h"
167169
#include "tree/xpath/XPathWildcardElement.h"
168170
#include "internal/Synchronization.h"
171+
172+
// IWYU pragma: end_exports

0 commit comments

Comments
 (0)