aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Index/GlobalSelector.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Index/GlobalSelector.h')
-rw-r--r--include/clang/Index/GlobalSelector.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/clang/Index/GlobalSelector.h b/include/clang/Index/GlobalSelector.h
index e24c419d1e..51f98267f3 100644
--- a/include/clang/Index/GlobalSelector.h
+++ b/include/clang/Index/GlobalSelector.h
@@ -44,19 +44,19 @@ public:
/// \brief Get a GlobalSelector for the ASTContext-specific selector.
static GlobalSelector get(Selector Sel, Program &Prog);
-
+
void *getAsOpaquePtr() const { return Val; }
-
+
static GlobalSelector getFromOpaquePtr(void *Ptr) {
return GlobalSelector(Ptr);
}
- friend bool operator==(const GlobalSelector &LHS, const GlobalSelector &RHS) {
+ friend bool operator==(const GlobalSelector &LHS, const GlobalSelector &RHS) {
return LHS.getAsOpaquePtr() == RHS.getAsOpaquePtr();
}
-
+
// For use in a std::map.
- friend bool operator< (const GlobalSelector &LHS, const GlobalSelector &RHS) {
+ friend bool operator< (const GlobalSelector &LHS, const GlobalSelector &RHS) {
return LHS.getAsOpaquePtr() < RHS.getAsOpaquePtr();
}
@@ -66,7 +66,7 @@ public:
return GlobalSelector((void*)-2);
}
};
-
+
} // namespace idx
} // namespace clang
@@ -86,7 +86,7 @@ struct DenseMapInfo<clang::idx::GlobalSelector> {
static unsigned getHashValue(clang::idx::GlobalSelector);
- static inline bool
+ static inline bool
isEqual(clang::idx::GlobalSelector LHS, clang::idx::GlobalSelector RHS) {
return LHS == RHS;
}