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 | 6ee521c7eb8b58b5b1faf471bf03da434440bcf0 (patch) | |
tree | debfb1a2045dd04609ceb921e847776a30f7f37a /clang/examples/PrintFunctionNames/PrintFunctionNames.cpp | |
parent | d486e09d8ee612f6de2feac7fbeac16588e2dde7 (diff) | |
download | llvm-6ee521c7eb8b58b5b1faf471bf03da434440bcf0.zip llvm-6ee521c7eb8b58b5b1faf471bf03da434440bcf0.tar.gz llvm-6ee521c7eb8b58b5b1faf471bf03da434440bcf0.tar.bz2 |
Replace size() calls on containers with empty() calls where appropriate. NFC
http://reviews.llvm.org/D7090
Patch by Gábor Horváth!
llvm-svn: 226914
Diffstat (limited to 'clang/examples/PrintFunctionNames/PrintFunctionNames.cpp')
-rw-r--r-- | clang/examples/PrintFunctionNames/PrintFunctionNames.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp b/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp index e8a361d..b554cae 100644 --- a/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp +++ b/clang/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; |