mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:24:46 +01:00
GlobPattern.h - remove unnecessary BitVector.h/StringRef.h includes. NFC
Use forward declarations (BitVector already had one) and an headers to source file that were implicitly using them.
This commit is contained in:
@@ -14,16 +14,16 @@
|
||||
#ifndef LLVM_SUPPORT_GLOB_PATTERN_H
|
||||
#define LLVM_SUPPORT_GLOB_PATTERN_H
|
||||
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include <vector>
|
||||
|
||||
// This class represents a glob pattern. Supported metacharacters
|
||||
// are "*", "?", "\", "[<chars>]", "[^<chars>]", and "[!<chars>]".
|
||||
namespace llvm {
|
||||
|
||||
class BitVector;
|
||||
class StringRef;
|
||||
template <typename T> class ArrayRef;
|
||||
|
||||
class GlobPattern {
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "llvm/Support/GlobPattern.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/Errc.h"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "CopyConfig.h"
|
||||
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/GlobPattern.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
Reference in New Issue
Block a user