[PATCH] D154664: [NFC] Add some missing header includes
Evan Wilde via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 6 15:43:02 PDT 2023
etcwilde created this revision.
etcwilde added reviewers: compnerd, mib.
etcwilde added projects: clang, LLVM.
Herald added a project: All.
etcwilde requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits.
Fixing local build failures due to missing header includes.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154664
Files:
clang/lib/Frontend/CachedDiagnostics.cpp
clang/lib/Frontend/CachedDiagnostics.h
llvm/include/llvm/Support/Format.h
llvm/include/llvm/TargetParser/SubtargetFeature.h
Index: llvm/include/llvm/TargetParser/SubtargetFeature.h
===================================================================
--- llvm/include/llvm/TargetParser/SubtargetFeature.h
+++ llvm/include/llvm/TargetParser/SubtargetFeature.h
@@ -17,6 +17,7 @@
#ifndef LLVM_TARGETPARSER_SUBTARGETFEATURE_H
#define LLVM_TARGETPARSER_SUBTARGETFEATURE_H
+#include "llvm/ADT/bit.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
Index: llvm/include/llvm/Support/Format.h
===================================================================
--- llvm/include/llvm/Support/Format.h
+++ llvm/include/llvm/Support/Format.h
@@ -28,6 +28,7 @@
#include "llvm/Support/DataTypes.h"
#include <cassert>
#include <cstdio>
+#include <optional>
#include <tuple>
#include <utility>
Index: clang/lib/Frontend/CachedDiagnostics.h
===================================================================
--- clang/lib/Frontend/CachedDiagnostics.h
+++ clang/lib/Frontend/CachedDiagnostics.h
@@ -11,6 +11,8 @@
#include "clang/Basic/LLVM.h"
#include "llvm/Support/PrefixMapper.h"
+#include <memory>
+#include <optional>
namespace clang {
class DiagnosticConsumer;
Index: clang/lib/Frontend/CachedDiagnostics.cpp
===================================================================
--- clang/lib/Frontend/CachedDiagnostics.cpp
+++ clang/lib/Frontend/CachedDiagnostics.cpp
@@ -25,6 +25,7 @@
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/StringSaver.h"
#include "llvm/Support/YAMLTraits.h"
+#include <variant>
using namespace clang;
using namespace clang::cas;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154664.537903.patch
Type: text/x-patch
Size: 1608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230706/3954d615/attachment.bin>
More information about the cfe-commits
mailing list