summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-07-20 20:04:10 +0000
committerTed Kremenek <kremenek@apple.com>2010-07-20 20:04:10 +0000
commit516ef222ba47f903caba542c8469ee3f09e0138f (patch)
treefaa35a4794f4f2e538dd9d3a9e768512ace55534 /clang/lib/Sema/SemaChecking.cpp
parent1ce32be36a74e0e65fd11ac87d44518510bbba5b (diff)
downloadbcm5719-llvm-516ef222ba47f903caba542c8469ee3f09e0138f.tar.gz
bcm5719-llvm-516ef222ba47f903caba542c8469ee3f09e0138f.zip
Rename 'ConsumedSoFarArg' -> 'nArg' and 'OutIntPtrArg' to 'nArg' (scanf and printf checking).
llvm-svn: 108900
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 811a9d8724f..6d71b103ba7 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -1525,7 +1525,7 @@ CheckPrintfHandler::HandlePrintfSpecifier(const analyze_printf::PrintfSpecifier
LM.getLength()));
// Are we using '%n'?
- if (CS.getKind() == ConversionSpecifier::OutIntPtrArg) {
+ if (CS.getKind() == ConversionSpecifier::nArg) {
// Issue a warning about this being a possible security issue.
S.Diag(getLocationOfByte(CS.getStart()), diag::warn_printf_write_back)
<< getSpecifierRange(startSpecifier, specifierLen);
OpenPOWER on IntegriCloud