aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include
diff options
context:
space:
mode:
Diffstat (limited to 'libcpp/include')
-rw-r--r--libcpp/include/cpplib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index e64c2b6..be367b1 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -1662,4 +1662,17 @@ enum cpp_xid_property {
unsigned int cpp_check_xid_property (cppchar_t c);
+/* In errors.cc */
+
+/* RAII class to suppress CPP diagnostics in the current scope. */
+class cpp_auto_suppress_diagnostics
+{
+ public:
+ explicit cpp_auto_suppress_diagnostics (cpp_reader *pfile);
+ ~cpp_auto_suppress_diagnostics ();
+ private:
+ cpp_reader *const m_pfile;
+ const decltype (cpp_callbacks::diagnostic) m_cb;
+};
+
#endif /* ! LIBCPP_CPPLIB_H */