summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-23 17:14:25 +0000
committerChris Lattner <sabre@nondot.org>2011-07-23 17:14:25 +0000
commit2d3ba4f5a923a90c3fc290ddfba5e36c2d0a9b46 (patch)
tree3b65b8898ac2f33b825765d8519f7329d2b556ec /include/clang/Basic
parent1c3199afb8aeab5f4dfcef60999d13d9c6877a67 (diff)
Move ArrayRef to LLVM.h and eliminate now-redundant qualifiers, patch by Jon Mulder!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/Diagnostic.h4
-rw-r--r--include/clang/Basic/LLVM.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h
index 7f6f53739c..b7a1f3a627 100644
--- a/include/clang/Basic/Diagnostic.h
+++ b/include/clang/Basic/Diagnostic.h
@@ -987,8 +987,8 @@ public:
StringRef Message);
StoredDiagnostic(Diagnostic::Level Level, unsigned ID,
StringRef Message, FullSourceLoc Loc,
- llvm::ArrayRef<CharSourceRange> Ranges,
- llvm::ArrayRef<FixItHint> Fixits);
+ ArrayRef<CharSourceRange> Ranges,
+ ArrayRef<FixItHint> Fixits);
~StoredDiagnostic();
/// \brief Evaluates true when this object stores a diagnostic.
diff --git a/include/clang/Basic/LLVM.h b/include/clang/Basic/LLVM.h
index 7db17f7659..27c459dee4 100644
--- a/include/clang/Basic/LLVM.h
+++ b/include/clang/Basic/LLVM.h
@@ -23,11 +23,12 @@ namespace llvm {
// ADT's.
class StringRef;
class Twine;
+ template<typename T> class ArrayRef;
template<typename T, unsigned N> class SmallVector;
template<typename T> class SmallVectorImpl;
class raw_ostream;
- // TODO: ArrayRef, DenseMap, ...
+ // TODO: DenseMap, ...
}
@@ -42,6 +43,7 @@ namespace clang {
// ADT's.
using llvm::StringRef;
using llvm::Twine;
+ using llvm::ArrayRef;
using llvm::SmallVector;
using llvm::SmallVectorImpl;