[llvm] 69c8f85 - GlobPattern.h - remove unnecessary StringRef.h include. NFC
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue May 19 03:46:58 PDT 2020
Author: Simon Pilgrim
Date: 2020-05-19T11:27:40+01:00
New Revision: 69c8f8548d7686901a66f177f0246b063502562f
URL: https://github.com/llvm/llvm-project/commit/69c8f8548d7686901a66f177f0246b063502562f
DIFF: https://github.com/llvm/llvm-project/commit/69c8f8548d7686901a66f177f0246b063502562f.diff
LOG: GlobPattern.h - remove unnecessary StringRef.h include. NFC
Use forward declaration instead.
Remove unnecessary BitVector forward declaration while we're here - we need to include BitVector.h.
Added:
Modified:
llvm/include/llvm/Support/GlobPattern.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/GlobPattern.h b/llvm/include/llvm/Support/GlobPattern.h
index 0098ac65fd30..3e5989d02500 100644
--- a/llvm/include/llvm/Support/GlobPattern.h
+++ b/llvm/include/llvm/Support/GlobPattern.h
@@ -16,15 +16,15 @@
#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;
+
template <typename T> class ArrayRef;
+class StringRef;
class GlobPattern {
public:
More information about the llvm-commits
mailing list