diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-09-14 13:55:29 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-09-14 13:55:29 +0000 |
commit | 4cd7ad9727e2b3a9e7f393fca532054e1dec0867 (patch) | |
tree | 13ad7d8796ebc6cd562b24a73da3a1304686bdde /clang-tools-extra/clang-tidy/misc/SizeofContainerCheck.cpp | |
parent | fee8ace132c3ae50630d55a18dc1950f931030e3 (diff) | |
download | bcm5719-llvm-4cd7ad9727e2b3a9e7f393fca532054e1dec0867.tar.gz bcm5719-llvm-4cd7ad9727e2b3a9e7f393fca532054e1dec0867.zip |
[clang-tidy] misc-sizeof-container: whitelist std::array
llvm-svn: 247559
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/SizeofContainerCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/misc/SizeofContainerCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/SizeofContainerCheck.cpp b/clang-tools-extra/clang-tidy/misc/SizeofContainerCheck.cpp index 2a5d91af385..ffb46dfcf9c 100644 --- a/clang-tools-extra/clang-tidy/misc/SizeofContainerCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/SizeofContainerCheck.cpp @@ -36,7 +36,7 @@ void SizeofContainerCheck::registerMatchers(MatchFinder *Finder) { expr(unless(isInTemplateInstantiation()), expr(sizeOfExpr(has(expr(hasType(hasCanonicalType(hasDeclaration( recordDecl(matchesName("^(::std::|::string)"), - unless(hasName("::std::bitset")), + unless(matchesName("^::std::(bitset|array)$")), hasMethod(methodDecl(hasName("size"), isPublic(), isConst())))))))))) .bind("sizeof"), |