[LLVMbugs] [Bug 10202] New: Warn for missing braces if a bracesless if/for/while is followed by a line with increased indentation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 27 10:44:21 PDT 2011


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

           Summary: Warn for missing braces if a bracesless if/for/while
                    is followed by a line with increased indentation
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: akyrtzi at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Have the parser warn for cases like:

if (x)
    foo1(); // #1
    foo2(); // #2

#2 line has the same indentation as #1 but braces as missing.

-- 
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