[LLVMbugs] [Bug 7007] New: fix suggestion for -Wreorder

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 1 09:01:36 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7007

           Summary: fix suggestion for -Wreorder
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ich at az2000.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


In the case that clang gives some -Wreorder warning like this:

In file included from
/Users/az/Programmierung/openlierox/src/gusanos/gui/detail/gss.cpp:12:
GUI/detail/gss-grammar.h.re:249:23: warning: field 'begin' will be initialized
after field 'marker' [-Wreorder]
TGrammar() : cur(-1), begin(0), marker(0), buffer(0), curp(0), limit(0),
line(1), syncTokens(false), ...
                      ^

It would be nice if it also automatically outputs the code which would fix
this. In case you have several such warnings for a single constructor (because
the order is completely wrong), it's annoying to fix it by hand.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list