Chromium Code Reviews| Index: tools/clang/plugins/FindBadConstructsConsumer.cpp |
| diff --git a/tools/clang/plugins/FindBadConstructsConsumer.cpp b/tools/clang/plugins/FindBadConstructsConsumer.cpp |
| index 00d4cb9a2316e42dbffd147d21ce93e418c0b867..db8c472d8c96c8352fadcb55297c0817927e11e6 100644 |
| --- a/tools/clang/plugins/FindBadConstructsConsumer.cpp |
| +++ b/tools/clang/plugins/FindBadConstructsConsumer.cpp |
| @@ -675,6 +675,11 @@ void FindBadConstructsConsumer::CountType(const Type* type, |
| } |
| case Type::Typedef: { |
| while (const TypedefType* TT = dyn_cast<TypedefType>(type)) { |
| + const std::string name = TT->getDecl()->getNameAsString(); |
| + if (name == "atomic_int") { |
|
dcheng
2016/11/10 00:41:03
Nit: I wonder if we should get the decl context an
|
| + (*trivial_member)++; |
| + return; |
| + } |
| type = TT->getDecl()->getUnderlyingType().getTypePtr(); |
| } |
| CountType(type, |