[PATCH] D96725: [clang-tidy] Fix modernize-use-using in extern C code

Stephen Kelly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 15 11:37:22 PST 2021


steveire added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize-use-using.cpp:305
 };
+
+extern "C" {
----------------
Can you add tests for typedefs in other scopes like

```

extern "C" {
typedef int CType;

struct CAnother {
};

typedef struct {
  int b;
  typedef struct CAnother AStruct;
} CStruct;

void foo()
{
  typedef struct CAnother AStruct;
}
}

```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96725/new/

https://reviews.llvm.org/D96725



More information about the cfe-commits mailing list