Skip to content

Commit 4ee9a88

Browse files
committed
[NFC] Add missing Clang Cache headers
Clang cache uses std::variant, std::unique_ptr, and std::optional. The missing headers are resulting in build failures.
1 parent c02bda5 commit 4ee9a88

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clang/lib/Frontend/CachedDiagnostics.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "llvm/Support/EndianStream.h"
2626
#include "llvm/Support/StringSaver.h"
2727
#include "llvm/Support/YAMLTraits.h"
28+
#include <variant>
2829

2930
using namespace clang;
3031
using namespace clang::cas;

clang/lib/Frontend/CachedDiagnostics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
#include "clang/Basic/LLVM.h"
1313
#include "llvm/Support/PrefixMapper.h"
14+
#include <memory>
15+
#include <optional>
1416

1517
namespace clang {
1618
class DiagnosticConsumer;

0 commit comments

Comments
 (0)