aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-10-17 23:23:35 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-10-17 23:23:35 +0000
commite75d849d9141d8e47d05a91b7b5c04194854e47a (patch)
treef042bdfabb4860c5fd42359fac12aed43cf25451 /lib/Parse/ParseDecl.cpp
parent961b03c95dfbfb055143a25e714144976f74d2a1 (diff)
Just do a diagIfAmbiguous -> warnIfAmbiguous rename.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r--lib/Parse/ParseDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp
index 142347687e..7e83c5b014 100644
--- a/lib/Parse/ParseDecl.cpp
+++ b/lib/Parse/ParseDecl.cpp
@@ -1228,12 +1228,12 @@ void Parser::ParseDirectDeclarator(Declarator &D) {
if (Tok.is(tok::l_paren)) {
// When not in file scope, warn for ambiguous function declarators, just
// in case the author intended it as a variable definition.
- bool diagIfAmbiguous = D.getContext() != Declarator::FileContext;
+ bool warnIfAmbiguous = D.getContext() != Declarator::FileContext;
// The paren may be part of a C++ direct initializer, eg. "int x(1);".
// In such a case, check if we actually have a function declarator; if it
// is not, the declarator has been fully parsed.
if (getLang().CPlusPlus && D.mayBeFollowedByCXXDirectInit() &&
- !isCXXFunctionDeclarator(diagIfAmbiguous))
+ !isCXXFunctionDeclarator(warnIfAmbiguous))
break;
ParseFunctionDeclarator(ConsumeParen(), D);
} else if (Tok.is(tok::l_square)) {