aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-22 18:39:57 +0000
committerChris Lattner <sabre@nondot.org>2008-04-22 18:39:57 +0000
commit9fdf9c6d3530bb85f3166e6460d841e2ff8e1a2c (patch)
treedd6acdccfa4e434bf9f8dff0c5bf095e53977e1b /lib/Sema/SemaDecl.cpp
parent5585114307b6ba4874546212cb6e5399cfff7ffb (diff)
"This patch renames
DeclContext *CtxDecl -> DeclContext *DeclCtx DeclContext *CD -> DeclContext *DC It makes the code more consistent." Patch by Zhongxing Xu! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 415908a30b..c97ecc8313 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -42,11 +42,11 @@ Sema::DeclTy *Sema::isTypeName(const IdentifierInfo &II, Scope *S) {
return 0;
}
-void Sema::PushDeclContext(DeclContext *CD) {
- assert( ( (CD->isFunctionOrMethod() && isa<TranslationUnitDecl>(CurContext))
- || CD->getParent() == CurContext ) &&
+void Sema::PushDeclContext(DeclContext *DC) {
+ assert( ( (DC->isFunctionOrMethod() && isa<TranslationUnitDecl>(CurContext))
+ || DC->getParent() == CurContext ) &&
"The next DeclContext should be directly contained in the current one.");
- CurContext = CD;
+ CurContext = DC;
}
void Sema::PopDeclContext() {