aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/IdentifierTable.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-21 22:17:28 +0000
committerChris Lattner <sabre@nondot.org>2008-07-21 22:17:28 +0000
commit7caeabd868d46cf4e68478c6e9136dae4e735d21 (patch)
tree9988137f38a9fd308fc641b15f8cd91f79cffd2e /include/clang/Basic/IdentifierTable.h
parent465172f304248a9aab6f2c398a836ce4e25efbbf (diff)
minor cleanup to the actions interface to pass around SmallVectorImpl instead
of a specific smallvector size. Fix protocol lists to pass down proper location info, so we get diagnostics like this: t.m:3:35: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ^ instead of this: t.m:3:44: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ^ Add a new IdentifierLocPair typedef which is just a pair<IdentifierInfo*, SourceLocation> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/IdentifierTable.h')
-rw-r--r--include/clang/Basic/IdentifierTable.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h
index 024ff14456..ad80a930ed 100644
--- a/include/clang/Basic/IdentifierTable.h
+++ b/include/clang/Basic/IdentifierTable.h
@@ -29,6 +29,12 @@ namespace llvm {
namespace clang {
struct LangOptions;
class MultiKeywordSelector; // a private class used by Selector.
+ class IdentifierInfo;
+ class SourceLocation;
+
+ /// IdentifierLocPair - A simple pair of identifier info and location.
+ typedef std::pair<IdentifierInfo*, SourceLocation> IdentifierLocPair;
+
/// IdentifierInfo - One of these records is kept for each identifier that
/// is lexed. This contains information about whether the token was #define'd,