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:
Simon Pilgrim
2020-05-17 18:29:41 +01:00
parent 897e926bb0
commit ca18ce1a00
4 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -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 {
+1
View File
@@ -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"
+1 -1
View File
@@ -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;