[clang] 5d67fb3 - [AST][NFCi] Make CXXBasePaths::Origin const
Jan Korous via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 19 07:54:34 PDT 2020
Author: Jan Korous
Date: 2020-03-19T07:54:05-07:00
New Revision: 5d67fb3eccc7884e52d5252379456b87b14ce58b
URL: https://github.com/llvm/llvm-project/commit/5d67fb3eccc7884e52d5252379456b87b14ce58b
DIFF: https://github.com/llvm/llvm-project/commit/5d67fb3eccc7884e52d5252379456b87b14ce58b.diff
LOG: [AST][NFCi] Make CXXBasePaths::Origin const
Added:
Modified:
clang/include/clang/AST/CXXInheritance.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/CXXInheritance.h b/clang/include/clang/AST/CXXInheritance.h
index f223c1f2f4f0..8b1bcb367b3b 100644
--- a/clang/include/clang/AST/CXXInheritance.h
+++ b/clang/include/clang/AST/CXXInheritance.h
@@ -119,7 +119,7 @@ class CXXBasePaths {
friend class CXXRecordDecl;
/// The type from which this search originated.
- CXXRecordDecl *Origin = nullptr;
+ const CXXRecordDecl *Origin = nullptr;
/// Paths - The actual set of paths that can be taken from the
/// derived class to the same base class.
@@ -225,8 +225,8 @@ class CXXBasePaths {
/// Retrieve the type from which this base-paths search
/// began
- CXXRecordDecl *getOrigin() const { return Origin; }
- void setOrigin(CXXRecordDecl *Rec) { Origin = Rec; }
+ const CXXRecordDecl *getOrigin() const { return Origin; }
+ void setOrigin(const CXXRecordDecl *Rec) { Origin = Rec; }
/// Clear the base-paths results.
void clear();
More information about the cfe-commits
mailing list