LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 31793 - modernize-use-using problems: pointers to struct
Summary: modernize-use-using problems: pointers to struct
Status: NEW
Alias: None
Product: clang-tools-extra
Classification: Unclassified
Component: clang-tidy (show other bugs)
Version: unspecified
Hardware: All All
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-29 13:13 PST by Krystyna Gajczyk
Modified: 2017-01-29 13:13 PST (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krystyna Gajczyk 2017-01-29 13:13:39 PST
TEST CASE:
typedef struct foo_s { int i; } * foo_t;

FIX TO:
using foo_t = struct foo_s *;

SHOULD FIX TO:
struct foo_s { int i; };
using foo_t = foo_s *;