]> granicus.if.org Git - clang/commit
Make DiagnosticIDs::getAllDiagnostics use std::vector. NFC.
authorGabor Horvath <xazax.hun@gmail.com>
Wed, 20 Dec 2017 16:55:41 +0000 (16:55 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Wed, 20 Dec 2017 16:55:41 +0000 (16:55 +0000)
commit7d32ec8fb0d04f322b2ad1ddfaec72110d9a3a96
treedb804977b95df75f8477ee4e54804728196a5544
parentaacf2531989d9daf543aa24dd79a55280adbaa8b
Make DiagnosticIDs::getAllDiagnostics use std::vector. NFC.

The size of the result vector is currently around 4600 with
Flavor::WarningOrError, which makes std::vector a better candidate than
llvm::SmallVector.

Patch by: Andras Leitereg!

Differential Revision: https://reviews.llvm.org/D39372

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321190 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticIDs.h
lib/Basic/Diagnostic.cpp
lib/Basic/DiagnosticIDs.cpp