[PATCH] D53771: [clang-tidy] Avoid C arrays check

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 4 04:25:43 PST 2018


JonasToth added inline comments.


================
Comment at: clang-tidy/modernize/AvoidCArraysCheck.cpp:44
+              unless(anyOf(hasParent(varDecl(isExternC())),
+                           hasAncestor(functionDecl(isExternC())))))
+          .bind("typeloc"),
----------------
JonasToth wrote:
> lebedev.ri wrote:
> > JonasToth wrote:
> > > What about struct-decls that are externC?
> > Hm, what is a `struct-decl`?
> we chatted in irc, but for reference
> ```
> extern "C" {
> struct Foo {
> 
> };
> }
> ```
you can mark all comments as done here, as they are implemented.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D53771





More information about the cfe-commits mailing list