From 3d9d1f83cbe954364e3e545a5736c11935ade49d Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Wed, 23 Nov 2022 15:52:40 +0100 Subject: [PATCH] Add IWYU export pragma to umbrella header. This hints IWYU and other include-management tools not to insert `#include`s of specific headers if the umbrella header is already included. See https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md Signed-off-by: Sam McCall --- runtime/Cpp/runtime/src/antlr4-runtime.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/Cpp/runtime/src/antlr4-runtime.h b/runtime/Cpp/runtime/src/antlr4-runtime.h index 50b85aa4fc..05a7207327 100644 --- a/runtime/Cpp/runtime/src/antlr4-runtime.h +++ b/runtime/Cpp/runtime/src/antlr4-runtime.h @@ -7,6 +7,7 @@ // This is the umbrella header for all ANTLR4 C++ runtime headers. +// IWYU pragma: begin_exports #include "antlr4-common.h" #include "ANTLRErrorListener.h" @@ -166,3 +167,4 @@ #include "tree/xpath/XPathWildcardAnywhereElement.h" #include "tree/xpath/XPathWildcardElement.h" #include "internal/Synchronization.h" +// IWYU pragma: end_exports