summaryrefslogtreecommitdiffstats
path: root/clang/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
commitbec41348e272bc99bb5f912a84ce94770d605b84 (patch)
tree79e5fb4f174481e449c6d642be6df1a6c2f3f093 /clang/lib/Sema/SemaDecl.cpp
parent9718c9e8eeff41bb00f424b5eaccb99ad495c0d5 (diff)
downloadbcm5719-llvm-bec41348e272bc99bb5f912a84ce94770d605b84.tar.gz
bcm5719-llvm-bec41348e272bc99bb5f912a84ce94770d605b84.zip
"This patch renames
DeclContext *CtxDecl -> DeclContext *DeclCtx DeclContext *CD -> DeclContext *DC It makes the code more consistent." Patch by Zhongxing Xu! llvm-svn: 50105
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 415908a30bb..c97ecc83131 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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() {
OpenPOWER on IntegriCloud