[cfe-commits] r54613 - in /cfe/trunk/lib/Sema: Sema.h SemaDecl.cpp
Steve Naroff
snaroff at apple.com
Sun Aug 10 08:28:08 PDT 2008
Author: snaroff
Date: Sun Aug 10 10:28:06 2008
New Revision: 54613
URL: http://llvm.org/viewvc/llvm-project?rev=54613&view=rev
Log:
Cleanup from yesterday...make isTentativeDefinition() a static helper function (no need for it to be part of the Sema API).
Modified:
cfe/trunk/lib/Sema/Sema.h
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.h?rev=54613&r1=54612&r2=54613&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.h (original)
+++ cfe/trunk/lib/Sema/Sema.h Sun Aug 10 10:28:06 2008
@@ -290,7 +290,6 @@
bool &Redeclaration);
VarDecl *MergeVarDecl(VarDecl *New, Decl *Old);
FunctionDecl *MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old);
- bool isTentativeDefinition(VarDecl *VD);
void CheckForFileScopedRedefinitions(Scope *S, VarDecl *VD);
/// Helpers for dealing with function parameters
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=54613&r1=54612&r2=54613&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Sun Aug 10 10:28:06 2008
@@ -379,7 +379,7 @@
}
/// Predicate for C "tentative" external object definitions (C99 6.9.2).
-bool Sema::isTentativeDefinition(VarDecl *VD) {
+static bool isTentativeDefinition(VarDecl *VD) {
if (VD->isFileVarDecl())
return (!VD->getInit() &&
(VD->getStorageClass() == VarDecl::None ||
More information about the cfe-commits
mailing list