[clang] 9503ad3 - [clang] FatalErrorHandler.cpp - add explicit <stdio.h> include
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 5 09:05:09 PDT 2021
Author: Simon Pilgrim
Date: 2021-10-05T17:03:17+01:00
New Revision: 9503ad3b533cb84b51cfc80c51d262da50435013
URL: https://github.com/llvm/llvm-project/commit/9503ad3b533cb84b51cfc80c51d262da50435013
DIFF: https://github.com/llvm/llvm-project/commit/9503ad3b533cb84b51cfc80c51d262da50435013.diff
LOG: [clang] FatalErrorHandler.cpp - add explicit <stdio.h> include
Required for fprintf/stderr usage in the error handler, noticed while trying to remove the <string> dependency described in D111049
Added:
Modified:
clang/tools/libclang/FatalErrorHandler.cpp
Removed:
################################################################################
diff --git a/clang/tools/libclang/FatalErrorHandler.cpp b/clang/tools/libclang/FatalErrorHandler.cpp
index 73864754c065..506b047c1b13 100644
--- a/clang/tools/libclang/FatalErrorHandler.cpp
+++ b/clang/tools/libclang/FatalErrorHandler.cpp
@@ -9,6 +9,7 @@
#include "clang-c/FatalErrorHandler.h"
#include "llvm/Support/ErrorHandling.h"
+#include <stdio.h>
#include <stdlib.h>
static void aborting_fatal_error_handler(void *, const char *reason,
More information about the cfe-commits
mailing list