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

            Bug ID: 42139
           Summary: -Wreturn-std-move-in-c++11 should probably only warn
                    when compiling with -std=c++11
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: evan.te...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@metafoo.co.uk

I've noticed that this warning triggers even when compiling in c++14 and c++17
modes. It strikes me that if the code is being compiled with a standard newer
than c++11, then this is information that is at best, not useful to the user,
and at worst confusing, as it is encouraging a code change when none is needed.

I noticed this because things like Qt creator have this warning on by default
when it tries to offer inline warnings in the UI.

I would suggest having this warning only have an effect when compiling in c++11
mode.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to