summaryrefslogtreecommitdiffstats
path: root/clang/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
commit3a0558af9aae977aad11a5b74ce77b8b3c2e057d (patch)
tree51ec671b40677d2dbcf2eec7634c5f3aea2d10cb /clang/lib/Parse/ParseDecl.cpp
parent1ea1aa2cc1c8402b4b5675582a259d75f416edc8 (diff)
downloadbcm5719-llvm-3a0558af9aae977aad11a5b74ce77b8b3c2e057d.tar.gz
bcm5719-llvm-3a0558af9aae977aad11a5b74ce77b8b3c2e057d.zip
Just do a diagIfAmbiguous -> warnIfAmbiguous rename.
No functionality change. llvm-svn: 57746
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 142347687e2..7e83c5b014f 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/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)) {
OpenPOWER on IntegriCloud