diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-01-23 15:36:10 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-01-23 15:36:10 +0000 |
commit | 8785e3e9a01de095f794d7f81ea00e70a337dee0 (patch) | |
tree | c5cfc1506463134d075ac456bb0ee62cc1c26a34 /examples/PrintFunctionNames | |
parent | 3b7d48dabc962ddb9075a2e225dcd23bdda90d7a (diff) | |
download | clang-8785e3e9a01de095f794d7f81ea00e70a337dee0.tar.gz |
Replace size() calls on containers with empty() calls where appropriate. NFC
http://reviews.llvm.org/D7090
Patch by Gábor Horváth!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/PrintFunctionNames')
-rw-r--r-- | examples/PrintFunctionNames/PrintFunctionNames.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/PrintFunctionNames/PrintFunctionNames.cpp b/examples/PrintFunctionNames/PrintFunctionNames.cpp index e8a361dbee..b554caeb2a 100644 --- a/examples/PrintFunctionNames/PrintFunctionNames.cpp +++ b/examples/PrintFunctionNames/PrintFunctionNames.cpp @@ -55,7 +55,7 @@ protected: return false; } } - if (args.size() && args[0] == "help") + if (!args.empty() && args[0] == "help") PrintHelp(llvm::errs()); return true; |