https://llvm.org/bugs/show_bug.cgi?id=27120

            Bug ID: 27120
           Summary: Feature request: warn on 'auto a = new int'
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

In the project that I'm working on, we disallow using auto if auto would deduce
to be a raw pointer type. That is,

auto a = new int; // Disallowed. auto is 'int*'.
auto* b = new int; // OK. auto is 'int'.

This could be done via a clang plugin, but it's also a good optional warning in
clang. 

What do you peeps think?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to