]> granicus.if.org Git - clang/commit
Refactor some code for a warning. NFC.
authorRichard Trieu <rtrieu@google.com>
Thu, 29 Mar 2018 05:14:17 +0000 (05:14 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 29 Mar 2018 05:14:17 +0000 (05:14 +0000)
commita04c82fd35ceac9da931f730b9682718157dcd49
tree6d68c16cafb0a9c3107e16d90be1372ccc2b8af1
parente327c701dd9ac0a478f777a41a198010ee8ddeba
Refactor some code for a warning.  NFC.

Use range-based for-loops instead of iterators to walk over vectors.
Switch the key of the DenseMap so a custom key handler is no longer needed.
Remove unncessary adds to the DenseMap.
Use unique_ptr instead of manual memory management.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328763 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp