aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/Type.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-02-27 02:27:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-02-27 02:27:19 +0000
commit18895dc4fd29f0071eeb591be820338f16407906 (patch)
treecc6c32f8e7fa705d3932f28527a85526b06394fe /include/clang/AST/Type.h
parent2beda12c3fbaa9125831b7f818680978c596b205 (diff)
downloadclang-18895dc4fd29f0071eeb591be820338f16407906.tar.gz
Change Type::getLinkageAndVisibility to return a LinkageInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/Type.h')
-rw-r--r--include/clang/AST/Type.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h
index df285101e3..302651f998 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -1775,13 +1775,17 @@ public:
Linkage getLinkage() const;
/// \brief Determine the visibility of this type.
- Visibility getVisibility() const;
+ Visibility getVisibility() const {
+ return getLinkageAndVisibility().visibility();
+ }
/// \brief Return true if the visibility was explicitly set is the code.
- bool isVisibilityExplicit() const;
+ bool isVisibilityExplicit() const {
+ return getLinkageAndVisibility().visibilityExplicit();
+ }
/// \brief Determine the linkage and visibility of this type.
- std::pair<Linkage,Visibility> getLinkageAndVisibility() const;
+ LinkageInfo getLinkageAndVisibility() const;
/// \brief Note that the linkage is no longer known.
void ClearLinkageCache();